Because you set the context, the base for your SOAP webapps is
c:/soap-2_0/webapps/soap.  Your service classes in
c:\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes are accessible from
the examples webapp, not the soap webapp.  Try placing your service classes
in c:/soap-2_0/webapps/soap/WEB-INF/classes.

Scott Nichol

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 2:09 PM
Subject: Re: BadTargetObjectURI problem:: Please guide me !!!


>
> Hello Scott.
>
> Thanks for replying.
>
> Here are the steps of installation and configuration:
>
> 1. I have installed Tomcat 3.2.4 at C:\jakarta-tomcat-3.2.4
> 2. Then I downloaded soap-bin-2.0.zip on harddisk and unzipped to create
C:
> \soap-2_0 folder which contained
>     docs,lib,samples and webapps folder.
> 3. and Xerces-J-bin.1.2.3.zip on hardsika dn unzipped it to
C:\xerces-1_2_3
> 4.  The I added the context of soap to C:\jakarta-tomcat-3.2.4\conf\
> server.xml file as
>
>      <Context path="/soap"
>                    docBase="C:/soap-2_0/webapps/soap"
>                reloadable="true">
>       </Context>
> 5. I have  set following configuration settings at autoexec.bat:
>
> set JAVA_HOME = C:\j2sdk1.4.0_01;
> PATH C:\j2sdk1.4.0_01\bin; C:\WebSphere\AppServer\bin; C:
> \jakarta-tomcat-3.2.4\bin;C:\Program Files\Java\j2re1.4.0_01\bin;
>
> set TOMCAT_HOME = C:\jakarta-tomcat-3.2.4;
>
> set CLASSPATH= C:\xerces-1_2_3\xerces.jar; C:
> \jakarta-tomcat-3.2.4\lib\activation.jar; C:
> \jakarta-tomcat-3.2.4\lib\mail.jar; C:\soap-2_0\lib\soap.jar; C:\soap-2_0;
> C:\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes; C:
> \jakarta-tomcat-3.2.4\webapps\soap\WEB-INF\classes;C:
> \SQLLIB\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:
> \Nishant\J2SDK\code;C:
>
\WebSphere\AppServer\installedApps\sampleApp.ear\default_app.war\WEB-INF\cla
sses;
>
> C:\WebSphere\AppServer\java\jre\lib\ext\servlet.jar; C:
> \jakarta-tomcat-3.2.4\webapps\WEB-INF\classes; C:
> \jakarta-tomcat-3.2.4\classes;  C:\jakarta-tomcat-3.2.4\lib\my.jar;
>
> 6. I updated my tomcat.bat file as below: (Please see the attached
> tomcat.bat file)
>     a) I added set CLASSPATH= %CP%;%CLASSPATH% at the beginning classpath
> settings
>     b) I added set CLASSPATH= %CP%;%CLASSPATH% at the classpath settings
> somewhere in the middle
>     c) I added the bold settings to the original classpath settings:
> :setClasspath
> set CP=C:\xerces-1_2_3\xerces.jar;%TOMCAT_HOME%\classes;C:
> \jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes
>
> 7. I created two java files (Hello.java which is to be delpoyed) and
> Example1_client.java (which is a client file) in C:
> \jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes
>   and the compiled .class files are at the same directory.
>
> 9. I then deployed the soap application using
> http://localhost:8080/soap/admin and then deployed the urn:Example2
>  which points to Hello as class and sayHello as method.
>
> 10. I can then see that urn:Example2 is successfully deployed.
>
> 11. I restarted the tomcat after deploying. But when I start to run the
> compiled client file it gave me this error:
>
> C:\jakarta-tomcat-3.2.4\webapps\soap\WEB-INF\classes>java Example1_client
> http://localhost:80
> 80/soap/servlet/rpcrouter James
>
> Calling the SOAP Server to say hello
>
> The SOAP Server says:
> Ouch, the call failed:
>   Fault Code   = SOAP-ENV:Server.BadTargetObjectURI
>   Fault String = Unable to resolve target object: Hello
>
> 12: I tried to put files at different locations like C:
> \jakarta-tomcat-3.2.4\webapps\soap\WEB-INF\classes;C:
> \jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes etc etc but it
never
> worked.
>
> 13: I would be much obliged if you can figure out where I am doing wrong?
>
> NOTE:
>  I have intentionally added mail.jar and activation.jar files to the C:
> \jakarta-tomcat-3.2.4\lib  file  though it was not originally present when
> this version of tomcat was installed.
>
> I am attaching the following files:
> (See attached file: Hello.java)(See attached file: Example1_client.java)
> (See attached file: DeploymentDescriptor.xml)(See attached file:
> tomcat.bat)
> --------------------------------------------------------------------------
------------------------------------
>
> Nishant Awasthi
> Phone: 440-603-4055 (Work)
> Cell: 330-328-0243 (Cell)
>
>
>
>
>                     Scott Nichol
>                     <snicholnews@scottn        To:
[EMAIL PROTECTED]
>                     ichol.com>                 cc:     (bcc: Nishant
Awasthi)
>                                                Subject:     Re:
BadTargetObjectURI problem::
>                     07/09/2002 12:32 PM        Please guide me !!!
>                     Please respond to
>                     soap-dev
>
>
>
>
>
>
>
> Can you provide a little more information about how you installed Apache
> SOAP with Tomcat.  For example, did you edit tomcat.bat?  If so, what
> change
> did you make.  Did you install Apache SOAP as a war, or did you unjar it
> yourself, or did you build the webapps directory manually?  Did you add a
> context to Tomcat's server.xml?
>
> Scott Nichol
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>; <soap-user>
> Sent: Tuesday, July 09, 2002 11:34 AM
> Subject: BadTargetObjectURI problem:: Please guide me !!!
>
>
> > I am new to SOAP and Tomcat and I am continuously getting this problem:
> >
> > Fault Code   = SOAP-ENV:Server.BadTargetObjectURI
> >  Fault String = Unable to resolve target object: Hello
> >
> > As per I have read so far it is due to the classpath settings.
> > I have all my .java and .class files( as well as classpath) set to
> >  c:\jakarta-tomcat-3.2.4\webapps\soap\WEB-INF\classes.
> >
> > I am getting this problem no matter what I do.
> > I then created my.jar file containing all my .class files and put it in
> > %TOMCAT_HOME%/lib but it is also of no help.
> >  I am using jakarta-tomcat-3.2.4 version.
> >
> > I learnt that you had the same problem and hope you have solved it.
> > Thanks
> > (See attached file: Hello.java)(See attached file: Example1_client.java)
> > (See attached file: DeploymentDescriptor.xml)
> >
> --------------------------------------------------------------------------
> ------------------------------------
> >
> > Nishant Awasthi
> > Corporate Systems Database Intern
> > Progressive Insurance
> > Phone: 440-603-4055 (Work)
> > Cell: 330-328-0243 (Cell)
> >
>
>
> --------------------------------------------------------------------------
--
>
> ----
>
>
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>


----------------------------------------------------------------------------
----


> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to