[opencms-dev] Help ! Resource loader error ...

Apostoly Guillaume ApostolyG at mail.europcar.com
Tue Jul 8 18:26:01 CEST 2003


here's the detailed error i've got in the log : 

2003-07-08 18:09:47 ApplicationDispatcher[/opencms] Servlet.service() for
servlet jsp threw exception
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)
----- Root Cause -----
javax.servlet.ServletException: com/machin/intranet/Constants
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:536)
        at org.apache.jsp.index_jsp_jsp._jspService(index_jsp_jsp.java:517)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
        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)



> -----Message d'origine-----
> De: Apostoly Guillaume 
> Date: mardi 8 juillet 2003 17:45
> À: opencms-dev at opencms.org
> Objet: RE: [opencms-dev] Help ! Resource loader error ...
> 
> 
> I see what you mean, but it doesn't solve the problem : i've 
> checked the
> tomcat logs also, and there's nothing more.
> More than this, in my jsp, i've got just the instantiation of 
> my class (
> constructor with no parameters), and my class is an "empty" 
> class. In fact I
> never went further than that...
> Any idea ?
> 
> > -----Message d'origine-----
> > De: M Butcher [mailto:mbutcher at grcomputing.net]
> > Date: mardi 8 juillet 2003 18:03
> > À: opencms-dev at opencms.org
> > Objet: Re: [opencms-dev] Help ! Resource loader error ...
> > 
> > 
> > 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(JspServlet
> > Wrapper.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(Applicat
> > ionDispatcher.
> > > java:684)
> > >  at
> > > 
> > org.apache.catalina.core.ApplicationDispatcher.doInclude(Appli
> > cationDispatch
> > > er.java:575)
> > >  at
> > > 
> > org.apache.catalina.core.ApplicationDispatcher.include(Applica
> > tionDispatcher
> > > .java:498)
> > >  at
> > > 
> > com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFle
> > xRequestDispat
> > > cher.java:180)
> > >  at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
> > >  at
> > > 
> > com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFle
> > xRequestDispat
> > > 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.internalDoFilt
> > er(Application
> > > FilterChain.java:247)
> > >  at
> > > 
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > cationFilterCh
> > > ain.java:193)
> > >  at
> > > 
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > rapperValve.ja
> > > va:256)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:643)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:480)
> > >  at 
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >  at
> > > 
> > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > ontextValve.ja
> > > va:191)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:643)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:480)
> > >  at 
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >  at
> > > 
> > org.apache.catalina.core.StandardContext.invoke(StandardContex
> > t.java:2415)
> > >  at
> > > 
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > Valve.java:180
> > > )
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:643)
> > >  at
> > > 
> > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> > spatcherValve.
> > > java:171)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:641)
> > >  at
> > > 
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> > Valve.java:172
> > > )
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:641)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:480)
> > >  at 
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >  at
> > > 
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> > gineValve.java
> > > :174)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:643)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.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(CmsFle
> > xRequestDispat
> > > 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.internalDoFilt
> > er(Application
> > > FilterChain.java:247)
> > >  at
> > > 
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > cationFilterCh
> > > ain.java:193)
> > >  at
> > > 
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > rapperValve.ja
> > > va:256)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:643)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:480)
> > >  at 
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >  at
> > > 
> > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > ontextValve.ja
> > > va:191)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:643)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:480)
> > >  at 
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >  at
> > > 
> > org.apache.catalina.core.StandardContext.invoke(StandardContex
> > t.java:2415)
> > >  at
> > > 
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > Valve.java:180
> > > )
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:643)
> > >  at
> > > 
> > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> > spatcherValve.
> > > java:171)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:641)
> > >  at
> > > 
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> > Valve.java:172
> > > )
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:641)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:480)
> > >  at 
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >  at
> > > 
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> > gineValve.java
> > > :174)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > > eNext(StandardPipeline.java:643)
> > >  at
> > > 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.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>
> > _______________________________________________
> > 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
> > 
> _______________________________________________
> 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
> 



More information about the opencms-dev mailing list