Hi,
 
I still think that the error is because TOMCAT is unable to find your CLASS in the CLASSPATH!
Please try to run Tomcat from the command prompt and check the CLASSPATH. (echo the %CP% at the end) Verify that the new class path that you have updated, is right, and you have your class visible in it!
 
If it still does not work, then try using the TcpTunnel, and check what XMLs are passed, and whether the request pertains.
 
But I am quite sure that it is because that the CLASSPATH of Tomcat is not properly set!!
 
Regards
Paramdeep
----- Original Message -----
Sent: Friday, September 07, 2001 5:22 PM
Subject: RE: basic SOAP error : Unable to resolve target object


Okay so 'ive tryed 3 advices given by Christian, ParamDeep Singh, et jyothi, but none works, i still have the same error.
what i did :
i have my classes in %TOMCAT_HOME%\webapps\GetProject\WEB-INF\classes
i put soap.jar activation.jar and mail.jar in %TOMCAT_HOME%\webapps\GetProject\WEB-INF\lib

i added the 2 directory in my system classpath
i added %TOMCAT_HOME%\webapps\GetProject\WEB-INF\classes in tomcat.bat this way :
        set CP=%CP%;%TOMCAT_HOME%\webapps\GetProject\WEB-INF\classes

i deployed the web service this way :

'urn:test:getproj' Service Deployment Descriptor
Property Details
ID urn:test:getproj
Scope Request
Provider Type java
Provider Class GetProj
Use Static Class false
Methods getList
Type Mappings
Default Mapping Registry Class


i always get :
Prepare the service invocation
Invoke service
   URL= http://localhost:8080/soap/servlet/rpcrouter
   URN= urn:test:getproj
Service invoked
Fault= SOAP-ENV:Server.BadTargetObjectURI
       Unable to resolve target object: GetProj



and still don't find the solution... i must tell you again that a basic helloworld web service works well on my computer, and SOAP samples too...
getting mad... hope to find someone that could help me to find where the problem is

regards,
Elise




"Christian Bernard" <[EMAIL PROTECTED]>

09/07/2001 10:49 AM
Please respond to soap-user

       
        To:        <[EMAIL PROTECTED]>
        cc:        
        Subject:        RE: basic SOAP error : Unable to resolve target object



Hi Elise,
 
This message means that your SOAP engine is not able to find your class and to instantiate it. There's 2 solutions to resolve the problem.
 

0. I suppose Your Web Service application is deployed at %TOMCAT_HOME%\webapps\myapp.

1. Either you add your web service class(es) to your classpath by modifying the tomcat.bat file with a statement like CP=%CP%;%TOMCAT_HOME%\webapps\myapp\WEB-INF\classes.

2. Either you don't want to modify the classpath of your engine. If so, you may create a %TOMCAT_HOME%\webapps\myapp\WEB-INF\lib directory and add add the soap.jar, activation.jar and mail.jar this directory.

The second solution makes it possible to run several web services in the same engine which don't use the same SOAP implementation version, and to deploy them by packaging war files (with the DeployedServices.ds file included). The only change to make to the original engine's classpath is to add the xerces.jar in the front of the classpath as stated in the Apache SOAP documentation.

Christian BERNARD

NAGORA Technologies

-----Original Message-----
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent:
Thursday, September 06, 2001 5:33 PM
To:
[EMAIL PROTECTED]
Subject:
basic SOAP error : Unable to resolve target object


hi all, i do have this error when i call a service :


Fault= SOAP-ENV:Server.BadTargetObjectURI

      Unable to resolve target object: GetProj


GetProj is the name of my class, here is the way i deployed my service :


Provider Class                         GetProj
Use Static Class                false
Methods                         getList


The GetProj class contains getList method, that calls a method from an other class and retrieves a String to send it back to the client.



in the documentation they say : "Basically the problem is that there is a classpath or other problem that prevents the server side from properly locating the object to deliver calls to"


I of course added the path to my classes into the classpath. and checked if the classpath was alright under DOS.


so what could be the reason of such an error ? what did i forget ? other web services where working well so what's wrong ?.... any idea ?
i use Tomcat 3.3  m4+ SOAP 2.2


regards,

Elise


Reply via email to