[opencms-dev] Servlet Exception - Resource loader error
Jochen Schwörer
j.schwoerer at web.de
Mon Jul 12 17:18:01 CEST 2004
Hi,
Although I am not sure if this solves your problem:
One problem with your code is that "ne.getProperty(String)" might return
null if the property is not available. Instead you could write
"supdev".equals(ne.getProperty("id"))".
Jochen
SIMON DUTIL wrote:
>
> In OpenCMS (5.0.1) I get a Resource loader error in a JSP-Files that
> include a JSP-Template.
>
> while (i.hasNext())
> {
> CmsJspNavElement ne = (CmsJspNavElement)i.next();
>
> if( (ne.getProperty("id")).equals("supdev") )
> {
> if (! ne.isFolderLink())
> {
> out.println("<dt><a href=\"" +
> cms.link(ne.getResourceName()) +
> "\">" + ne.getNavText() + "</a></dt>");
> }
> }
> }
>
> If i remove the IF condition : if(
> (ne.getProperty("id")).equals("supdev") ) , i get no error !
>
> Any idea ?
>
> Thanks !
>
> Simon
>
> The error message :
>
> javax.servlet.ServletException: Resource loader error in file
> '/system/modules/gouv.msp.supdev/elements/navigation.jsp'
>
> Root cause:
> javax.servlet.ServletException
> at
> com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:595)
> at
> com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:537)
> at
> _web_2d_inf._jsp._offline._system._modules._gouv_2e_msp_2e_supdev._elements._navigation_2e_jsp._jspService(_navigation_2e_jsp.java:127)
> at
> com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
> at
> oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
> at
> oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
> at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
> at
> com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
> at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:158)
> at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:972)
> at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:256)
> at
> com.opencms.flex.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:368)
> at
> com.opencms.flex.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:259)
> at
> _web_2d_inf._jsp._offline._system._modules._gouv_2e_msp_2e_supdev._jsptemplates._mspdev_2e_jsp._jspService(_mspdev_2e_jsp.java:127)
> at
> com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
> at
> oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
> at
> oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
> at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
> at
> com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
> at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:158)
> at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:972)
> at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:256)
> at
> com.opencms.flex.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:368)
> at
> com.opencms.flex.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:259)
> at
> _web_2d_inf._jsp._offline._news_2e_jsp._jspService(_news_2e_jsp.java:63)
> at
> com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
> at
> oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
> at
> oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
> at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
> at
> com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
> at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:158)
> at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:972)
> at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:256)
> at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:577)
> at
> com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:239)
> at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
> 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
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
> at
> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
> at
> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
> at
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
> at
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
> at
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
> at java.lang.Thread.run(Thread.java:534)
>
> --------------- End of root cause.
>
> at
> com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:595)
> at
> com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:537)
> at
> _web_2d_inf._jsp._offline._news_2e_jsp._jspService(_news_2e_jsp.java:116)
> at
> com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
> at
> oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
> at
> oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
> at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
> at
> com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
> at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:158)
> at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:972)
> at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:256)
> at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:577)
> at
> com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:239)
> at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
> 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
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
> at
> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
> at
> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
> at
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
> at
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
> at
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
> at java.lang.Thread.run(Thread.java:534)
>
>
>
> _______________________________________________
> 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