File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes SOAP2.3.1-Configuration and application Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP2.3.1-Configuration and application Error" Watch "SOAP2.3.1-Configuration and application Error" New topic

SOAP2.3.1-Configuration and application Error

ashirvad jain
Ranch Hand

Joined: Nov 09, 2006
Posts: 50
Hi, to all

I am new to SOAP.I am working with Apache Tomcat 6.0

I downloaded,

Then i follow some steps from the diff useful links, which tells to add

in (TomcatHome)/lib, So i did that.

After that, said to add soap.war file in the (tomcathome)webapps/ i did that ,and stop/start the apache service.
Got everything expected means,

I am getting the soap/admin page and can run servlet/rpcrouter and servlet/massagerouter.

But now the problem arise when i start to build small appl for the testing.

I build one small SOAP service compile it save the class file in the :-
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\soap\WEB-INF\classes\onjava\

Here you can see the tomcat home path as well onjava package,i used.

But when i try to use the service from the command line using java command it gave me error, i figure it out and change the class path accordilngly to point it to the mail.jar

So after doing that i can run the list command,with successful result.

But when i made deployment descriptor.xml for my small SOAP service,it gives me error,

Exception in thread "main" DeploymentDescriptor.xml (The system cannot find the file specified)
at Method)
at org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient

Couldnt figure it out why i am getting this error.

And i amnot sure where to save the Deploymentdescriptor.xml file in the directory structure ,but I saved in the onjava package itself.

I set my classPath as,

.;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\mail.jar;C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar;C:\Program Files\Java\jdk1.6.0\soap-2_3_1\lib\soap.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib;C:\Program Files\Java\jdk1.6.0\soap-2_3_1\lib\activation.jar;C:\Program Files\Java\jdk1.6.0\soap-2_3_1\lib\mail.jar;C:\Program Files\Java\jdk1.6.0\soap-2_3_1\lib\xerces.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\xerces.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\activation.jar

Just to solve my prob But getting more confuse.

So please guide me in this.

Thanks In advance.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Drop the mouse, and stop what you're doing right now.

Seriously, do not use Apache SOAP for a new project, not even for learning about web services. It is way, WAY obsolete. Switch to Axis 1.x instead. (Axis 2 has been released, but there aren't nearly as many tutorials and articles about it out there.) I haven't heard about anyone still using Apache SOAP for several years, so it will be a problem getting people to answer questions about it.
[ April 18, 2007: Message edited by: Ulf Dittmer ]
ashirvad jain
Ranch Hand

Joined: Nov 09, 2006
Posts: 50
Thanks about that,
But can you guide me through some link or matrail,you feel that would me nice for new people lik me.

Thanks in advance
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The Web Services FAQ links to quite a few interesting resources. In particular, check out the articles under the "How do I get started building a web service with Axis" heading. All but the first one talk about Axis (and the first one gives some useful background information).
I agree. Here's the link:
subject: SOAP2.3.1-Configuration and application Error
It's not a secret anymore!