[opencms-dev] Help ! Resource loader error ...
M Butcher
mbutcher at grcomputing.net
Tue Jul 8 17:54:01 CEST 2003
I spent a few hours dealing with the same exception on one of my pages,
thinking that it was the classloader that was causing the problem.
Finally, I realized that I had a really dumb error in my code that was
generating a NullPointerException... which got reported as a Resource
loader error. Since then, I've seen a few other exceptions get reported
as this error, so it is not necessarily a classloader problem (though it
may be).
Sometimes the $TOMCAT/logs/ files had more to say than the exceptions
that got reported to the screen, so it might help to check there.
Matt
On Tue, 2003-07-08 at 03:00, Apostoly Guillaume wrote:
> Hi all,
>
> I've got a problem with the classloader (maybe):
> I put <%@ page session="false" import="com.machin.intranet.* ......> in a
> jsp page.
> I've got a class called "Constants" into
> modules/com.machin.intranet/classes/com/machin/intranet which correspond to
> WEB-INF/classes/com/machin/intranet on the real system.
>
> If I try to put this out.println("constant :
> "+com.europcar.intranet.Constants.webAppPath); into my jsp, i've got the
> following error...
> Has anybody any idea ?
>
> Thanks by advance.
>
> Guillaume
>
> javax.servlet.ServletException: Resource loader error in file
> '/intranetmachin/Domains/Marketing/index.jsp'
>
> Root cause:
> org.apache.jasper.JasperException: com/machin/intranet/Constants
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> 54)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> java:684)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
> er.java:575)
> at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
> .java:498)
> at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
> cher.java:180)
> at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
> at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
> cher.java:268)
> at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
> at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
> at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
> at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:256)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:171)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> )
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown
> Source)
> at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source)
> at java.lang.Thread.run(Thread.java:536)
>
> --------------- End of root cause.
>
> at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:962)
> at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
> cher.java:268)
> at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
> at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
> at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
> at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:256)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:171)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> )
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown
> Source)
> at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source)
> at java.lang.Thread.run(Thread.java:536)
>
>
>
>
> _______________________________________
> Guillaume APOSTOLY
> Business-Analyst EIS-BSD
> Tél: +33 (0)1.30.44.95.22
> Fax: +33 (0)1.30.44.98.08
> ApostolyG at mail.europcar.com <mailto:ApostolyG at mail.europcar.com>
> _______________________________________
>
>
>
>
>
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
--
M Butcher <mbutcher at grcomputing.net>
More information about the opencms-dev
mailing list