aspose file tools*
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
Author

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,
soap-bin-2.3.1
Xerces-J-bin.1.4.4
javamail-1.4
jaf-1.1,

Then i follow some steps from the diff useful links, which tells to add
activation.jar
mail.jar
xerces.jar
soap.jar

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" java.io.FileNotFoundException: DeploymentDescriptor.xml (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at java.io.FileReader.<init>(FileReader.java:41)
at org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java:227).

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
Marshal

Joined: Mar 22, 2005
Posts: 42612
    
  65
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 ]

Ping & DNS - my free Android networking tools app
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
Marshal

Joined: Mar 22, 2005
Posts: 42612
    
  65
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: http://aspose.com/file-tools
 
subject: SOAP2.3.1-Configuration and application Error