Monday, March 25, 2013

weblogic keep generated java from jsp

in your weblogic.xml, enter this:
<weblogic-web-app  xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <jsp-descriptor>
        <keepgenerated>true</keepgenerated>
  <working-dir>/opt/oracle/apps/wlobelix/tmp</working-dir>
        <backward-compatible>true</backward-compatible>
  <debug>true</debug>
    </jsp-descriptor>



Make sure that /opt/oracle/apps/wlobelix/tmp exists, and is writable by the unix user running WLS.

Redeploy, restart - eventually before restart delete the weblogic server tmp directory.In the Configuration tab of the webapplication, make sure the checkboxes are active:





BIG WARNING: remember to delete the content of the /opt/oracle/apps/wlobelix/tmp folder at each new deployment, otherwise you might not get the latest JSP version.

No comments: