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</precomp
ile>
<precompile-continue>false
</precompi
le-continu
e>
<keepgenerated>true</keepg
enerated>
<verbose>true</verbose>
<working-dir>c:/temp/bea</
working-di
r>
</jsp-descriptor>
The file I edited was C:\bea\wlserver_10.0\serve
r\lib\cons
oleapp\web
app\WEB-IN
F\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\sampl
es\domains
\wl_server
\startWebL
ogic.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!
Start Free Trial