ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anuerin G. Diaz <ad...@msi.net.ph>
Subject sending mail thru servlets
Date Thu, 24 Jan 2002 19:13:55 GMT


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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message