• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SOAP2.3.1-Configuration and application Error

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic