ant-user mailing list archives

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


   im trying to send email using JavaMail thru servlets. i already placed the necessary api
in the lib directory 

	[adiaz@Ronin lib]$ pwd
	[adiaz@Ronin lib]$ jar tf mailapi.jar | grep mail/Add
	[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

	Location: /crs/RemindUser
	Internal Servlet Error:
	java.lang.NoClassDefFoundError: javax/mail/Address
		at java.lang.Class.newInstance0(Native Method)
		at java.lang.Class.newInstance(
		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 Source)
		at org.apache.tomcat.util.threads.ThreadPool$ Source)

  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

  btw, im using the ant tool bundled with the jakarta-tomcat-3.3-devel (or something like
that) nightly build.



"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:   <>
For additional commands, e-mail: <>

View raw message