Meaningless Drivel is fun!*
The moose likes BEA/Weblogic and the fly likes Precompile JSP in Weblogic 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Precompile JSP in Weblogic 7" Watch "Precompile JSP in Weblogic 7" New topic
Author

Precompile JSP in Weblogic 7

Mary White
Ranch Hand

Joined: Jan 27, 2003
Posts: 41
Hi,
I'm deploying my web application in Weblogic 7.0. I have added the context parameter
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>true</param-value>
</context-param>
But still the JSPs are not getting compile.
My web.xml (up to where I declare the context parameter) looks like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Application Name</display-name>
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>true</param-value>
</context-param>
<servlet> .... res of the web.xml file.
Is there something else I should add or configure in the server?
Thanks
Venkatraman Balasubramanian
Ranch Hand

Joined: Feb 14, 2002
Posts: 34
Add the following to the weblogic.xml of the war file:

I hope that helps.


Venkatraman Balasubramanian<br />SCJP2, SCWCD, SCEA Part I<br />BEA System Certified jCert Enterprise Developer (WLS 6.0).<br />MCSD, MCAD, OCA (Oracle 9i), OCP (JDeveloper R3)
Mary White
Ranch Hand

Joined: Jan 27, 2003
Posts: 41
Thanks Venkatraman for your suggestion.
It work fine!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Precompile JSP in Weblogic 7
 
Similar Threads
config my-faces & tomahawk & Trinidad
javax. servlet.jsp.J spException: Cannot find FacesContext
Cant get my first jsf page to render :-(
Error while starting the server in jboss with jsf app
JSF Facelets deployment problem