Re: Non-servlet class cannot access jar file in ./WEB-INF/lib when a Servlet does

2005-10-06 Thread David Delbecq
Hi, all classes of a webapp which do not come from tomcat server itself do share a common classloader which is an aggregation of the various classes in all WEB-INF/lib/*.jar and in WEB-INF/classes/**/*.class If you get a NoClassDefFoundException, that probably mean you asked some class in server

RE: Non-servlet class cannot access jar file in ./WEB-INF/lib when a Servlet does

2005-10-06 Thread Sabitha
Jose, I have a similar servlet which initializes a singleton class to load the Tomcat resources for AXIS web service. The servlet is loaded at startup. This singleton class uses classes from a jar file located in WEB-INF/lib. MY servlet and singleton and other classes are in WEB-INF/classes.

RE: Non-servlet class cannot access jar file in ./WEB-INF/lib when a Servlet does

2005-10-06 Thread Jose Maria Ramirez Martinez
Hi, thanks a lot for your comments about the files with the same name... they are not classes ok, let me explain... I'm using the javax.mail package, which is in a jar, called mailapi.jar, and in order to use this package we also need the JavaBeans activation framework, packed in a jar, called

Non-servlet class cannot access jar file in ./WEB-INF/lib when a Servlet does

2005-10-05 Thread Jose Maria Ramirez Martinez
Hi, everybody I have the next problem: A servlet calls a non-servlet class, and this non-servlet class imports classes from a jar file, but the classloader does not find the class from the jar file (so when I call the servlet from an internet browser, I get a NoClassDefFoundException) But if