If your application design requires runtime JSP compilation, you can configure the settings described here to decrease the time required to compile. These settings can also reduce server start-up time if you have configured JSPs to compile at start-up.
To reduce the compilation time for JavaServer Pages (JSPs), you can configure the class path for JSPs separately from the EAServer class path. By default, the JSP compiler class path includes the EAServer process class path plus these class entries and JAR files that are specific to the Web application:
The work/servername/servlet/WebApp-webapp directory, where EAServer generated servlet classes for JSPs. Here, servername is the name of the server, and webapp is the name of the Web application.
The Repository/WebApplication/webapp/WEB-INF/classes directory, where you deploy classes used by servlets and JSPs in the Web application. Here, webapp is the Web application name.
The JAR files in the Repository/WebApplication/webapp/WEB-INF/lib directory. Here, webapp is the Web application name.
The JAR files in the extensions directory of your EAServer installation.
For the fastest JSP compile times, you must configure the compiler class path to eliminate unnecessary entries. To do so, set these properties on the Advanced tab in the Web Application Properties and Web Component Properties dialog boxes:
com.sybase.jaguar.webapplication.jsp.compile-use-eas-cp
For the Web application, set this property to false to exclude entries from the EAServer process CLASSPATH setting in the JSP compiler class path. The default of true indicates that the server class path should be included.
com.sybase.jaguar.servlet.jsp.compile-use-eas-cp
For individual JSPs (Web components in EAServer Manager), set this property to false to exclude entries from the EAServer process CLASSPATH setting in the JSP compiler class path. The default of true indicates that the server class path should be used.
com.sybase.jaguar.webapplication.jsp.compile-use-third-party
For the Web application, set this property to specify whether JAR files in the EAServer java/lib subdirectory are included in the JSP compiler class path. If this property is true, all JAR files in this directory are included. The default is false. This property is ignored if the com.sybase.jaguar.webapplication.jsp.compile-use-eas-cp property is set to true.
com.sybase.jaguar.servlet.jsp.compile-use-third-party
For individual JSPs (Web components), set this property to specify whether JAR files in the EAServer java/lib subdirectory are included in the JSP compiler class path. If this property is true, all JAR files in this directory are included. The default is false. This property is ignored if the com.sybase.jaguar.webapplication.jsp.compile-use-eas-cp property is set to true for the Web application or the com.sybase.jaguar.servlet.jsp.compile-use-eas-cp is set to true for the Web component.
com.sybase.jaguar.webapplication.jsp.compile-extra-cp
For the Web application, specifies additional JAR files and directories to include in the JSP compiler class path. Specify the paths in a comma-separated list, with paths relative to the EAServer installation directory. For example, to include $JAGUAR/java/lib/iaws.jar and $JAGUAR/java/classes/extra.jar, set the property to:
java/lib/iaws.jar,java/classes/extra.jar
com.sybase.jaguar.servlet.jsp.compile-extra-cp
For individual JSPs, specifies additional JAR files and directories to include in the JSP compiler class path, using the same syntax as the com.sybase.jaguar.webapplication.jsp.compile-extra-cp property.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |