• Post Reply Bookmark Topic Watch Topic
  • New Topic

Soap 2.3.1 with Tomcat 4.1.12 with SDK1.4.1

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it still necessary to download the Xerces XML parser or does Soap and Tomcat now use the same XML parser?
I did not install Xerces-J 2.2. I am able to see the Welcome to Apache-SOAP screen, but get an error message when I run /soap/servlet/rpcrouter or soap/servlet/rpcmessage.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figured out the problem. It was a path issue.
The SOAP web app could not find either mail.jar or xerces2-0.2 or soap.jar, SO I just added them to the LIB folder in the SOAP WEB_INF folder that I CREATED.
I copied these JARS from JETSPEED1.4-2b. I noticed the JETSPEED app (support WEB SERVICES) had them added to the WEB-INF/Lib folder, so I just copied them from there and added to my created SOAP WEB-INF.
It worked great.
This work around helped me to understand that you really don't need to install anything in TOMCAT 4.1.12 to support web services. Just create a WEB APP war file that includes the SOAP/MAIL/XERCES support jars. Maybe this is what Sun WSDK really does???
Heres what I had at first:
My install is a RedHat 8.0. I installed SUN J2SDK1.4.1 to /usr/java/j2sdk1.4.1. I un-tarred Tomcat4.1.12 to /var/tomcat4. Modified the catalina.sh file to get the right environment settings. Have not installed the Sun J2SEE packages. I installed SOAP 2.3.1 in /usr/java/SOAP-2.3.1. I installed XERCES-2.3.1 to /usr/java/XERCES-2.2.1. Did not download Javamail, because I noticed it was in the TOMCAT 4.1.12 /common/lib folder.
I modified the catalina.sh and added CLASSPATH to soap.jar and xercesImpl.jar. Restarted the TOMCAT server and when I ran /SOAP/SERVLET/RPCROUTER it could not find the servlet to start. Thats when I realized it was a path problem. I also notices somebody else in this forum was having CLASSPATH problems with TOMCAT.
Hope this helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!