ws-soap-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manuel.paitrea...@cnedi69.cnafmail.fr
Subject Réf. : BadTargetObjectURI - very frustrating. Help !
Date Fri, 01 Jun 2001 11:50:52 GMT




I get a SOAP-ENV:Server.BadTargetObjectURI error
"Unable to resolve target object: MySOAPTest"

I guess this error is related to a class path problem.
But I have included the folder containing this class
in Tomcat's class path. The class does not belong to
any package.
So if I have the MySOAPTest.class in C:\MySamples
folder, I have included C:\MySamples folder in
Tomcat's classpath.
I can see this class path displayed in the console
when Tomcat starts up. Yet it is not able to find the
class. C:\MySamples folder is also present in my
system classpath.

Tomcat classpath :

-------------------------
Using CLASSPATH:
D:\ApacheXerces\xerces-1_2_3\Xerces.jar;D:\ApacheSOAP\soap-2_1\
lib\soap.jar;D:\JavaSDK\JavaMail\javamail-1.2\mail.jar;D:
\JavaSDK\JBActivationFr
amework\jaf-1.0.1\activation.jar;C:\MySamples;D:\ApacheSOAP\soap-2_1;;d
:\ApacheTomcat\jakarta-tomcat-3.2.1\classes;d:
\ApacheTomcat\jakarta-tomcat-3.2.1
\lib\ant.jar;d:\ApacheTomcat\jakarta-tomcat-3.2.1\lib\jaxp.jar;d:
\ApacheTomcat\j
akarta-tomcat-3.2.1\lib\servlet.jar;d:
\ApacheTomcat\jakarta-tomcat-3.2.1\lib\par
ser.jar;d:\ApacheTomcat\jakarta-tomcat-3.2.1\lib\webserver.jar;d:
\ApacheTomcat\j
akarta-tomcat-3.2.1\lib\jasper.jar;;c:\jdk1.3\lib\tools.jar
-------------------------

I even tried moving the class to
d:\ApacheTomcat\jakarta-tomcat-3.2.1\classes.
But still I get the BadTargetObjectURI error.

C:\>java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/
servlet/rpcrouter query URN:MySOAPTest

<isd:service
xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="URN:MySOAPTest">
  <isd:provider type="java" scope="Application"
methods="Hello">
    <isd:java class="MySOAPTest" static="false"/>
  </isd:provider>
</isd:service>

Any help will be greatly appreciated .


> Hi, Rahul !!
I understand your frustation : I have had the same problem ... several
mis-configurations could be the cause :
- to avoid having problems, I shutdown and re-start the Tomcat server each
time I modify my server program
- you can add ".;" in front of your classpath and always start Tomcat from
the "program server" directory ...
- you put "Hello" to the attribute "methods" of your service .... are you
sure that the method "Hello" exists in your class "MySOAPTest" ??

Try it..

good luck





---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Mime
View raw message