I am porting our webapp from Tomcat 6 to Weblogic 10, and I am trying to figure out how to view the java files generated by Weblogic when the JSP files are compiled. After Googling around I found some documentation for setting 'keepgenerated=true' by editing weblogic.xml as follows:
<jsp-descriptor>
<precompile>false</precompile>
<precompile-continue>false</precompile-continue>
<keepgenerated>true</keepgenerated>
<verbose>true</verbose>
<working-dir>c:/temp/bea</working-dir>
</jsp-descriptor>
The file I edited was C:\bea\wlserver_10.0\server\lib\consoleapp\webapp\WEB-INF\weblogic.xml.
However,when I then bring up Weblogic the class files are still being compiled to its internal work directory (instead of c:\temp\bea), and no JSP java files are being preserved. I have confirmed that I am editing the correct weblogic.xml because when I deliberately introduce a syntax error in it I get an error on startup. However, I don't understand why 'working-dir' and 'keepgenerated' are not working. I am running the default 'sample' instance under Weblogic 10; here is the command I use to start it:
C:\bea\wlserver_10.0\samples\domains\wl_server\startWebLogic.cmd
So, in a nutshell, what file and setting do I need to edit in order for Weblogic to preserve the java files? It is very difficult to debug stack traces in JSPs without those files.
Any help would be appreciated!
Example:
java weblogic.jspc -keepgenerated one.jsp