I managed to solve the problem myself. And it was indeed a classpath problem.
I used to start Tomcat from the program shortcut and somehow when you start it up form there it doesn't get the system classpath. Now I have modified the catalina.bat file and use that to start Tomcat. So now I have the classpath in my ENV variable + catalina.bat. The classpath in the batch file is used by Tomcat(without that it fails to start) and the ENV variable classpath is required to run my application from the command line. I think Tomcat doesn't use the ENV variables. Thanks. --- Regards, Sharad. ----- Original Message ----- From: "Henk Schipper" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Sharad Patel" <[EMAIL PROTECTED]> Sent: Saturday, February 09, 2002 5:35 AM Subject: RE: Error : BadTargetObjectURI > What modules are you using. xerces? which version... etc. > If we know this, we can continue. > > Thx, > > Henk. > > -----Original Message----- > From: Sharad Patel [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 07 February, 2002 6:26 AM > To: [EMAIL PROTECTED] > Subject: Error : BadTargetObjectURI > > > I have a simple web service and a client. I get a 'BadTargetObjectURI' error > when I try to access my web service through my client application. > > Execute client > -------------- > D:\BAG\WEB-INF\classes>java com.bulletin.bag.MsgClient > main start...before invoke...Ouch, the call failed: > Fault Code = SOAP-ENV:Server.BadTargetObjectURI > Fault String = Unable to resolve target object: com.bulletin.bag.MsgServer > [stackTrace: null] > > Execute Server stand alone > --------------------------- > D:\BAG\WEB-INF\classes>java com.bulletin.bag.MsgServer > BUGGER! > D:\BAG\WEB-INF\classes> > > > As you can see from above the same classpath works when invoking the server > directly but it doesn't work using SOAP RPC. > > I have gone through all the FAQs I could find and they all seem to point to > the CLASSPATH variable. I HAVE set my CLASSPATH correctly to include my web > service directory. > > Is this a bug in SOAP? Or its only my machine?? > > Please help!! > > > > --- > Regards, > Sharad. > [EMAIL PROTECTED] > > >