File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Http status 500  Error instantiating servlet class peigov.businessportal.servlets.LoginServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Http status 500  Error instantiating servlet class peigov.businessportal.servlets.LoginServlet" Watch "Http status 500  Error instantiating servlet class peigov.businessportal.servlets.LoginServlet" New topic
Author

Http status 500 Error instantiating servlet class peigov.businessportal.servlets.LoginServlet

Rod McLure
Greenhorn

Joined: Mar 04, 2010
Posts: 24
Hello,
This is somewhat embarassing!
console log
Jan 31, 2011 10:20:36 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet LoginServlet as unavailable
Jan 31, 2011 10:20:36 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet LoginServlet
java.lang.ClassNotFoundException: javax.mail.MessagingException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1115)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)


I have an application developed by someone else.(they created a .war file which was deployed to a Websphere test server with no problems)
I can get to the login screen but I cannot sign in.
I get the above mentioned error when I try to run using myEclipse with Tomcat 6.018 on my workstation
(I have two other apps I developed this way, but I usually don't have to do anything to my development setup)
Any help would be appreciated!

this is what I use to connect where datasource=mySource in a property file

here is the web.xml
Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
Hope this topic helps: java.lang.NoClassDefFoundError: javax/mail/MessagingException?.
Rod McLure
Greenhorn

Joined: Mar 04, 2010
Posts: 24
Thanks, I will have a look at that.
I did copy the .war file from the server to my desktop, I placed it in the directory WEBAPPS under apache then
started Tomcat and I still get the same error. I thought all the .jar files would be in the .war file.
The .war file works fine on the server.
Rod McLure
Greenhorn

Joined: Mar 04, 2010
Posts: 24
I copied mail.jar to a folder in my build path and now it works!

Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Http status 500 Error instantiating servlet class peigov.businessportal.servlets.LoginServlet