Tomcat 5 almost certainly ignores the CLASSPATH of the environment from which it 
starts.  Tomcat 4 does.

You need to put mail.jar where Tomcat will load it.  Check out the Tomcat classloading 
docs at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html.  You 
would probably be safe putting mail.jar in $CATALINA_HOME/shared/lib.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.

----- Original Message ----- 
From: "Kapoor, Nishikant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 04, 2003 3:44 PM
Subject: newbie needs installation help


Hello list,

I am trying to install Apache-SOAP on a Mandrake Linux 9.2 with 2.4.22 kernel.
I have successfully executed jsp-examples and servlets-examples but I am getting 
following errors (at the end of this mail) when I run 
http://localhost/soap/servlet/rpcrouter. Looks like 'root cause' is

'java.lang.NoClassDefFoundError: javax/mail/MessagingException'

which is not true because mail.jar is present in CLASSPATH. I started Tomcat server as 
root and here is root'S CLASSPATH:

[EMAIL PROTECTED] local]# echo $CLASSPATH
:/usr/local/xerces-1_4_4/xerces.jar:/usr/local/j2sdk1.4.1/src.zip:/usr/local/soap-2_3_1:/usr/local/soap-2_3_1/lib/soap.jar:/usr/local/jaf-1.0.2/activation.jar:/usr/local/javamail-1.3.1/mail.jar:/usr/local/bsf-2_2/lib/bsf.jar:/usr/local/rhino1_5R4_1/js.jar:.

Does anybody know what the problem could be?

Thanks
Nishi

-----------------------complete error message--------------------------
exception

javax.servlet.ServletException: Servlet.init() for servlet rpcrouter threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
java.lang.Thread.run(Thread.java:536)

root cause

java.lang.NoClassDefFoundError: javax/mail/MessagingException
org.apache.soap.server.http.RPCRouterServlet.init(RPCRouterServlet.java:239)
javax.servlet.GenericServlet.init(GenericServlet.java:256)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
java.lang.Thread.run(Thread.java:536)


Reply via email to