Re: Adding a new soap service problem
"Praveen Peddi" <[email protected]>
| Newsgroups | gmane.text.xml.soap.user |
|---|---|
| Message-ID | <019001c4a277$e98daa80$aa87a8c0@ppeddi> |
I have my jar file (which has a single class file and, of course, a manifest
file) in {Tomcat-HOME}/webapps/ROOT/WEB-INF/classes folder. I tried both
WEB-INF/classes and WEB-INF/lib folders. Neither of it worked. I have the
DeployedServices.ds in {Tomcat-HOME}/webapps/ROOT folder. There is also
"soap" folder in {Tomcat-Home}/webapps folder (which was the result of
dropping the soap.war into webapps folder and starting the tomcat server
while setting up soap for the first time). This soap folder also has a
DeployedServices.ds file.
I put a servlet HelloServlet.class into
{Tomcat-HOME}/webapps/ROOT/WEB-INF/classes and I could access the servlet
fine from the browser. I am little confused on what would be the default
directory Tomcat server picks the java class files from. I am guessing it it
is {Tomcat-HOME}/webapps/ROOT, but not sure. I worked on Weblogic and
Websphere till now, and recently started working on Tomcat. Does this
default root has to anything to do with "Context" field in
{Tomcat-Home}/conf/server.xml?
I guess this are the basics about what should where:"HTML/JSP files go in
the main directory, the web.xml file goes in WEB-INF, unjarred Java classes
go in WEB-INF/classes, and JAR files go in WEB-INF/lib." Is this right?
Praveen
----- Original Message -----
From: "Scott Nichol" <[email protected]>
To: <[email protected]>
Sent: Friday, September 24, 2004 1:41 PM
Subject: Re: Adding a new soap service problem
The error message
Error encountered: Unable to resolve target object: javaxml2.CDCatalog
means that Apache SOAP found the registered service, but was unable to load
the class javaxml2.CDCatalog. The class files for the service must be
available to the class loaders servicing the soap webapp. Typically, this
means you put the files in webapps/soap/WEB-INF/classes or subdirectories
thereof.
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: "Praveen Peddi" <[email protected]>
To: <[email protected]>
Sent: Friday, September 24, 2004 1:16 PM
Subject: Re: Adding a new soap service problem
> I got the sample from onjava.com. You can find all the related data here:
> http://www.onjava.com/pub/a/onjava/excerpt/java_xml_2_ch2/index.html?page=5.
>
> When I executed command line I got the following output:
> "Deployed Services: urn:cd-catalog"
>
> When I ran soap client to access soap service, I get the following error:
> "Error encountered: Unable to resolve target object: javaxml2.CDCatalog".
>
> Praveen
>
> ----- Original Message -----
> From: "Scott Nichol" <[email protected]>
> To: <[email protected]>
> Sent: Friday, September 24, 2004 12:53 PM
> Subject: Re: Adding a new soap service problem
>
>
> You can deploy it through that admin page, using the command line and a
> deployment descriptor file (my preference since all the info to re-deploy
> the service is there), or by copying the serialized deployment descriptors
> file that Apache SOAP creates. This last option is for advanced users
> that
> want to install the server side stuff from a single war file.
>
> 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: "Tommy Kalafut" <[email protected]>
> To: <[email protected]>
> Sent: Friday, September 24, 2004 12:00 PM
> Subject: RE: Adding a new soap service problem
>
>
> > I am still a little confused by deployment. (I am working with a
> > subcontracted prototype that uses SOAP.) Do you also have to deploy
> > your
> > service in the Soap admin page at
> > http://localhost:8081/soap/admin/index.html? (Your port number may be
> > different.)
> >
> >
> >
> >
> >
> >
> >
> > Tom Kalafut
> > Interchange Crew Member
> > Trident Systems, Inc.
> > [email protected]
> > (703)691-7798
> >
> >
> >
> > -------------------------
> >
> > The opinions expressed in this email may not necessarily reflect the
> > opinions of Trident Systems, Inc.
> >
> > _____
> >
> > size=2 width="100%" align=center tabindex=-1>
> >
> > From: Praveen Peddi [mailto:[email protected]]
> > Sent: Friday, September 24, 2004 11:54 AM
> > To: [email protected]
> > Subject: Adding a new soap service problem
> >
> >
> >
> > Hi all,
> >
> > I have 5 soap services running and now I deployed a new service using
> > command line tool as follows:
> >
> >
> >
> > org.apache.soap.server.ServiceManagerClient
> > <http://host:port/soap/servlet/rpcrouter>
> > http://host:port/soap/servlet/rpcrouter deploy NewServiceDD.xml
> >
> >
> >
> > I get no errors and even I can see the new service in the admin page.
> > But
> > when I connect to the new service using a soap client, it gives an error
> > saying no service with the specified name.
> >
> >
> >
> > I am using tomcat as the server.
> >
> >
> >
> > I am sure i might be missing one simple thing. Any help would be
> > appraciated.
> >
> >
> >
> > Praveen
> >
> >
> >
> >
> >
> > **************************************************************
> > Praveen Peddi
> > Sr Software Engg, Context Media, Inc.
> > email:[email protected]
> > Tel: 401.854.3475
> > Fax: 401.861.3596
> > web: http://www.contextmedia.com
> > **************************************************************
> > Context Media- "The Leader in Enterprise Content Integration"
> >
> >
>
>