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

2005-10-06 Thread Jose Maria Ramirez Martinez
u need to refer that class with complete >package structure, eg : package.className = new package.className(); > > >-Sabitha > > > >Jose Maria Ramirez Martinez a écrit : > >>Hi, everybody >> >>I have the next problem: >>A servlet calls a non-servl

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

2005-10-06 Thread Jose Maria Ramirez Martinez
on, that probably mean you asked some >class in server classloader to load some other class (probably by >reflection) which >is located in WEB-INF/lib. That simply impossible to do because >classloaders use >a child to parent classloading delegation model, not a parent (server) >

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 a