The instructions for installing Apache SOAP with Tomcat 5 are at 
http://cvs.apache.org/viewcvs.cgi/*checkout*/ws-soap/java/docs/install/tomcat50.html?rev=1.1.

The "problems" I see with your installation:

1. activation.jar and mail.jar are in the common/lib directory.  According to Tomcat 
docs, they should be in shared/lib.

2. You have soap.jar in common/lib.  You should not do this.  Instead, soap.war should 
be deployed as a webapp only.  It looks like you may have done both.

While these are both problems, the soap.jar in common/lib is probably causing the 
fault.  When Tomcat loads classes from soap.jar, those classes in turn cannot load 
other classes (e.g. your service classes) from webapps.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Mauricio Cuenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 10, 2004 3:40 PM
Subject: SOAP-ENV:Server.BadTargetObjectURI


Hello,

I'm new to web services and trying to get an example to work. Server and 
Client class files compiled successfully, but I get the following error:

Fault Code:  SOAP-ENV:Server.BadTargetObjectURI
Fault String:  Unable to resolve target object: HelloService

My service is already deployed:
'urn:soap:helloservice' Service Deployment Descriptor
ID = urn:soap:helloservice
Scope = Request
Provider Type = java
Provider Class = HelloService
Use Static Class = false
Methods = sayHello


And this is a copy of my $CLASSPATH env variable:
CLASSPATH=:/usr/local/jakarta-tomcat-5.0.19/common/lib/activation.jar:
/usr/local/jakarta-tomcat-5.0.19/common/lib/xercesImpl.jar:
/usr/local/jakarta-tomcat-5.0.19/common/lib/mail.jar:
/usr/local/jakarta-tomcat-5.0.19/common/lib/soap.jar:
/usr/local/jakarta-tomcat-5.0.19/common/lib/xalan.jar:
/usr/local/jakarta-tomcat-5.0.19/webapps/soap <- Here are the classes!


Any help is very appreciated!
-- 

_______________________
Mauricio Cuenca
www.sisfo.com

Reply via email to