Step 1: verify EAR file
- jar -tvf jspcompile.ear
487 Thu Jan 24 11:26:22 EST 2008 META-INF/application.xmlStep 2: Compile using ojspc
226 Thu Jan 24 11:26:12 EST 2008 META-INF/orion-application.xml
2066 Thu Jan 24 11:26:22 EST 2008 jspcompile.war
- ojspc jspcompile.ear
Detected archive, now processing contents of jspcompile.ear...Step 3: Verify compiled JSP JAR file is present within WEB-INF\lib
Setting up temp area...
Expanding archive in temp area...
Detected archive, now processing contents of /tmp/tmp56123/jspcompile.war...
Setting up temp area...
Expanding archive in temp area...
Creating /tmp/tmp56123/jspcompile.war ...
Removing temp area...
Creating /u01/pas/tars/sr/jspcompile.ear ...
Removing temp area...
Extract EAR file
jar -xvf jspcompile.ear
inflated: META-INF/application.xmlExtract WAR File
inflated: META-INF/orion-application.xml
inflated: jspcompile.war
jar -xvf jspcompile.war
inflated: Page1.jsp
inflated: Page2.jsp
inflated: WEB-INF/classes/META-INF/orion-application.xml
inflated: WEB-INF/web.xml
inflated: WEB-INF/lib/__oracle_jsp_jspcompile.jar
As you can see OJSPC has created a file called "__oracle_jsp_jspcompile.jar" with the precompiled JSP source files ready to be run. More info on this is in the online documentation for OAS 10.1.3.x
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28961/ojspc.htm#sthref209
Precompiling JSPs within a WAR File
No comments:
Post a Comment