You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Gustavo Comba <gc...@lciconsultants.es> on 2001/04/26 16:08:32 UTC

Problem with JavaMail

Hello,

    I'm trying Apache-SOAP Version 2.1 over Tomcat 3.2.1.

    I've written a simple Servlet that send e-mails using the Sun's JavaMail
implementation without any problem, but I cant get the SOAP running (even
the sample servlets included with the implementation).

    I'm getting the following error:

java.lang.NoClassDefFoundError: javax/mail/MessagingException
at pruebas.Correo.doPost(Correo.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:401)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

    I've checked the Apache SOAP documentation about the install using
Tomcat. I'm running Tomcat as NT Service, and I've modified the class path
in wrapper.properties as following.

wrapper.class_path=$(wrapper.java_home)\jre\lib\ext\xerces.jar
wrapper.class_path=$(wrapper.java_home)\jre\lib\ext\xml4j.jar
wrapper.class_path=$(wrapper.java_home)\jre\lib\ext\soap.jar
wrapper.class_path=D:\Utils\JAVA\Sun\javamail-1.2\mail.jar
wrapper.class_path=D:\Utils\JAVA\Sun\jaf-1.0.1\activation.jar

    (the first three lines are useless, I think)

    Then, I've tried running Tomcat from the command line, using
"startup.bat". I've modified "tomcat.bat" as following:

set
CLASSPATH=C:\jdk1.3\jre\lib\ext\xerces.jar;D:\Utils\JAVA\Sun\javamail-1.2\ma
il.jar;D:\Utils\JAVA\Sun\jaf-1.0.1\activation.jar;%CP%

    in place of "set CLASSPATH=%CP%"....

    And nothing!!! What I'm doing wrong?

    I've tried putting the "mail.jar" file in the /WEB-INF/lib directory of
my WebApp,
even I've tried to uncompress the "mail.jar" file into the /WEB-INF/classes
directory of my webapp, stoping and starting the service and it doesn´t
work.

    If is some usefull information missing in my message, please let me
know.

    Thanks in advance, and please forgive my horrible English! ;-)

        Gustavo Comba


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: Problem with JavaMail

Posted by Jean-Guillaume LALANNE <je...@coming.fr>.
Hi,

Try to put j2ee.jar in your classpath.

see u
Jeangui

----- Original Message -----
From: "Gustavo Comba" <gc...@lciconsultants.es>
To: <so...@xml.apache.org>
Sent: Thursday, April 26, 2001 4:08 PM
Subject: Problem with JavaMail


> Hello,
>
>     I'm trying Apache-SOAP Version 2.1 over Tomcat 3.2.1.
>
>     I've written a simple Servlet that send e-mails using the Sun's
JavaMail
> implementation without any problem, but I cant get the SOAP running (even
> the sample servlets included with the implementation).
>
>     I'm getting the following error:
>
> java.lang.NoClassDefFoundError: javax/mail/MessagingException
> at pruebas.Correo.doPost(Correo.java:71)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:401)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
>     I've checked the Apache SOAP documentation about the install using
> Tomcat. I'm running Tomcat as NT Service, and I've modified the class path
> in wrapper.properties as following.
>
> wrapper.class_path=$(wrapper.java_home)\jre\lib\ext\xerces.jar
> wrapper.class_path=$(wrapper.java_home)\jre\lib\ext\xml4j.jar
> wrapper.class_path=$(wrapper.java_home)\jre\lib\ext\soap.jar
> wrapper.class_path=D:\Utils\JAVA\Sun\javamail-1.2\mail.jar
> wrapper.class_path=D:\Utils\JAVA\Sun\jaf-1.0.1\activation.jar
>
>     (the first three lines are useless, I think)
>
>     Then, I've tried running Tomcat from the command line, using
> "startup.bat". I've modified "tomcat.bat" as following:
>
> set
>
CLASSPATH=C:\jdk1.3\jre\lib\ext\xerces.jar;D:\Utils\JAVA\Sun\javamail-1.2\ma
> il.jar;D:\Utils\JAVA\Sun\jaf-1.0.1\activation.jar;%CP%
>
>     in place of "set CLASSPATH=%CP%"....
>
>     And nothing!!! What I'm doing wrong?
>
>     I've tried putting the "mail.jar" file in the /WEB-INF/lib directory
of
> my WebApp,
> even I've tried to uncompress the "mail.jar" file into the
/WEB-INF/classes
> directory of my webapp, stoping and starting the service and it doesn´t
> work.
>
>     If is some usefull information missing in my message, please let me
> know.
>
>     Thanks in advance, and please forgive my horrible English! ;-)
>
>         Gustavo Comba
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: Problem with JavaMail

Posted by Jean-Guillaume LALANNE <je...@coming.fr>.
Hi,

Try to put j2ee.jar in your classpath.

see u
Jeangui

----- Original Message -----
From: "Gustavo Comba" <gc...@lciconsultants.es>
To: <so...@xml.apache.org>
Sent: Thursday, April 26, 2001 4:08 PM
Subject: Problem with JavaMail


> Hello,
>
>     I'm trying Apache-SOAP Version 2.1 over Tomcat 3.2.1.
>
>     I've written a simple Servlet that send e-mails using the Sun's
JavaMail
> implementation without any problem, but I cant get the SOAP running (even
> the sample servlets included with the implementation).
>
>     I'm getting the following error:
>
> java.lang.NoClassDefFoundError: javax/mail/MessagingException
> at pruebas.Correo.doPost(Correo.java:71)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:401)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
>     I've checked the Apache SOAP documentation about the install using
> Tomcat. I'm running Tomcat as NT Service, and I've modified the class path
> in wrapper.properties as following.
>
> wrapper.class_path=$(wrapper.java_home)\jre\lib\ext\xerces.jar
> wrapper.class_path=$(wrapper.java_home)\jre\lib\ext\xml4j.jar
> wrapper.class_path=$(wrapper.java_home)\jre\lib\ext\soap.jar
> wrapper.class_path=D:\Utils\JAVA\Sun\javamail-1.2\mail.jar
> wrapper.class_path=D:\Utils\JAVA\Sun\jaf-1.0.1\activation.jar
>
>     (the first three lines are useless, I think)
>
>     Then, I've tried running Tomcat from the command line, using
> "startup.bat". I've modified "tomcat.bat" as following:
>
> set
>
CLASSPATH=C:\jdk1.3\jre\lib\ext\xerces.jar;D:\Utils\JAVA\Sun\javamail-1.2\ma
> il.jar;D:\Utils\JAVA\Sun\jaf-1.0.1\activation.jar;%CP%
>
>     in place of "set CLASSPATH=%CP%"....
>
>     And nothing!!! What I'm doing wrong?
>
>     I've tried putting the "mail.jar" file in the /WEB-INF/lib directory
of
> my WebApp,
> even I've tried to uncompress the "mail.jar" file into the
/WEB-INF/classes
> directory of my webapp, stoping and starting the service and it doesn´t
> work.
>
>     If is some usefull information missing in my message, please let me
> know.
>
>     Thanks in advance, and please forgive my horrible English! ;-)
>
>         Gustavo Comba
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org