tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <>
Subject RE: Servlet error I can't seem to resolve
Date Wed, 27 Dec 2000 16:30:47 GMT
The stack-trace seems pretty clear to me - the
"sendIt" method of the IridiumSendMail class is
storing a null pointer into a hashtable.

What you may find is that the IridiumSendMail
class is expecting to load a resource file from
somewhere, but not finding it because you
forgot to install it, or didn't install it in the
right place.

Just a note on the location of the "mail.jar"
and "activation.jar" files - I think that the
correct place for these is where you
first had them, in the WEB-INF/lib
directory within your web application.
Placing jars in the classpath is
generally a bad idea with tomcat
(though quite a lot of tomcat users
don't seem to understand this; presumably
they are the same ones that would be
using global variables under c++ :-)


> -----Original Message-----
> From:	Brad Siegfreid []
> Sent:	Wednesday, December 27, 2000 5:21 PM
> To:
> Subject:	Servlet error I can't seem to resolve
> I have a simple form handling servlet (FormEngineLight) that connects to a
> email class (IridiumSendMail) that have been working with another host
> under JServ 1.0b3. I moved to a new host with Tomcat 3.2 and also now have
> Tomcat 3.2 working on a local machine for testing. Now my servlet/class
> combo fails to work in either location. They require mail.jar and
> activation.jar, which are in the classpath (initially just in the context
> lib directory, now in the locations that load at boot). My apps are
> compiled agains Java 1.18 but are running on 1.2 for both local and
> hosted.
> The stackTrace I get from FormEngineLight (emailed back using the
> classes) is: 
> java.lang.NullPointerException
> 	at java.util.Hashtable.put(
> 	at IridiumSendMail.sendIt(
> 	at FormEngineLight.writeToIridiumSendMail(
> 	at FormEngineLight.sendConfirmation(
> 	at FormEngineLight.service(
> 	at javax.servlet.http.HttpServlet.service(
> 	at
> org.apache.tomcat.core.ServletWrapper.handleRequest(
> 9)
> 	at
> org.apache.tomcat.core.ContextManager.service(
> 	at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> 	at
> 38)
> 	at
> Both of my files are in jars and reside in the lib directory. The
> FormEngineLight servlet is accessible and sends me the error shown above.
> Does the IridiumSendMail file have to be listed in the web.xml file even
> if its not a servlet. If so, do I list it as if it were a servlet?
> Thanks,
> Brad Siegfreid
> Iridiumdesign

View raw message