On Tue, 13 Aug 2002, Marcus Andersson wrote:

> Date: Tue, 13 Aug 2002 22:29:03 +0200
> From: Marcus Andersson <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Struts and JavaMail
>
> Hello everyone
>
> I have this problem with JavaMail when running Struts in Tomcat.
>
> I have written a class (MailFacade) that takes a couple of parameters (smtp
> host, user, password, message und so weiter). When I test it stand-alone
> with a main method it works like a charm. When I try it with Struts and
> Tomcat I get a NoClassDefFoundError: javax/activation/DataSource. Why?
> I have all the JavaMail jars in the /WEB-INF lib as well as the J2EE.jar
> (where the missing class is supposed to be). Is there a collision somewhere
> that I'm not aware of?
>

Adding j2ee.jar to the mix is going to cause you nothing but grief.
Remove it.

Tomcat 4.x ships with the relevant JAR files (activation.jar and mail.jar)
in the common/lib directory.  You shouldn't need them inside your webapp.

> Please help...
>
> /Marcus
>

Craig



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to