newbie Tomcat SOAP message

B

Baba

Hi everyone.

I've recently started studying the Web Services, and I got myself a n
O'Reilly's book about it.

However, I cannot get the examples working. I have downloaded all the
required packages (appropriate versions, some are older than the current
ones) and put them in the correct paths, edited the envirormnet bat files as
suggested and everything.

I am using Tomcat 3.3, because Tomcat 3.2.n is suggested in the book. I have
also downloaded Apache SOAP 2.2 and put soap.war in the Tomcat webapps
directory.

When I enter Apache SOAP Admin tool and click any of the buttons (List,
Deploy, Undeploy) I get this error (copy-pasted below).

I know that the mistake is probably trivial, but I cannot get it.

I'd appreciate any kind of helpful advice. Thanx.





Error: 500
Location: /soap/admin/deploy.jsp
Internal Servlet Error:

javax.servlet.ServletException: javax.servlet.ServletContext
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:460)
at admin.deploy_1._jspService(deploy_1.java:202)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
nterceptor.java:176)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:536)
Root cause:
java.lang.ClassNotFoundException: javax.servlet.ServletContext
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at admin.deploy_1._jspService(deploy_1.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
nterceptor.java:176)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:536)
 
B

Baba

Still need help, but a little update:

I uninstalled and reinstalled Tomcat and now I'm getting an entirely
different mistake

Error: 500
Location: /soap/admin/deploy.jsp
Internal Servlet Error:

java.lang.NoClassDefFoundError: javax.mail.MessagingException
at admin.deploy_1._jspService(deploy_1.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
nterceptor.java:176)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:536)
 
C

Christophe Vanfleteren

Baba said:
Still need help, but a little update:

I uninstalled and reinstalled Tomcat and now I'm getting an entirely
different mistake

Error: 500
Location: /soap/admin/deploy.jsp
Internal Servlet Error:

java.lang.NoClassDefFoundError: javax.mail.MessagingException
at admin.deploy_1._jspService(deploy_1.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
....

You'll need to download the javamail api, which can be found at
http://java.sun.com/products/javamail/

Be sure to also download the following, as javamail depends on it:
http://java.sun.com/products/javabeans/glasgow/jaf.html
 
B

Baba

Thanx, but no good. I've already added mail.jar and activation.jar and
nothing. The same
error message... :((
 
C

Christophe Vanfleteren

Baba wrote:

Thanx, but no good. I've already added mail.jar and activation.jar and
nothing. The same
error message... :((

Where did you add them? The classes should be found correctly if they are in
your classpath.
 
S

Sudsy

Baba wrote:
java.lang.ClassNotFoundException: javax.servlet.ServletContext
<snip>

I believe that as of V 1.4 all of the J2EE stuff went into the J2EE
kit which has to be installed on top of the SDK. I've got j2sdk-1_4
as well as j2eesdk_1_4. All of the servlet/JSP classes are in the
j2eesdk.
 
K

Keith Bjorkman

Make sure that you have the mail.jar & activation.jar files in your
"\TOMCAT\common\lib\" folder.

Keith


Baba said:
Thanx, but no good. I've already added mail.jar and activation.jar and
nothing. The same
error message... :((
 
K

Keith Bjorkman

Also, I believe that Tomcat creates the class path for you when it starts.
So, if the files are in the "\TOMCAT\common\lib\" folder, you shouldn't get
the NoClassDefFoundError. I hope I have that right.

Keith


Keith Bjorkman said:
Make sure that you have the mail.jar & activation.jar files in your
"\TOMCAT\common\lib\" folder.

Keith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,250
Latest member
Charlesreero

Latest Threads

Top