geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xh <xhsaymyn...@yahoo.co.uk>
Subject Re: G2.0.1 geronimo-javamail dependency is not loading?
Date Thu, 06 Sep 2007 13:47:56 GMT
----- Original Message ----
From: Rick McGuire <rickmcg@gmail.com>
To: user@geronimo.apache.org
Sent: Thursday, 6 September, 2007 1:15:49 PM
Subject: Re: G2.0.1 geronimo-javamail dependency is not loading?

> Could you post a stack trace for this new failure? 

[2007-09-06 15:45:43,881] ERROR org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:660)
StandardWrapper.Throwable
java.lang.NoClassDefFoundError: javax/mail/Multipart
        at org.xh.log4jtest.Test.init(Test.java:59)
        at javax.servlet.GenericServlet.init(GenericServlet.java:215)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053)
        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:780)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351)
        at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
[2007-09-06 15:45:43,881] ERROR org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:660)
StandardWrapper.Throwable
java.lang.NoClassDefFoundError: javax/mail/Multipart
        at org.xh.log4jtest.Test.init(Test.java:59)
        at javax.servlet.GenericServlet.init(GenericServlet.java:215)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053)
        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:780)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351)
        at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
[2007-09-06 15:45:43,884] ERROR org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:147)
Allocate exception for servlet Test
java.lang.NoClassDefFoundError: javax/mail/Multipart
        at org.xh.log4jtest.Test.init(Test.java:59)
        at javax.servlet.GenericServlet.init(GenericServlet.java:215)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053)
        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:780)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351)
        at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
[2007-09-06 15:45:43,884] ERROR org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:147)
Allocate exception for servlet Test
java.lang.NoClassDefFoundError: javax/mail/Multipart
        at org.xh.log4jtest.Test.init(Test.java:59)
        at javax.servlet.GenericServlet.init(GenericServlet.java:215)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053)
        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:780)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351)
        at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)


and the line nr 59 is this:

SMTPAppender newAppender = new SMTPAppender();

> Are you able to instantiate an instance of javax.mail.Multipart in your 
> code?

Yes I can send e-mails programmatically and it works without any NoClassDefFoundError errors.

For example this little application: http://www.exampledepot.com/egs/javax.mail/SendApp.html?l=new
(I added username and password to the example)

best regards
Łukasz





		
___________________________________________________________ 
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry

Mime
View raw message