Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

newbie Tomcat SOAP message

3 views
Skip to first unread message

Baba

unread,
Dec 2, 2003, 4:58:17 AM12/2/03
to
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)


Baba

unread,
Dec 2, 2003, 5:23:41 AM12/2/03
to
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

Christophe Vanfleteren

unread,
Dec 2, 2003, 5:52:43 AM12/2/03
to
Baba wrote:

> 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

--
Regards,
Christophe Vanfleteren

Baba

unread,
Dec 2, 2003, 6:15:52 AM12/2/03
to
Thanx, but no good. I've already added mail.jar and activation.jar and
nothing. The same
error message... :((

Christophe Vanfleteren

unread,
Dec 2, 2003, 6:25:36 AM12/2/03
to
Baba wrote:


>> 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
>>
> 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.

--
Regards,
Christophe Vanfleteren

Sudsy

unread,
Dec 2, 2003, 8:05:00 AM12/2/03
to
Baba wrote:
<snip>
> 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.

Keith Bjorkman

unread,
Dec 2, 2003, 3:52:28 PM12/2/03
to
Make sure that you have the mail.jar & activation.jar files in your
"\TOMCAT\common\lib\" folder.

Keith


"Baba" <baba...@yahoo.com> wrote in message
news:bqhsdj$vvb$1...@bagan.srce.hr...

Keith Bjorkman

unread,
Dec 2, 2003, 4:01:18 PM12/2/03
to
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" <kbj...@si.rr.com> wrote in message
news:gY6zb.179399$Gq.22...@twister.nyc.rr.com...

0 new messages