Thanx a lot. I had to re-install my Tomcat (had the Light version and it didn't have the jars you mentioned), removed the jar-files and then it worked.
/Marcus __________________________________________________ Marcus Andersson Project Leader and Application Developer ActiveTV AB �stg�tagatan 19 Box 124 581 02 LINKOPING Phone: +46 13 461 80 28 Mobile: +46(0)709-29 96 68 Fax: +46 13 461 80 99 E-mail: [EMAIL PROTECTED] Web: www.active-tv.com __________________________________________________ -----Ursprungligt meddelande----- Fr�n: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Skickat: den 13 augusti 2002 22:35 Till: Struts Users Mailing List �mne: Re: Struts and JavaMail 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]>

