You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Anuerin G. Diaz" <ad...@msi.net.ph> on 2002/01/24 20:13:55 UTC
sending mail thru servlets
hi,
im trying to send email using JavaMail thru servlets. i already placed the necessary api in the lib directory
[adiaz@Ronin lib]$ pwd
/home/adiaz/Java/crs-web/lib
[adiaz@Ronin lib]$ jar tf mailapi.jar | grep mail/Add
javax/mail/Address.class
[adiaz@Ronin lib]$ ls
activation.jar imap.jar mailapi.jar mail.jar pop3.jar README smtp.jar
the web-application compiles with no problems but this is what i got when accessing the servlet
Location: /crs/RemindUser
Internal Servlet Error:
java.lang.NoClassDefFoundError: javax/mail/Address
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.tomcat.facade.ServletHandler.getServlet(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.preInit(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
i noticed that the jar files were not copied to the deployment directory. what am i doing wrong? where in the ${TOMCAT_HOME}/lib directory should i manually place the JavaMail (and JAF) APIs?
btw, im using the ant tool bundled with the jakarta-tomcat-3.3-devel (or something like that) nightly build.
thanks!
--
"Programming, an artform that fights back."
=============================
Anuerin G. Diaz
Design Engineer
Millennium Software, Incorporated
2305 B West Tower, Philippines Stocks Exchange Center,
Exchange Road, Ortigas Center, Pasig City
Tel# 638-3070 loc. 72
Fax# 638-3079
=============================
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>