Cannot find javax/mail/MessagingException problem
"Tommy Kalafut" <[email protected]>
| Newsgroups | gmane.text.xml.soap.user |
|---|---|
| Message-ID | <[email protected]> |
Can someone please help?
I'm getting the "SOAP can't find javax/mail/MessagingException" problem.
The Troubleshooting section of http://ws.apache.org/soap/docs/index.html
confirmed what I suspected: mail.jar needs to be in my CLASSPATH. But as
far as I can tell, it is:
C:\grid\soap-2_3_1\src>set CLASSPATH
CLASSPATH=C:\grid\javamail-1.3.1\mail.jar;C:\Jasmine\Jasmine\Jp\classes\jp.j
ar;C
:\grid\Jena-1.6.1\lib\antllr.debug.jar;C:\grid\Jena-1.6.1\lib\concurrent-1.3
.0.j
ar;C:\grid\Jena-1.6.1\lib\db3-3-11.jar;C:\grid\Jena-1.6.1\lib\icu4j.jar;C:\g
rid\
Jena-1.6.1\lib\jakarta-oro-2.0.5.jar;C:\grid\Jena-1.6.1\lib\jena.jar;C:\grid
\Jen
a-1.6.1\lib\junit.jar;C:\grid\Jena-1.6.1\lib\rdf-api-2001-01-19.jar;C:\grid\
Jena
-1.6.1\lib\sesame-client.jar;C:\grid\xerces-1_4_4\xerces.jar;C:\grid\jaf-1.0
.2\a
ctivation.jar;C:\auburn\web-inf\classes;C:\grid\soap-2_3_1\lib\soap.jar;C:\g
rid\
Tomcat 5.0\common\lib\servlet-api.jar
Is there somewhere else that I have to tell SOAP or Tomcat about my
CLASSPATH? I've rebooted a couple times. I've tried quotes around my
CLASSPATH. I've tried only C:\grid\javamail-1.3.1\mail.jar in my CLASSPATH,
and I've cut and pasted its absolute path from the Explorer window to make
sure it's typed correctly.
I even made sure I could compile the RPCRouterServlet class, in case Java
was simply reporting the wrong unfindable class. This made me discover that
I may need C:\grid\Tomcat 5.0\common\lib\servlet-api.jar in my CLASSPATH,
too, but after I added it, I could compile RPCRouterServlet and still get
the original error.
What am I missing?
Thanks,
Tom K.
Details of when I try to go to http://localhost:8081/soap/servlet/rpcrouter
:
_____
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: Servlet.init() for servlet rpcrouter threw
exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:534)
root cause
java.lang.NoClassDefFoundError: javax/mail/MessagingException
org.apache.soap.server.http.RPCRouterServlet.init(RPCRouterServlet.java:239)
javax.servlet.GenericServlet.init(GenericServlet.java:211)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:534)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.27 logs.
_____
Tom Kalafut
Interchange Crew Member
Trident Systems, Inc.
[email protected]
(703)691-7798
-------------------------
The opinions expressed in this email may not necessarily reflect the
opinions of Trident Systems, Inc.