on 03-12-2004 2:34 PM
Hello,
if there occurs any compile or runtime problem in a jsp-file I get only a Http500-error page, no further hints as to where exactly the problem occured, exception stack trace, javac output etc.
I knew from WAS 6.20 that these messages could be found in the general log file.
Now, I have already set quite a few of the standard logging categories and locations to debug level, but still no output. Where can I switch on this debug output information ?
It's really hard working without any detailed error messages. I tried this both in release 6.30 and 6.40.
Your help would be - as always - appreciated.
Astrid
Hi Astrid,
in the './log' directory of your server installation you should have a "defaultTrace.trc" file where all trace messages are written. There you should be able to find the error output.
Hope this will help.
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I'm modifying the masthead-jsp. With EP6 SP2 it was easily possible to find the wrong statement. Now, with EP6 SP11 unfortunately I haven't been able to do so, so far. I can find the correct part in the log/trace-file, but it does not help me to find the wrong statement:
...
[EXCEPTION]
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
Component : pcd:portal_content/ch.cc.ega.design/com.sap.portal.frameworkpage/ch.cc.ega.masthead
Component class : com.sapportals.portal.navigation.HeaderiView
User : CCC_SCHF
at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
at com.sapportals.portal.navigation.HeaderiView.doContent(HeaderiView.java:63)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
...
...CompilingException: Error occurs during the rendering of the jsp component
-> the portal generates the .java-file in the work folder, but then cannot compile it.
How can I get to the wrong statement in the JSP-Page?
I've found two ways for finding some better log with compile errors in a jsp-page.
1) when testing the application in an iView, view the source-code of the error-page and there will be some details somwhere in the stacktrace (unfortunately the stylesheet sets this tag to invisible):
Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: D:/usr/sap/IEP/JC01/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/ch.admin.portal.navigation.masthead/work/jsp/_sapportalsjsp_headeriview.java:598: isAnonymous is already defined in subDoContent(com.sapportals.portal.prt.component.IPortalComponentRequest,com.sapportals.portal.prt.component.IPortalComponentResponse,javax.servlet.jsp.PageContext,com.sapportals.portal.prt.servlets_jsp.server.jsp.response.JSPResponse,java.util.Vector)
boolean isAnonymous = false;
2) use the exception-id from the error-page to search the logfiles. this brings you to the stacktrace, but thisone does not contain helpful information. look above it for statements like:
Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException:
There will be the same text as in the source of the error-page.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.