Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet 2.3 Specification contradiction ?

 
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a servlet in a JAR in WEB-INF/lib which loads on startup, within a WAR file, which is in an EAR file, but the Resin-EE 2.1.11 server logs the following: "javax.servlet.ServletException: Class `com.blah.InitServlet' was not found in classpath.Classes normally belong in /MyWebApp/WEB-INF/classes."
The Servlet 2.3 Specification specifically states "The WEB-INF/lib/*.jar area for Java ARchive files... The web application class loader must be able to load classes from any of these archive files"
Any suggestions regarding this behaviour are most appreciated.
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It would appear from your description that Resin is not fully compliant with the spec in this regard. I suggest dropping a note to the guy(s) at Resin or just modifying your application to work properly. Many J2EE Servers have small quirks like these especially when it comes to classloading issues.
Moving to the Resin forum for further discusssion...
 
CLUCK LIKE A CHICKEN! Now look at this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic