1. Keep the generated java files
IBM websphere :
change WEB-INF\ibm-web-ext.xml as following :
<jspAttributes xmi:id="JSPAttribute_1" name="keepgenerated" value="true"/> <jspAttributes xmi:id="JSPAttribute_2" name="scratchdir" value="C:\temp\ibm"/>
Weblogic :
Change weblogic.xml as following :
2. Restart the server in debug or normal mode
3. When an exception happens in a jsp, it will show and line number. Now, you can find the java file and trace the line number and go from there.
IBM websphere :
change WEB-INF\ibm-web-ext.xml as following :
<jspAttributes xmi:id="JSPAttribute_1" name="keepgenerated" value="true"/> <jspAttributes xmi:id="JSPAttribute_2" name="scratchdir" value="C:\temp\ibm"/>
Weblogic :
Change weblogic.xml as following :
<jsp-descriptor> <keepgenerated>true</keepgenerated> <verbose>true</verbose> <working-dir>c:/temp/bea</working-dir> </jsp-descriptor>
2. Restart the server in debug or normal mode
3. When an exception happens in a jsp, it will show and line number. Now, you can find the java file and trace the line number and go from there.
No comments:
Post a Comment