You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Sharad Patel <sh...@jungledrum.co.nz> on 2002/02/07 06:26:00 UTC
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.
sharad.patel@jungledrum.co.nz
Re: Error : BadTargetObjectURI
Posted by Sharad Patel <sh...@jungledrum.co.nz>.
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" <he...@software684.com>
To: <so...@xml.apache.org>; "Sharad Patel"
<sh...@jungledrum.co.nz>
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:sharad.patel@jungledrum.co.nz]
> Sent: Thursday, 07 February, 2002 6:26 AM
> To: soap-dev@xml.apache.org
> 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.
> sharad.patel@jungledrum.co.nz
>
>
>
Re: Error : BadTargetObjectURI
Posted by Sharad Patel <sh...@jungledrum.co.nz>.
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" <he...@software684.com>
To: <so...@xml.apache.org>; "Sharad Patel"
<sh...@jungledrum.co.nz>
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:sharad.patel@jungledrum.co.nz]
> Sent: Thursday, 07 February, 2002 6:26 AM
> To: soap-dev@xml.apache.org
> 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.
> sharad.patel@jungledrum.co.nz
>
>
>
RE: Error : BadTargetObjectURI
Posted by Henk Schipper <he...@software684.com>.
What modules are you using. xerces? which version... etc.
If we know this, we can continue.
Thx,
Henk.
-----Original Message-----
From: Sharad Patel [mailto:sharad.patel@jungledrum.co.nz]
Sent: Thursday, 07 February, 2002 6:26 AM
To: soap-dev@xml.apache.org
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.
sharad.patel@jungledrum.co.nz
RE: Error : BadTargetObjectURI
Posted by Henk Schipper <he...@software684.com>.
What modules are you using. xerces? which version... etc.
If we know this, we can continue.
Thx,
Henk.
-----Original Message-----
From: Sharad Patel [mailto:sharad.patel@jungledrum.co.nz]
Sent: Thursday, 07 February, 2002 6:26 AM
To: soap-dev@xml.apache.org
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.
sharad.patel@jungledrum.co.nz