i did this more than 20 times. i finaly decided to let down this service name, and to use the old helloworld service that works, to use the name urn, and that works. i still don't know why the old urn was not working... as i did exaclty the same things for helloworld urn and it works... strange web services..
--------------------------------------------
Lionbridge Technologies - France
www.lionbridge.com
"Sekhar Nadella" <[EMAIL PROTECTED]>
09/07/2001 05:59 PM
|
To: [EMAIL PROTECTED] cc: Subject: Re: basic SOAP error : Unable to resolve target object |
Hi,
I have faced similar kind of problem in Websphere, I have done every thing
correct...But I used to get error 'Unable to resolve target object' for
only one service all other sample services are working just fine.
Then, I have performed the following actions, But I don't know which of
those actions made it work but worked after that.
1. I have undeployed service which is not working.
2. Deployed the service again.
3. Stopped the server and Started again.
4. Executed the client, Then it worked.
Thanks & Regards,
Sekhar Nadella
Elise_Dupont@lion
bridge.com To: [EMAIL PROTECTED]
cc:
09/07/01 07:25 AM Subject: Re: basic SOAP error : Unable to resolve target object
Please respond to
soap-user
i'm sure too that it's a classpath problem
i checked from the command prompt if the classpath is updated, and it is. i
gonna have a look at TcpTunnel to first know what it is, how to get it and
will see with this tool.
thanks
elise
--------------------------------------------
Lionbridge Technologies - France
www.lionbridge.com
"ParamDeep Singh"
<[EMAIL PROTECTED]> To:
<[EMAIL PROTECTED]>
cc:
09/07/2001 02:23 PM Subject: Re: basic
Please respond to soap-user SOAP error : Unable to resolve target
object
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 -----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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]> To:
<[EMAIL PROTECTED]>
cc:
09/07/2001 10:49 AM Subject: RE: basic SOAP
Please respond to soap-user 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