Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JSP Precompile with EAR

0 views
Skip to first unread message

arion

unread,
May 2, 2003, 3:43:01 AM5/2/03
to
I try precompile JSP pages within EAR -> WAR without success.
I am using WebLogic 6.0 SP2 and a single JSP (namely test.jsp) without
any JSP tags at all. The JSP works without precompile.

Thanks for any help.

Arion

####<May 2, 2003 2:57:45 PM HKT> <Info> <HTTP> <internal> <cityguide>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system>
<> <101047> <[WebAppServletContext(4270808,logistics2003-htmlinf)]
precompiling JSP's at startup with JSP config='[JspConfig:
verbose=true,packagePrefix=jsp_servlet,-compiler=javac,compileFlags=,workingDir=/usr/beaa/wlserver6.0/./config/metrowalker/applications/.wl_temp_do_not_delete/WEB-INF/_tmp_war_cityguide_cityguide_logistics2003-htmlinf,pageCheckSeconds=1,superclass=null,keepgenerated=true,encoding=null,defaultfilename=index.jsp,noTryBlocks=false]'>
####<May 2, 2003 2:57:45 PM HKT> <Info> <HTTP> <internal> <cityguide>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system>
<> <101047> <[WebAppServletContext(4270808,logistics2003-htmlinf)]
checking test.jsp:>
####<May 2, 2003 2:57:45 PM HKT> <Error> <HTTP> <internal> <cityguide>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system>
<> <101046> <[WebAppServletContext(4270808,logistics2003-htmlinf)]
failure pre-compiling JSP's>
java.lang.NullPointerException
at weblogic.servlet.jsp.Jsp2Java.makeReader(Jsp2Java.java:232)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:112)
at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:253)
at
weblogic.servlet.jsp.Precompiler.compileOne(Precompiler.java:124)
at weblogic.servlet.jsp.Precompiler.compile(Precompiler.java:44)
at
weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.java:2003)
at
weblogic.servlet.internal.dd.DescriptorLoader.initFromWebApp(DescriptorLoader.java:742)
at
weblogic.servlet.internal.dd.DescriptorLoader.createServletContext(DescriptorLoader.java:359)
at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:467)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.deploy(Application.java:190)
at
weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:173)
at
weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:217)
at
weblogic.management.mbeans.custom.Application.setDeployed(Application.java:187)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1149)
at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:773)
at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:750)
at
weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:256)
at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:318)
at
weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:259)
at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at
weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:293)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:175)
at $Proxy7.setDeployed(Unknown Source)
at
weblogic.management.console.pages._panels._mbean._application._jspService(_application.java:303)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Deepak Vohra

unread,
May 13, 2003, 5:59:58 PM5/13/03
to

The precompile tag should be included in web.xml file as follows:
<?xml version="1.0" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>true</param-value>
</context-param>
</web-app>

0 new messages