You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Martin Maidhof <ma...@wemove.com> on 2003/05/14 16:12:35 UTC

Error Screen in JSP ?

Hi,

how do i install a template error screen with JSP templating !?

I adapted tr.props:
template.error=Error.jsp

and forced an exception for testing. Then i get the exception below (from log file)
and no error screen. The path to the layout template isn't evaluated correctly,
the directory html is missing.

[14 Mai 2003 14:58:29  INFO] - JetspeedJspLayout: set response content type to text/html; charset=UTF-8
[14 Mai 2003 14:58:29 DEBUG] - TemplateLocator: template exists:
M:\GIStec\GeoMis_Portal\develop\dev_martin\geomis_portal\bin\WEB-INF\templates\jsp\screens\html\Error.jsp returning /html/Error.jsp
[14 Mai 2003 14:58:29  INFO] - JetspeedJspLayout: set 'screenJSP' to: /WEB-INF/templates/jsp/screens/html/Error.jsp
[14 Mai 2003 14:58:29  INFO] - JetspeedJspLayout: forward request to: /layouts/default.jsp
[14 Mai 2003 14:58:29 ERROR] - Template /layouts/default.jsp not found in template paths
org.apache.turbine.util.TurbineException: Template /layouts/default.jsp not found in template paths
 at org.apache.turbine.services.jsp.TurbineJspService.handleRequest(TurbineJspService.java:183)
 at org.apache.jetspeed.modules.layouts.JetspeedJspLayout.doBuild(JetspeedJspLayout.java:115)
 at org.apache.turbine.modules.Layout.build(Layout.java:91)
 at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:123)
 at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:169)
 at org.apache.turbine.modules.Page.build(Page.java:90)
 at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
 at org.apache.turbine.Turbine.handleException(Turbine.java:712)
 at org.apache.turbine.Turbine.doGet(Turbine.java:634)
 at org.apache.turbine.Turbine.doPost(Turbine.java:658)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
.....
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
 at java.lang.Thread.run(Thread.java:536)
[14 Mai 2003 14:58:29 DEBUG] - JetspeedRunDataService: releasing rundata for thread: Thread[Thread-15,5,main]


when i put

template.error=/html/Error.jsp

the layout template is resolved correctly (/layouts/html/default.jsp), but the result
is very strange:
the complete portal with the correct error page is shown again as screen inside the portal.
So it is surrounded by the portal navigations again, further showing the following
exception (in the outer screen area).


[14 Mai 2003 15:17:54 DEBUG] - TemplateLocator: template exists:
M:\GIStec\GeoMis_Portal\develop\dev_martin\geomis_portal\bin\WEB-INF\templates\jsp\layouts\html\default.jsp returning
/html/default.jsp
[14 Mai 2003 15:17:54 DEBUG] - JetspeedTemplatePage: layoutTemplate is finally /html/default.jsp
[14 Mai 2003 15:17:54  INFO] - JetspeedJspLayout: set response content type to text/html; charset=UTF-8
[14 Mai 2003 15:17:54  INFO] - JetspeedJspLayout: set 'screenJSP' to: null
[14 Mai 2003 15:17:54  INFO] - JetspeedJspLayout: forward request to: /layouts/html/default.jsp
[14 Mai 2003 15:17:54 DEBUG] - TemplateLocator: template exists:
M:\GIStec\GeoMis_Portal\develop\dev_martin\geomis_portal\bin\WEB-INF\templates\jsp\navigations\html\top_default.jsp returning
/html/top_default.jsp
[14 Mai 2003 15:17:54 DEBUG] - TemplateLocator: template exists:
M:\GIStec\GeoMis_Portal\develop\dev_martin\geomis_portal\bin\WEB-INF\templates\jsp\navigations\html\left_default.jsp returning
/html/left_default.jsp
[14 Mai 2003 15:17:54 ERROR] - Turbine.handleException: Error encountered processing a template:/layouts/html/default.jsp
[14 Mai 2003 15:17:54 ERROR] -
org.apache.jasper.JasperException
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
 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(ApplicationDispatcher.java:575)
 at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
 at org.apache.turbine.services.jsp.TurbineJspService.handleRequest(TurbineJspService.java:202)
rethrown as
org.apache.turbine.util.TurbineException: Error encountered processing a template:/layouts/html/default.jsp
 at org.apache.turbine.services.jsp.TurbineJspService.handleRequest(TurbineJspService.java:221)
 at org.apache.jetspeed.modules.layouts.JetspeedJspLayout.doBuild(JetspeedJspLayout.java:115)
 at org.apache.turbine.modules.Layout.build(Layout.java:91)
 at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:123)
 at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:169)
 at org.apache.turbine.modules.Page.build(Page.java:90)
 at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
 at org.apache.turbine.Turbine.doGet(Turbine.java:563)
 at org.apache.turbine.Turbine.doPost(Turbine.java:658)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


Both errors occur no matter whether module caching is on or off (module.cache=true/false in tr.props)
Thank you very much for any hints ....
    Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Clueless newbie error I'm sure

Posted by jc...@drhorton.com.
I'm encountering an error with the portal and although I understand the error I have no idea where to start looking to try and fix it. Here's the error text:

[5/14/03 11:27:25:741 CDT] 7c66c0c4 WebGroup      I SRVE0180I: [Jetspeed Enterprise Information Portal] [/DRHPortal] [Servlet.LOG]: /index.jsp: init
[5/14/03 11:27:29:585 CDT] 7c66c0c4 TraceNLS      u No message text associated with key WARNING:.Cannot.set.header..Response.already.committed. in bundle
com.ibm.ejs.resources.seriousMessages
[5/14/03 11:27:29:585 CDT] 7c66c0c4 SRTServletRes W WARNING: Cannot set header. Response already committed.

I know that this is normally caused by something trying to write to the HTTP header after it has been closed. Unfortunately this doesn't happen all the time. It's kind of a
semi-random happening. If I stop and restart the application (We are using websphere Application Server 5) it doesn't seem to help, but I rebooted the server entirely and now
the portal functions. This error seems to occur when you try to hit the first page, before a user has logged in.

The last time that this error occured we had updated (overwrite the EAR on the server, it's an option from the Applications menu) the portal EAR. The only changes made were to
the Torque.properties file to change the location of the default database. Once again, after I rebooted the box (didn't make any other changes), the portal came up fine and
works fine with the new data source (MSSQL) as the default (I used the sql scripts provided with the src).

                                                                                                                                                                                
                                                                                                                                                                                
                                                                                                                                                                                






---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org