• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

jar in WEB_INF lib not loaded

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi.
i'm using tomcat_3.2.1 under win, linux and sun solaris
always the same problem.
when i run my application, jar files placed in WEB-INF/lib are not loaded by classloader (null pointer exceptions)
if i add them to tomcat_home/lib or add to the classpath explicitly each one of them it works.
but this are not suitable solutions for me because i want to place them ONLY in WEB-INF/lib not changhing the classpath
here a detail of error:
-------------------------------
Error: 500
Location: /ScuoleGuida/jsp/Controller/autorizza_ctrl.jsp
Internal Servlet Error:
javax.servlet.ServletException: it/csi/jsf/web/pool/BeanDAO
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NoClassDefFoundError: it/csi/jsf/web/pool/BeanDAO
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:446)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:136)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:116)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:154)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
------------------------------------
nb: here the jasper.log
the file required is in tram.jar
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
2003-07-09 10:37:55 - Scratch dir for the JSP engine is: C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples
2003-07-09 10:37:55 - IMPORTANT: Do not modify the generated servlets
2003-07-09 10:38:10 - JspEngine --> /jsp/Controller/autorizza_ctrl.jsp
2003-07-09 10:38:10 - ServletPath: /jsp/Controller/autorizza_ctrl.jsp
2003-07-09 10:38:10 - PathInfo: null
2003-07-09 10:38:10 - RealPath: C:\jakarta-tomcat-3.2.1\webapps\ScuoleGuida\jsp\Controller\autorizza_ctrl.jsp
2003-07-09 10:38:10 - RequestURI: /ScuoleGuida/jsp/Controller/autorizza_ctrl.jsp
2003-07-09 10:38:10 - QueryString: null
2003-07-09 10:38:10 - Request Params:
2003-07-09 10:38:10 - passwd =
2003-07-09 10:38:10 - login =
2003-07-09 10:38:10 - Classpath according to the Servlet Engine is: C:\jakarta-tomcat-3.2.1\webapps\ScuoleGuida\WEB-INF\classes;C:\jakarta-tomcat-3.2.1\webapps\ScuoleGuida\WEB-INF\lib\classes12.jar;C:\jakarta-tomcat-3.2.1\webapps\ScuoleGuida\WEB-INF\lib\jdbc2_0-stdext.jar;C:\jakarta-tomcat-3.2.1\webapps\ScuoleGuida\WEB-INF\lib\jmxri.jar;C:\jakarta-tomcat-3.2.1\webapps\ScuoleGuida\WEB-INF\lib\jmxtools.jar;C:\jakarta-tomcat-3.2.1\webapps\ScuoleGuida\WEB-INF\lib\jta.jar;C:\jakarta-tomcat-3.2.1\webapps\ScuoleGuida\WEB-INF\lib\junit.jar;C:\jakarta-tomcat-3.2.1\webapp s\ScuoleGuida\WEB-INF\lib\poolman-testsuite.jar;C:\jakarta-tomcat-3.2.1\webapps\ScuoleGuida\WEB-INF\lib\poolman.jar;C:\jakarta-tomcat-3.2.1\webapps\ScuoleGuida\WEB-INF\lib\tram.jar;C:\jakarta-tomcat-3.2.1\webapps\ScuoleGuida\WEB-INF\lib\xerces.jar
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic