Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Precompile JSP in Weblogic 7

 
Mary White
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add the following to the weblogic.xml of the war file:

I hope that helps.
 
Mary White
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Venkatraman for your suggestion.
It work fine!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic