Technical data

Web Applications
Configuring and Managing WebLogic Server 7-5
Web Applications
HTTP and Web Applications are deployed according to the Servlet 2.3 specification
from Sun Microsystems, which describes the use of Web Applications as a
standardized way of grouping together the components of a Web-based application.
These components include JSP pages, HTTP servlets, and static resources such as
HTML pages or image files. In addition, a Web Application can access external
resources such as EJBs and JSP tag libraries. Each server can host any number of Web
Applications. You normally use the name of the Web Application as part of the URI
you use to request resources from the Web Application.
By default JSPs are compiled into the servers' temporary directory the location for
which is (for a server: "myserver" and for a webapp: "mywebapp"):
<domain_dir>\myserver\.wlnotdelete\appname_mywebapp_4344862
The server deletes the temp directory (and thus the default working directory for the
jsps) each time the server is restarted. If the JSPs are configured to be precompiled they
will be precompiled each time the server restarts.
To avoid this there are following options:
! Precompile the generated classes into your WEB-INF/classes directory (or a jar
file in WEB-INF/lib).
! Set a workingDir for the jsp-descriptor in your weblogic.xml
<jsp-descriptor>
<jsp-param> <param-name>workingDir</param-name>
<param-value>d:\jsp_store</param-value> </jsp-param>
</jsp-descriptor>
After this is done the precomiled classes will not be deleted each time the server
restarts and they will not be recompiled.
For more information, see Assembling and Configuring Web Applications at
http://e-docs.bea.com/wls/docs81b/webapp/index.html.