When users call up a JSP page the first time, WebLogic automatically translates the JSP file into a servlet and then compiles that servlet. This process can take over 30 seconds, which could lead to user dissatisfaction. Further, this process is performed serially even on a multiprocessor node - if you have multiple users hitting five different pages, WebLogic compiles these pages one at a time. As a result, we strongly recommend precompiling the JSP pages prior to deployment into production.
To precompile, you need to build the Sterling Selling and Fulfillment Foundation enterprise archive file (smcfs.ear).
Follow these steps:
WLS_JARS=${JAVA_HOME}/lib/tools.jar:
${WL_HOME}/lib/weblogic.jar:${WL_HOME}/lib/ojdbc6.jar:${JAVA_HOME}
/jre/lib/rt.jar
${JAVA_HOME}/bin/java -Xms1024m -Xmx1024m \
-Djava.io.tmpdir=${INSTALL_DIR}/tmp \
-classpath ${APPC_CLASSPATH} weblogic.appc \
${INSTALL_DIR}/external_deployments/smcfs.ear \
-forceGeneration \
-O \
-verbose \
-classpath ${YANTRA_CLASSPATH} \
${INSTALL_DIR}/external_deployments/smcfs.ear
The precompiled JSPs are stored back into the smcfs.ear file.