Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(
at org.apache.catalina.loader.WebappClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(
at java.lang.Class.getConstructor0(
at java.lang.Class.newInstance0(
at java.lang.Class.newInstance(
at org.apache.catalina.core.StandardWrapper.loadServlet(
at org.apache.catalina.core.StandardWrapper.allocate(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

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
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope this topic helps: java.lang.NoClassDefFoundError: javax/mail/MessagingException?.
Rod McLure
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I copied mail.jar to a folder in my build path and now it works!

Thank you
Do not set lab on fire. Or this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic