JSP Precompilation error

While trying to build WAR file, I get the error message Caught IOException in Jspc.putFilesIntoResultsFile():java.io.IOException.
I am using the following command to build my WAR.
java -jar ojspc.jar C:\appln.war -appRoot C: -addclasspath C:\applnejb.jar;C:\oc4j_10g\j2ee\home\lib\ejb.jar -extraImports "java.util.* java.io.*" -output C:\appln.war
It would be great if any one could help me on this.
Regards,
Vijay

Oc4j version 10.1.2.0.2 or IAS can be downloaded at oracle website. That version should resolve the problem. However, I am not sure of the support contract or license involved.
If you have a unix machine, then you can precompile on unix.
Another workaround is to let ojspc operate on expanded war. So you can run  cdnewdir c:\temp\appln;
  jar xf path_to_appln.war
  mkdir WEB-INF\lib\jsp_classes
  java -jar ojspc.jar -appRoot C:\temp\appln -addclasspath
C:\applnejb.jar;C:\oc4j_10g\j2ee\home\lib\ejb.jar
-extraImports "java.util.* java.io.*" -dir WEB-INF\lib\jsp_classes <list_of_jsp_files>
  cd WEB-INF\lib\jsp_classes; jar cf __oracle_jsp_appln.jar *
  copy __oracle_jsp_appln.jar ..
  cd ..
  del /S  jsp_classes
  cd ..\..
  jar xf appln.war *where the list of jsp files can be, for example, generated by   dir/S /B "*jsp"Please note at the last step, you may want to make sure that the main_mode of JspServlet specified in web.xml is justrun so that the packaged jsp page implementation classes will be used by the oracle jsp engine when the war is deployed.
Unless you just want to verify your jsps can be compiled, this process is actually easier than operating on war file directly since, in 10.1.2, the generated classes are not packaged into a place that will be loaded by web application after you deploy the output war file. You have to extract the output war, move the jar file that contains the generated classes to WEB-INF/lib and repackage.
Hope this helps.

Similar Messages

  • JSP Precompile Error

    Hello,
    We are converting our application builds from Web Logic 8.1 to 10. As part of the build, we precompile the jsps to improve the rendering time and this has worked fine in WL 8.1 so far. However, when I changed the WL version to 10, I get the following error!
    [echo] **** jspc: Precompiling WEBLOGIC JSPs
    [java] Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/servlet/jsp/jspc20: weblogic/utils/compiler/Tool
    Surprisingly, I found the Tool.class in the weblogic.jar for 81 but not in 10.
    Could someone let me know where this class is residing now in WL10?
    Thank you
    SG

    I'm guessing you're very new at posting technical questions on the internet (at least I hope you're new at it).
              You need to provide specific details about what you're doing, what you're seeing, and what you expect to see. No one could possibly give you a useful answer without that.

  • JSP Precompile Error in Weblogic 5.1 Server

    My application is running well in Weblogic 5.1 sp10 server. I am trying to run my application as NT service. The NT service installed and started with no problem. But I got following error messages when I try to access my JSP. Can anyboby help me out? Thanks in advance.
    James
    Compilation of ' D:\applica\middleware1\Server\lib\WEBINF\_tmp_war_paygo\jsp_servlet\_login.java' failed:
    Failed to parse compiler output:
    java.io.IOException: CreateProcess: javac -classpath d:\jdk1.3.1_02\jre\lib\rt.jar;d:\jdk1.3.1_02\jre\lib\i18n.jar;d:\jdk1.3.1_02\jre\lib\sunrsasign.jar;d:\jdk1.3.1_02\jre\classes;d:\rogers\weblogic51\weblogic510sp10\lib\weblogic510sp10boot.jar;d:\rogers\weblogic51\classes\boot;d:\rogers\weblogic51\eval\cloudscape\lib\cloudscape.jar;d:\applica\middleware1\lib\crimson.jar;d:\applica\middleware1\lib\xalan.jar;d:\applica\middleware1\lib\msbase.jar;d:\applica\middleware1\lib\mssqlserver.jar;d:\applica\middleware1\lib\msutil.jar;d:\applica\middleware1\lib\classes12_01.zip;d:\applica\middleware1\lib\mail.jar;d:\rogers\weblogic51\license;d:\rogers\weblogic51\weblogic510sp10\lib\weblogic510sp10.jar;d:\rogers\weblogic51\classes;d:\rogers\weblogic51\lib\weblogicaux.jar;d:\rogers\weblogic51\myserver\serverclasses;d:\applica\middleware1\itspServer\lib\paygo_server_classes.jar;d:\applica\middleware1\APILink\apiclasses.jar;d:\applica\middleware1\APILink\ejbInfra.jar;d:\applica\middleware1\APILink\ObjectManager.jar;d:\applica\middleware1\APILinD
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.(Win32Process.java:66)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:551)
    at java.lang.Runtime.exec(Runtime.java:477)
    at java.lang.Runtime.exec(Runtime.java:443)
    at weblogic.utils.Executable.exec(Executable.java:170)
    at weblogic.utils.Executable.exec(Executable.java:107)
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:443)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:249)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:366)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:922)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:886)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

    http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_solution&answerpage=solution&page=wls/S-10901.html

  • Jsp precompile

              Hi,
              I using weblogic 6.0 sp1 and struts to develop the web application, I deployed
              my web application by war file,I want precompile jsp when weblogic server starts
              up by defining the following context parameter in web.xml deployment descriptor:
              <context-param>
              <param-name>weblogic.jsp.precompile</param-name>
              <param-value>true</param-value>
              </context-param>
              but it failure to pre-compiling JSP's when weblogic server start. I visited
              weblogic newsgroup, and followed the info to try using directory struct to deploy
              (under .\config\mydomain\applications
              or outside of the .\applications directory), both of them had errors. the following
              is my web.xml file and error info. Could you give some idea to fix it?
              Thanks
              Judy
              <?xml version="1.0" encoding="ISO-8859-1"?>
              <!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>
              <context-param>
              <param-name>weblogic.jsp.precompile</param-name>
              <param-value>true</param-value>
              </context-param>
              <!-- Action Servlet Configuration -->
              <servlet>
              <servlet-name>action</servlet-name>
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              <init-param>
              <param-name>application</param-name>
              <param-value>ApplicationResources</param-value>
              </init-param>
              <init-param>
              <param-name>config</param-name>
              <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
              <init-param>
              <param-name>debug</param-name>
              <param-value>2</param-value>
              </init-param>
              <init-param>
              <param-name>detail</param-name>
              <param-value>2</param-value>
              </init-param>
              <init-param>
              <param-name>validate</param-name>
              <param-value>true</param-value>
              </init-param>
              <load-on-startup>2</load-on-startup>
              </servlet>
              <servlet>
              <servlet-name>InitServlet</servlet-name>
              <servlet-class>ccd.web.misc.InitServlet</servlet-class>
              <load-on-startup>3</load-on-startup>
              </servlet>
              <!-- Action Servlet Mapping -->
              <servlet-mapping>
              <servlet-name>action</servlet-name>
              <url-pattern>*.do</url-pattern>
              </servlet-mapping>
              <!-- The Welcome File List -->
              <welcome-file-list>
              <welcome-file>index.htm</welcome-file>
              </welcome-file-list>
              <!-- Application Tag Library Descriptor -->
              <taglib>
              <taglib-uri>/WEB-INF/tlds/app.tld</taglib-uri>
              <taglib-location>/WEB-INF/tlds/app.tld</taglib-location>
              </taglib>
              <!-- Struts Tag Library Descriptors -->
              <taglib>
              <taglib-uri>/WEB-INF/tlds/struts-bean.tld</taglib-uri>
              <taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>/WEB-INF/tlds/struts-html.tld</taglib-uri>
              <taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>/WEB-INF/tlds/struts-logic.tld</taglib-uri>
              <taglib-location>/WEB-INF/tlds/struts-logic.tld</taglib-location>
              </taglib>
              <!-- Security -->
              <security-constraint>
              <web-resource-collection>
              <web-resource-name>AdminPages</web-resource-name>
              <description>
              These pages are only accessible by authorised user.
              </description>
              <url-pattern>/misc/ccd.htm</url-pattern>
              <http-method>POST</http-method>
              <http-method>GET</http-method>
              </web-resource-collection>
              <auth-constraint>
              <description>
              These are the roles who have access
              </description>
              <role-name>
              CcdApp
              </role-name>
              </auth-constraint>
              <user-data-constraint>
              <description>
              This is how the user data must be transmitted
              </description>
              <transport-guarantee>NONE</transport-guarantee>
              </user-data-constraint>
              </security-constraint>
              <login-config>
              <auth-method>FORM</auth-method>
                   <form-login-config>
                   <form-login-page>/misc/login.jsp</form-login-page>
                   <form-error-page>/misc/fail_login.jsp</form-error-page>
              </form-login-config>
              </login-config>
              <security-role>
              <description>
              An administrator
              </description>
              <role-name>
              CcdApp
              </role-name>
              </security-role>
              </web-app>
              Error info for war file deployed:
              <May 9, 2001 11:20:23 AM EDT> <Error> <HTTP> <[WebAppServletContext(6040101,ccd)
              ] 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(WebAppS
              ervletContext.java:2003)
              at weblogic.servlet.internal.dd.DescriptorLoader.initFromWebApp(Descript
              orLoader.java:741)
              at weblogic.servlet.internal.dd.DescriptorLoader.createServletContext(De
              scriptorLoader.java:358)
              at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              98)
              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:126)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:283)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:109)
              at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              r.java:76)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy29.addWebDeployment(Unknown Source)
              at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              ployment(WebServerMBean_CachingStub.java:985)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:269)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:109)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean
              s(ConfigurationMBeanImpl.java:409)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:287)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
              eanImpl.java:866)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
              eanImpl.java:853)
              at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.ja
              va:838)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:566)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy12.addTarget(Unknown Source)
              at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(Appli
              cationManager.java:486)
              at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
              pplicationManager.java:557)
              at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
              pplicationManager.java:504)
              at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
              Manager.java:428)
              at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
              Manager.java:380)
              at weblogic.management.mbeans.custom.ApplicationManager.update(Applicati
              onManager.java:152)
              at weblogic.management.mbeans.custom.ApplicationManager.startAdminManage
              r(ApplicationManager.java:205)
              at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              nManager.java:120)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy2.start(Unknown Source)
              at weblogic.management.Admin.startApplicationManager(Admin.java:1034)
              at weblogic.management.Admin.finish(Admin.java:491)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              at weblogic.Server.main(Server.java:35)
              >
              <May 9, 2001 11:20:23 AM EDT> <Error> <J2EE> <Error deploying application ccd:
              C
              ould not load ccd>
              <May 9, 2001 11:20:26 AM EDT> <Notice> <WebLogicServer> <WebLogic Server started
              >
              <May 9, 2001 11:20:26 AM EDT> <Notice> <WebLogicServer> <SSLListenThread listeni
              ng on port 7002>
              <May 9, 2001 11:20:26 AM EDT> <Notice> <WebLogicServer> <ListenThread listening
              on port 7001>
              Error info for directory deployed:
              <May 9, 2001 4:50:55 PM EDT> <Error> <HTTP> <[WebAppServletContext(6044546,ccd)]
              failure pre-compiling JSP's
              weblogic.servlet.jsp.JspException: (line 35): Non-matching extension tags
              at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:640)
              at weblogic.servlet.jsp.JspLexer.mCLOSE_EXTENSION_TAG(JspLexer.java:2076
              at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1676)
              at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1552)
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:893)
              at weblogic.servlet.jsp.JspParser.doit(JspParser.java:71)
              at weblogic.servlet.jsp.JspParser.parse(JspParser.java:139)
              at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:113)
              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(WebAppS
              ervletContext.java:2003)
              at weblogic.servlet.internal.dd.DescriptorLoader.initFromWebApp(Descript
              orLoader.java:741)
              at weblogic.servlet.internal.dd.DescriptorLoader.createServletContext(De
              scriptorLoader.java:358)
              at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              98)
              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:126)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:283)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:109)
              at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              r.java:76)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy29.addWebDeployment(Unknown Source)
              at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              ployment(WebServerMBean_CachingStub.java:985)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:269)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
              loymentTarget.java:233)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
              ments(DeploymentTarget.java:194)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
              DeploymentTarget.java:158)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy28.updateDeployments(Unknown Source)
              at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
              yments(ServerMBean_CachingStub.java:2299)
              at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
              er(ApplicationManager.java:240)
              at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              nManager.java:122)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy21.start(Unknown Source)
              at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
              .start(ApplicationManagerMBean_CachingStub.java:435)
              at weblogic.management.Admin.startApplicationManager(Admin.java:1030)
              at weblogic.management.Admin.finish(Admin.java:491)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              at weblogic.Server.main(Server.java:35)
              >
              <May 9, 2001 4:50:55 PM EDT> <Error> <J2EE> <Error deploying application ccd:
              Co
              uld not load ccd>
              <May 9, 2001 4:51:03 PM EDT> <Error> <HTTP> <[WebAppServletContext(466450,web)]
              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(WebAppS
              ervletContext.java:2003)
              at weblogic.servlet.internal.dd.DescriptorLoader.initFromWebApp(Descript
              orLoader.java:741)
              at weblogic.servlet.internal.dd.DescriptorLoader.createServletContext(De
              scriptorLoader.java:358)
              at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              98)
              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:126)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:283)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:109)
              at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              r.java:76)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy29.addWebDeployment(Unknown Source)
              at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              ployment(WebServerMBean_CachingStub.java:985)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:269)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:109)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean
              s(ConfigurationMBeanImpl.java:409)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:287)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
              eanImpl.java:866)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB
              eanImpl.java:853)
              at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.ja
              va:838)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:566)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy12.addTarget(Unknown Source)
              at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(Appli
              cationManager.java:486)
              at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
              pplicationManager.java:557)
              at weblogic.management.mbeans.custom.ApplicationManager.addApplication(A
              pplicationManager.java:504)
              at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
              Manager.java:428)
              at weblogic.management.mbeans.custom.ApplicationManager.poll(Application
              Manager.java:380)
              at weblogic.management.mbeans.custom.ApplicationManager.update(Applicati
              onManager.java:152)
              at weblogic.management.mbeans.custom.ApplicationManager.startAdminManage
              r(ApplicationManager.java:205)
              at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              nManager.java:120)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy2.start(Unknown Source)
              at weblogic.management.Admin.startApplicationManager(Admin.java:1034)
              at weblogic.management.Admin.finish(Admin.java:491)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              at weblogic.Server.main(Server.java:35)
              >
              <May 9, 2001 4:51:04 PM EDT> <Error> <J2EE> <Error deploying application web:
              Co
              uld not load web>
              <May 9, 2001 4:51:18 PM EDT> <Notice> <WebLogicServer> <WebLogic Server started>
              <May 9, 2001 4:51:18 PM EDT> <Notice> <WebLogicServer> <SSLListenThread listenin
              g on port 7002>
              <May 9, 2001 4:51:18 PM EDT> <Notice> <WebLogicServer> <ListenThread listening
              o
              n port 7001>
              

    Trying adding this to your weblogic.xml file:
              <jsp-descriptor>     
                        <jsp-param>
                        <param-name>precompile</param-name>
                        <param-value>true</param-value>
                        </jsp-param>
                   </jsp-descriptor>
              

  • Jsp precompilation in weblogic 10.3

    I tried precompiling jspx and jsff files using weblogic.jspc.
    generated class files are copied to .war/web-inf/classes as i specified this path as destination directory.
    when i deploy the .war and try to access page, i get following error
    java.lang.IllegalStateException: <f:view> was not present on this page; tag [email protected]b8encountered without an <f:view> being processed.
    at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.setProperties(UIXComponentELTag.java:97)
    at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:613)
    at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
    at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:72)
    at oracle.adfinternal.view.faces.taglib.region.IncludeTag.doStartTag(IncludeTag.java:179)
    at oracle.adfinternal.view.faces.taglib.region.DynamicIncludeTag.doStartTag(DynamicIncludeTag.java:109)
    at jsp_servlet._components.__domainpage_jspx._jspService(__domainpage_jspx.java:137)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    After precompiling, do i need to do any config step.
    Kindly suggest list of steps to precompile Jsp in .war using weblogic.jspc

    From the previous posts, I am assume that the desire is to have jsps precompile during the build process not when the app is deployed to the server. We build ours with Maven and have a command line call to invoke appc. [Jspc should not be used since it is depricated. |http://download.oracle.com/docs/cd/E14571_01/web.1111/e13749/utils.htm#ADMRF158]. Here is the [appc documentation|http://download.oracle.com/docs/cd/E14571_01/web.1111/e13706/splitbuild.htm#i1113244] and [more appc documentation|http://download.oracle.com/docs/cd/E14571_01/web.1111/e13719/appc_ejbc.htm#EJBPG1090] . To make appc run manually, you pretty much have to supply every library that your weblogic.xml references to the -library option. You also need enviroment variable set piror to calling. Anyhow this is what our bat file for calling appc looks like.
    set BEAWLS_HOME=%1
    set WAR=%2
    call %BEAWLS_HOME%\wlserver_10.3\server\bin\setWLSEnv.cmd
    call java weblogic.appc -verbose -librarydir %BEAWLS_HOME%\wlportal_10.3\portal-admin\lib\j2ee-modules -library %BEAWLS_HOME%\wlserver_10.3\common\deployable-libraries\jsf-1.2.war,%BEAWLS_HOME%\modules\com.bea.content.vcr_10.3.2.0\content-management-faces-web-lib.war -classpath %BEAWLS_HOME%\wlportal_10.3\light-portal\lib\system\netuix_common.jar %WAR%
    This is for Oracle Portal 10.3.2. The locations of the war moved around from Portal 10.3.0 to 10.3.2. BEAWLS is our the Oracle\Middleware (bea\home in older installs) folder from our Weblogic Portal install. WAR is the existing war file. I deleted most war libararies, since there are a lot to list making it really long. It takes our war and compiles all the jsps in it and then makes a new war in its place. The war is then packaged into an ear. Building with ant probably take care some of it for you, but this is what it looks like to call the command manually.

  • JSP PRECOMPILER IS NOT WORKING WITH WEBLOGIC 6.1 SERVICE PACK 5

              When i compile JSPs using JSP PreCompiler in weblogic 6.1
              ( Service Pack 4 ) , compilation is perfect.
              But when i precompile the same JSPs with weblogic 6.1 (Service Pack 5 )
              , i get compilation error.
              Variable Not Found error comes in service pack 5. But the same code works
              well with service pack 4.
              Could anyone help me ?
              [java] C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              NF\classes\jsp_servlet\_secure\__confirmation.java:280: cannot resolve symbol
              [java] symbol : variable yesLinkPageText
              [java] location: class jsp_servlet._secure.__confirmation
              [java] htmllink0.setPage(yesLinkPageText); //[ /secure/co
              rmation.jsp; Line: 32]
              [java] ^
              [java] C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              NF\classes\jsp_servlet\_secure\__confirmation.java:378: cannot resolve symbol
              [java] symbol : variable noLinkPageText
              [java] location: class jsp_servlet._secure.__confirmation
              [java] htmllink0.setPage(noLinkPageText); //[ /secure/con
              mation.jsp; Line: 37]
              [java] Error: compilation of jsp file /secure/confirmation.jsp (java file C
              VSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WEB-INF\classes
              p_servlet\_secure\__confirmation.java failed):
              [java] ^
              [java] null
              [java] 2 errors
              [java] Error: [jspc]: 1 file(s) failed:
              [java] /secure/confirmation.jsp
              [java] java.io.IOException: Compiler failed executable.exec(java.lang.String
              

    Can you post the jsp page or a example which doesnt compile in sp5. It seems
              difficult to guage what the problem could be from looking at the error.
              --Nagesh
              "george vargeese" <[email protected]> wrote in message
              news:40c56502$1@mktnews1...
              >
              > When i compile JSPs using JSP PreCompiler in weblogic 6.1
              > ( Service Pack 4 ) , compilation is perfect.
              >
              > But when i precompile the same JSPs with weblogic 6.1 (Service Pack
              5 )
              > , i get compilation error.
              >
              > Variable Not Found error comes in service pack 5. But the same code
              works
              > well with service pack 4.
              >
              > Could anyone help me ?
              >
              >
              > [java]
              C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              > NF\classes\jsp_servlet\_secure\__confirmation.java:280: cannot resolve
              symbol
              >
              > [java] symbol : variable yesLinkPageText
              > [java] location: class jsp_servlet._secure.__confirmation
              > [java] htmllink0.setPage(yesLinkPageText); //[
              /secure/co
              > rmation.jsp; Line: 32]
              > [java] ^
              > [java]
              C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              > NF\classes\jsp_servlet\_secure\__confirmation.java:378: cannot resolve
              symbol
              >
              > [java] symbol : variable noLinkPageText
              > [java] location: class jsp_servlet._secure.__confirmation
              > [java] htmllink0.setPage(noLinkPageText); //[
              /secure/con
              > mation.jsp; Line: 37]
              > [java] Error: compilation of jsp file /secure/confirmation.jsp (java
              file C
              >
              VSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WEB-INF\classe
              s
              > p_servlet\_secure\__confirmation.java failed):
              > [java] ^
              > [java] null
              > [java] 2 errors
              > [java] Error: [jspc]: 1 file(s) failed:
              > [java] /secure/confirmation.jsp
              > [java] java.io.IOException: Compiler failed
              executable.exec(java.lang.String
              >
              >
              

  • JSP  compilation error while starting up WLS 7.1

              Hello,
              We are using the WLS 7.1 and trying to bring the WebLogic Server up, I am getting
              the following error while compiling the JSP file.
              RBMApp.jsp has an include statement for McarBase.jsp and I am not quiet sure,
              where it is failing.
              It is very critical and any immediate reply is greatly appreciated.
              ####<Sep 11, 2003 7:16:02 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              <kernel identity> <
              > <101047> <[ServletContext(id=3523550,name=mcar,context-path=)] for /MCARShare.jsp
              generated jav
              a file /home/01/mcarop/mcardev/./mcardev71/.wlnotdelete/mcar_mcar_3523550/jsp_servlet/__MCARShare
              .java>
              ####<Sep 11, 2003 7:16:08 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              <kernel identity> <
              > <101047> <[ServletContext(id=3523550,name=mcar,context-path=)] compiled /MCARShare.jsp>
              ####<Sep 11, 2003 7:16:08 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              <kernel identity> <
              > <101047> <[ServletContext(id=3523550,name=mcar,context-path=)] checking /RBMApp.jsp:>
              ####<Sep 11, 2003 7:16:08 PM MDT> <Error> <HTTP> <sucad251> <mcardev71> <main>
              <kernel identity>
              <> <101045> <[ServletContext(id=3523550,name=mcar,context-path=)] translation
              of /RBMApp.jsp fail
              ed: weblogic.servlet.jsp.JspException: (line 2): page directive language at /McarBase.jsp:2
              previ
              ously defined at /RBMApp.jsp:2>
              ####<Sep 11, 2003 7:16:08 PM MDT> <Debug> <HTTP> <sucad251> <mcardev71> <main>
              <kernel identity>
              <> <101158> <Exception thrown while loading mcar: weblogic.servlet.jsp.JspException:
              (line 2): pa
              ge directive language at /McarBase.jsp:2 previously defined at /RBMApp.jsp:2>
              weblogic.servlet.jsp.JspException: (line 2): page directive language at /McarBase.jsp:2
              previousl
              y defined at /RBMApp.jsp:2
              at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:872)
              at weblogic.servlet.jsp.JspLexer.mPAGE_DIRECTIVE_BODY(JspLexer.java:5235)
              at weblogic.servlet.jsp.JspLexer.mPAGE_DIRECTIVE(JspLexer.java:4990)
              at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4812)
              at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2233)
              at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:2019)
              at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1892)
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
              at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1359)
              at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1337)
              at weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:1088)
              at weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:5059)
              at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4817)
              at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2233)
              at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:2019)
              at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1892)
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
              at weblogic.servlet.jsp.JspParser.doit(JspParser.java:90)
              at weblogic.servlet.jsp.JspParser.parse(JspParser.java:212)
              at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
              at weblogic.servlet.jsp.Precompiler.compileOne(Precompiler.java:166)
              at weblogic.servlet.jsp.Precompiler.compile(Precompiler.java:55)
              at weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.jav
              a:4191)
              at weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.jav
              a:4184)
              at weblogic.servlet.internal.WebAppServletContext.prepareFromDescriptors(WebAppServletCon
              text.java:1937)
              at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:1070)
              at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:982)
              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:466)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:126)
              at weblogic.j2ee.Application.addComponent(Application.java:294)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:164)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              :375)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              :154)
              at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:78)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java
              :417)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:9
              26)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
              at $Proxy37.addWebDeployment(Unknown Source)
              at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServe
              rMBean_CachingStub.java:1251)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              :343)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.jav
              a:303)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentT
              arget.java:256)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.
              java:207)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java
              :417)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:9
              26)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
              at $Proxy36.updateDeployments(Unknown Source)
              at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBea
              n_CachingStub.java:4060)
              at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.j
              ava:2259)
              at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:373)
              at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManag
              erServerLifeCycleImpl.java:235)
              at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:61)
              at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:61)
              at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:806)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:295)
              at weblogic.Server.main(Server.java:32)
              ####<Sep 11, 2003 7:16:09 PM MDT> <Error> <J2EE> <sucad251> <mcardev71> <main>
              <kernel identity>
              <> <160001> <Error deploying application mcar: Could not load mcar>
              Thanks,
              Ganesh
              

    You are trying to define
              <%@ page language="..." %>
              twice in the same page because you are textually including a page that also
              defines it. Either get rid of one of the definitions or use the <jsp:include
              page="...."/> instead.
              Sam
              Ganapathy Sankaran wrote:
              > Hello,
              >
              > We are using the WLS 7.1 and trying to bring the WebLogic Server up, I am getting
              > the following error while compiling the JSP file.
              > RBMApp.jsp has an include statement for McarBase.jsp and I am not quiet sure,
              > where it is failing.
              >
              > It is very critical and any immediate reply is greatly appreciated.
              >
              >
              > ####<Sep 11, 2003 7:16:02 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              > <kernel identity> <
              >
              >><101047> <[ServletContext(id=3523550,name=mcar,context-path=)] for /MCARShare.jsp
              >
              > generated jav
              > a file /home/01/mcarop/mcardev/./mcardev71/.wlnotdelete/mcar_mcar_3523550/jsp_servlet/__MCARShare
              > java>
              > ####<Sep 11, 2003 7:16:08 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              > <kernel identity> <
              >
              >><101047> <[ServletContext(id=3523550,name=mcar,context-path=)] compiled /MCARShare.jsp>
              >
              > ####<Sep 11, 2003 7:16:08 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              > <kernel identity> <
              >
              >><101047> <[ServletContext(id=3523550,name=mcar,context-path=)] checking /RBMApp.jsp:>
              >
              > ####<Sep 11, 2003 7:16:08 PM MDT> <Error> <HTTP> <sucad251> <mcardev71> <main>
              > <kernel identity>
              > <> <101045> <[ServletContext(id=3523550,name=mcar,context-path=)] translation
              > of /RBMApp.jsp fail
              > ed: weblogic.servlet.jsp.JspException: (line 2): page directive language at /McarBase.jsp:2
              > previ
              > ously defined at /RBMApp.jsp:2>
              > ####<Sep 11, 2003 7:16:08 PM MDT> <Debug> <HTTP> <sucad251> <mcardev71> <main>
              > <kernel identity>
              > <> <101158> <Exception thrown while loading mcar: weblogic.servlet.jsp.JspException:
              > (line 2): pa
              > ge directive language at /McarBase.jsp:2 previously defined at /RBMApp.jsp:2>
              > weblogic.servlet.jsp.JspException: (line 2): page directive language at /McarBase.jsp:2
              > previousl
              > y defined at /RBMApp.jsp:2
              > at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:872)
              > at weblogic.servlet.jsp.JspLexer.mPAGE_DIRECTIVE_BODY(JspLexer.java:5235)
              > at weblogic.servlet.jsp.JspLexer.mPAGE_DIRECTIVE(JspLexer.java:4990)
              > at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4812)
              > at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2233)
              > at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:2019)
              > at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1892)
              > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
              > at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1359)
              > at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1337)
              > at weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:1088)
              > at weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:5059)
              > at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4817)
              > at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2233)
              > at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:2019)
              > at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1892)
              > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
              > at weblogic.servlet.jsp.JspParser.doit(JspParser.java:90)
              > at weblogic.servlet.jsp.JspParser.parse(JspParser.java:212)
              > at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              > at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
              > at weblogic.servlet.jsp.Precompiler.compileOne(Precompiler.java:166)
              > at weblogic.servlet.jsp.Precompiler.compile(Precompiler.java:55)
              > at weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.jav
              > a:4191)
              > at weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.jav
              > a:4184)
              > at weblogic.servlet.internal.WebAppServletContext.prepareFromDescriptors(WebAppServletCon
              > text.java:1937)
              > at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:1070)
              > at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:982)
              > at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:466)
              > at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:126)
              > at weblogic.j2ee.Application.addComponent(Application.java:294)
              > at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:164)
              > at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              > :375)
              > at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              > :154)
              > at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:78)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
              > at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
              > at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java
              > :417)
              > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              > at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:9
              > 26)
              > at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
              > at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
              > at $Proxy37.addWebDeployment(Unknown Source)
              > at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServe
              > rMBean_CachingStub.java:1251)
              > at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              > :343)
              > at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.jav
              > a:303)
              > at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentT
              > arget.java:256)
              > at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.
              > java:207)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
              > at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
              > at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java
              > :417)
              > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              > at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:9
              > 26)
              > at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
              > at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
              > at $Proxy36.updateDeployments(Unknown Source)
              > at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBea
              > n_CachingStub.java:4060)
              > at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.j
              > ava:2259)
              > at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:373)
              > at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManag
              > erServerLifeCycleImpl.java:235)
              > at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:61)
              >
              > at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:61)
              > at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:806)
              > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:295)
              > at weblogic.Server.main(Server.java:32)
              > ####<Sep 11, 2003 7:16:09 PM MDT> <Error> <J2EE> <sucad251> <mcardev71> <main>
              > <kernel identity>
              > <> <160001> <Error deploying application mcar: Could not load mcar>
              >
              > Thanks,
              > Ganesh
              

  • Deployment Error -- JSP Compilation Error: java.lang.OutOfMemoryError -- nu

    When I deploy WAR files with the precompile jsp option, I receive the following error:
    Deployment Error -- JSP Compilation Error: java.lang.OutOfMemoryError -- null
    Is there a way for me to precompile my jsp's without using this process? Once this blows up, the admin server gets hosed. This is very frustrating. Any suggestions would be appreciated.
    Regards,
    Joshua

    You need little more memory :-), use java param -mx512M.
    You can adjust it in OC Server properties
    AS > OC4J_home(demo) > Server Properties
    section Multiple VM Configuration, Command Line Options
    Java Options: -mx512M
    Zajo

  • Weblogic 9 and JSP compiler errors

    Hello everyone,
              I am having problems with my Jsps in my EAR file deployed on WL 9.0.
              I have a Jsp called upms.jsp that contains the following code snippets:
              After my import statements, I have some code that creates a resource bundle that accesses a properties file:
               <%!
                   ResourceBundle bundle = null;
                   public void jspInit() {
                   bundle = ResourceBundle.getBundle("conf.properties");
              %>
              I get an error from the above code:
              upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
                        import="java.util.ResourceBundle"
              ^----------------------^
              I am totally clueless as to what that error means.
              Next I declare a bean I use in the jsp:          
                   <jsp:useBean
                        id="userPrefsManagerBean"
              class="controllers.beans.UserPreferencesManagerBean"
                   scope="session">
                   </jsp:useBean>
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              I get these errors from the above portion:
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found '.' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              Has anyone encountered these before?
              This jsp worked perfectly well when I deployed my EAR file on JBoss...no such luck using Weblogic.
              Is there something I am missing here? I appreciate any help.
              Cheers, :-)
              M.

    Mildred,
              Two suggestions:
              1) use option weblogic.jspc's "-keepgenerated", you can keep the generated
              servlet's source code.
              Please paste it here.
              2) Can you create a simple reproducer(e.g. a war), and put it here, so that
              we can debug it and give more clues.
              To reproduce your issue, I write a simple a simple
              UserPreferencesManagerBean classs below :
              package controllers.beans;
              public class UserPreferencesManagerBean {
              private int p1;
              public void setP1(int p)
              p1 = p;
              public int getP1()
              return p1;
              But it works(oh, I run it under 910MP1).
              We cannot tell too much without your further information
              Thanks
              Leon
              <Mildred A> wrote in message news:[email protected]...
              I am still fighting with this issue.. Dang!
              I don't know what to change in my JSP because the WL JSP compiler errors are
              so out there..
              Here is the first portion of the JSP file:
              <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
              session="true"
              pageEncoding="ISO-8859-1"
              import="java.util.ArrayList"
              import="java.util.HashSet"
              import="java.util.Date"
              import="java.util.Collections"
              import="java.util.ResourceBundle"
              %>
              <%!
              ResourceBundle bundle = null;
              public void jspInit() {
              bundle = ResourceBundle.getBundle("conf.properties");
              %>
              <jsp:useBean
              id="userPrefsManagerBean"
              class="controllers.beans.UserPreferencesManagerBean"
              scope="session">
              </jsp:useBean>
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              Below is the error I get from this section alone (after precompiling):
              upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
              import="java.util.ArrayList"
              ^-----------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
              fields.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
              fields.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found '.' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found 'catch' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Illegal use of an expression as a statement.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found '__ee' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Illegal use of an expression as a statement.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ; (found ')' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected } (found 'EOF' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              Can anyone see what I am doing wrong here? ?:| ?:|
              Cheers,
              M

  • Trapping jsp compilation errors

              I'd like to trap jsp compilation errors and have an error page displayed instead,
              but I am currently having difficulty doing this using 6.1 sp1. I've tried a number
              of things in the web.xml file:
              1) using the error-page directive to trap error code 500
              2) using the error-page directive to trap weblogic.servlet.jsp.JspException
              3) using the error-page directive to trap java.lang.RuntimeException
              4) using the error-page directive to trap java.lang.Exception
              In all cases, an error code of 500 is returned to the client instead of my error
              page being called.
              Any suggestions or insights?
              Thanks...
              Steve...
              

              Unfortunately, this isn't an option for us because the pages are created on demand,
              so our only chance to capture compilation errors is during the fulfillment of
              the client's request. We do not anticipate any compilation errors, but then again,
              you can't anticipate everything.
              Steve...
              Nils Winkler <[email protected]> wrote:
              >Hi,
              >
              >this might not be what you're looking for, but how about precompiling
              >the jsp files before they are deployed? This way you will hit
              >compilation before deploying the JSP files to the server.
              >
              >Nils
              >
              >Steve Gamble wrote:
              >>
              >> To trap the 500 error:
              >>
              >> <error-page>
              >> <error-code>500</error-code>
              >> <location>/internalerror.do</location>
              >> </error-page>
              >>
              >> To trap exceptions:
              >>
              >> <error-page>
              >> <exception-type>javax.servlet.ServletException</exception-type>
              >> <location>/internalerror.do</location>
              >> </error-page>
              >>
              >> where similar blocks for
              >> - javax.servlet.jsp.JspException
              >> - java.lang.Exception
              >> - java.lang.RuntimeException
              >> - weblogic.servlet.jsp.JspException
              >>
              >> If I modify my code to deliberately throw a ServletException, then
              >the error-page
              >> is used correctly. If I modify a jsp so that it has a syntax error,
              >then the
              >> compilation exception is not caught by any of the error-page directives.
              >>
              >> Thanks in advance...
              >> Steve...
              >>
              >> "Bob Lee" <[email protected]> wrote:
              >> >Can you post the directive you are using?
              >> >
              >> >Bob
              >> >
              >> >"Steve Gamble" <[email protected]> wrote in message
              >> >news:[email protected]...
              >> >>
              >> >> I'd like to trap jsp compilation errors and have an error page displayed
              >> >instead,
              >> >> but I am currently having difficulty doing this using 6.1 sp1.
              >I've
              >> >tried
              >> >a number
              >> >> of things in the web.xml file:
              >> >>
              >> >> 1) using the error-page directive to trap error code 500
              >> >> 2) using the error-page directive to trap
              >> >weblogic.servlet.jsp.JspException
              >> >> 3) using the error-page directive to trap java.lang.RuntimeException
              >> >> 4) using the error-page directive to trap java.lang.Exception
              >> >>
              >> >> In all cases, an error code of 500 is returned to the client instead
              >> >of my
              >> >error
              >> >> page being called.
              >> >>
              >> >> Any suggestions or insights?
              >> >>
              >> >> Thanks...
              >> >> Steve...
              >> >
              >> >
              >
              >--
              >============================
              >[email protected]
              

  • JSP : Tiles Error �tag.getAsString� : component context is not defined

    JSP : Tiles Error �tag.getAsString� : component context is not defined
    I�m working with Struts 1.1 and Tiles, under Tomcat 5.0.16
    My application works fine using Struts 1.1 alone, however, when attempting to run the application in a �Tiles� environment, I get an error:

    javax.servlet.jsp.JspException: Error - tag.getAsString : component context is not defined. Check tag syntax

    I have �defined� this in my �tiles-defs.xml� file, and as far as I can tell, everything else is configured properly (I have looked over the included Struts document examples, and others on the web, and I seem to have everything configured identically).
    What am I missing???
    I have created a series of �mostly� empty JSP files, for simplicity sake.
    JSP FILES:
    -     header.jsp
    -     footer.jsp
    -     menu.jsp
    -     rootLayout.jsp
    -     user.jsp
    -     show_user.jsp
    -     error.jsp
    -     defaultContentPage.jsp
    All JSP files contain:
    <%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
    and

    <title>
    <tiles:getAsString name="title"/>
    </title>

    My �tiles-defs.xml�: =================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
    <!-- ================ RootLayout ======================= -->
    <definition name=".root.layout" path="/jsp/rootLayout.jsp" >
    <put name="title" value="Default title"/>
    <put name="header" value="/jsp/header.jsp"/>
    <put name="menu" value="/jsp/menu.jsp"/>
    <put name="content" value="/jsp/defaultContentPage.jsp"/>
    <put name="footer" value="/jsp/footer.jsp"/>
    </definition>
    <!-- ================ Extentions ======================= -->
    <!-- User -->
    <definition name=".view.user" extends=".root.layout">
    <put name="title" value="Welcome to the User Form."/>
    <put name="content" value="/jsp/user.jsp"/>
    </definition >
    <!-- Save -->
    <definition name=".view.save" extends=".root.layout">
    <put name="title" value="Welcome to the Show User Form."/>
    <put name="content" value="/jsp/show_user.jsp"/>
    </definition >
    <!-- Error -->
    <definition name=".view.error" extends=".root.layout">
    <put name="title" value="Error Message."/>
    <put name="content" value="/jsp/error.jsp"/>
    </definition >
    </tiles-definitions>
    My �struts-config.xml�: ==============================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <!-- ========== FormBeans =================================== -->
    <form-beans>
    <form-bean name="userForm" type="biz.seamrog.strutstest.model.state.UserForm"/>
    </form-beans>
    <!-- ========== Action Mapping Definitions=================== -->
    <action-mappings>
    <!-- Action using normal forward syntax...
    <action path="/user"
    forward="/jsp/user.jsp">
    </action>
    -->
    <!-- Action using a "Tiles" forward syntax...
    The "forward" path mappings are defined in a file named
    "../WEB-INF/tiles-defs.xml
    -->
    <action path="/user"
    forward=".view.user">
    </action>
    <!-- Action using normal forward syntax...
    <action path="/save"
    type="biz.seamrog.strutstest.model.logic.SaveAction"
    name="userForm" scope="request"
    input="/jsp/user.jsp">
    <forward name="success" path="/jsp/show_user.jsp"/>
    <forward name="failure" path="/jsp/error.jsp"/>
    </action>
    -->
    <!-- Tiles syntax -->
    <action path="/save"
    type="biz.seamrog.strutstest.model.logic.SaveAction"
    name="userForm" scope="request"
    input="/jsp/user.jsp">
    <forward name="success" path=".view.show_user"/>
    <forward name="failure" path=".view.error"/>
    </action>
    </action-mappings>
    <!-- ============== Global Forwards ======================== -->
    <global-forwards>
    <!-- NOTE: paths with "." syntax are Tiles defined paths,
    all other paths follow conventional "/path/to/file.jsp syntax
    -->
    <forward name="user" path=".view.user"/>
    <forward name="show_user" path=".view.show_user"/>
    <forward name="error" path=".view.error"/>
    <forward name="cssBase" path="/stylesheets/common.css"/>
    </global-forwards>
    <!-- ============= Plug-ins =============== -->
    <!-- Tiles Plug-in -->
    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
    <set-property property="definitions-parser-validate" value="true" />
    <set-property property="moduleAware" value="true" />
    </plug-in>
    </struts-config>
    My �web.xml�: =====================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
    <web-app>
    <servlet>
    <!--
    MyController extends org.apache.struts.action.ActionServlet
    NOTE: The servlet could also be specified specifying the
    default Struts ActonServlet...
    <servlet-name>controller</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    ...I have chosen to extend here just for practice sake.
    -->
    <!--
    <servlet-name>MyController</servlet-name>
    <servlet-class>biz.seamrog.strutstest.controller.MyController</servlet-class>
    -->
    <servlet-name>MyController</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <!--
    Point to Struts configuration file(s)
    -->
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <!-- Tiles config -->
    <init-param>
    <param-name>definitions-config</param-name>
    <param-value>/WEB-INF/tiles-defs.xml</param-value>
    </init-param>
    <!-- This is the added Application parameter: -->
    <init-param>
    <param-name>application</param-name>
    <param-value>ApplicationResource</param-value>
    </init-param>
    <!-- end -->
    <load-on-startup>5</load-on-startup>
    </servlet>
    <!--
    All incoming requests that end in .do, send to MyController.
    -->
    <servlet-mapping>
    <servlet-name>MyController</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!--
    Send initial requests to the login page for this application
    -->
    <welcome-file-list>
    <welcome-file>/jsp/user.jsp</welcome-file>
    </welcome-file-list>
    <!--
    Make all of the necessary related Struts JSP custom tag libraries
    available and define where to find them.
    -->
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-tiles.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-tiles.tld</taglib-location>
    </taglib>
    </web-app>
    My �rootLayout.jsp�: ================================================
    <%@page contentType="text/html"%>
    <%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
    <html>
    <header>
    <title>
    <tiles:getAsString name="title" />
    </title>
    <body>
    <tiles:get name="header"/>
    <tiles:get name="menu"/> <tiles:get name="content"/>
    <tiles:get name="footer"/>
    </body>
    </html>

    I found an entry in the Mail Archive for Struts. I got it working. My working code is below. You need to in the base JSP import the header and put the 'title' out to it.
    tiles:def file:
    <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
    <definition name=".petstore.Base" path="/common/petstorecommon.jsp">
    <put name="title" value ="${title}"/>
    <put name="header" value="/common/header.jsp"/>
    <put name="message" value="/common/message.jsp"/>
    <put name="content" value="${content}"/>
    <put name="navbar" value="/common/navbar.jsp"/>
    </definition>
    <definition name="petstore.Login" extends=".petstore.Base" >
    <put name="title" value="Login Page" />
    <put name="content" value="/Logon.jsp"/>
    <put name="test1" value="test1value"/>
    </definition>
    base tile def:
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html:html>
    <head>
    <html:base/>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>pet store common (jsp)</title>
    </head>
    <body>
    <tiles:insert attribute="header">
    <%-- both of these attributes are accessible from header.jsp It works!!! --%>
    <tiles:put name="title" beanName="title" beanScope="tile" />
    <tiles:put name="test1" beanName="test1" beanScope="tile" />
    </tiles:insert>
    <%-- <tiles:get name="header" /> --%>
    <tiles:get name="message" />
    <tiles:get name="content" />
    <tiles:get name="navbar" />
    </body>
    </html:html>
    Getting access to the title value in the header.jsp file:
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <html>
    <head>
    <tiles:getAsString name="title" />
    <tiles:getAsString name="test1" />
    </head>
    <body>
    </body>
    </html>

  • JSP compilation errors in weblogic 6.1

              I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
              Full compiler error(s):
              error: Invalid class file format:
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:34: Class
              com.ford.redherring.model.PropertiesAttributesModel not found in import.
              import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
              /web/jsp/event/eventForm.jsp; Line: 64]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
              not found in import.
              import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
              Line: 68]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
              not found in import.
              import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
              Line: 69]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
              not found in import.
              import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
              Line: 70]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:41: Class
              com.ford.redherring.model.DDValidationModel not found in import.
              import com.ford.redherring.model.DDValidationModel; <file://[>
              /web/jsp/event/eventForm.jsp; Line: 71]
              

    This appears to be a CLASSPATH problem (you are missing references to
              'com.ford.redherring.model.*' and 'com.ford.redherring.util.*'). The
              CLASSPATH may be set in the server startup script. Hope this helps.
              Wade.
              "Katri Alur" <[email protected]> wrote in message news:<[email protected]>...
              > I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
              >
              > ----------------------------------------------------------------------------
              > ----
              > Full compiler error(s):
              > error: Invalid class file format:
              >
              >
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:34: Class
              > com.ford.redherring.model.PropertiesAttributesModel not found in import.
              > import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
              > /web/jsp/event/eventForm.jsp; Line: 64]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
              > not found in import.
              > import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
              > Line: 68]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
              > not found in import.
              > import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
              > Line: 69]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
              > not found in import.
              > import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
              > Line: 70]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:41: Class
              > com.ford.redherring.model.DDValidationModel not found in import.
              > import com.ford.redherring.model.DDValidationModel; <file://[>
              > /web/jsp/event/eventForm.jsp; Line: 71]
              

  • How to see JSP compilation errors - Tomcat 4.1.18- JDK 1.4

    Hi There,
    I'm kind of new to JSP world, so once in while I forget to put a ; or I put a variable name wrong (I usualy use Eclipse to do my coding in JAVA, but the existing plugins for JSP development are still in their early stages, so there's isn't any plugin that indicates errors on JSP before deploying them).
    When I try to see a JSP, if it has an error (compilation-time error), I get this message:
    <--->
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    <--->
    This doesn't help me a lot to fix the problem, I would like to, at least, see from what line the error came from.
    Help anyone?
    Thank You
    Pinho

    This kind of errors often come from syntax error in
    the jsp page.
    Tomcat is not very friendly with this kind of errors.
    A trick is to open the java file under the 'work'
    directory and checkIsn't there any way to show the error on a page, just like a run-time error?
    Maybe changing some log setting?

  • JSP Debbuging -Error: 'class' or 'interface' expected-

    Hi,
    Does anybody know why am I getting the following error when trying to either debug or run a JSP?
    Error: 'class' or 'interface' expected
    This happens with JDeveloper 9.0.2.829
    It was running just OK, when running from the Navigator Panel (Right click -> Run test.jsp)
    But, when I tried to run the JSP from the Debug Icon -that debugs the whole project-, I got the error I already mentioned.
    Thanks in advance for your help
    Agutin

    Hi,
    Does anybody know why am I getting the following error when trying to either debug or run a JSP?
    Error: 'class' or 'interface' expected
    This happens with JDeveloper 9.0.2.829
    It was running just OK, when running from the Navigator Panel (Right click -> Run test.jsp)
    But, when I tried to run the JSP from the Debug Icon -that debugs the whole project-, I got the error I already mentioned.
    Thanks in advance for your help
    Agutin

  • Javelin JSP compilation error

    Hello Everyone,
    I've a some JSP's that work some times and fail sometime with
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/temp/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    I tried restarting the server, removing .wlnotdelete and couple of other things.
    Why the JSP is compiled everytime(even if the server is not restarted) and Why a good looking no error JSP failis loading everytime.
    Can anyone please help.
    ~ALAPATI

    I'm using bea weblogic 8.1 SP5.
    Java - jrockit81sp5_142_08
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    Errors found in <PATH TO THE FILE>/Index.jsp:
    Error at line 397 column 55:
    Description: Type <MyClass> contains no field with this name.
    Error at line 399 column 13:
    Description: Type <Another Class> contains no methods with this name.
    Found 2 error(s) and 0 warning(s).
    </pre>
    </body></html>
    >
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /jsp/output/Index.jsp<html>
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    Errors found in <PATH TO FILE>/Index.jsp:
    Error at line 397 column 55:
    Description: Type <MyClass> contains no field with this name.
    Error at line 399 column 13:
    Description: Type <Another Class> contains no methods with this name.
    Found 2 error(s) and 0 warning(s).
    </pre>
    </body></html>
    at weblogic.servlet.jsp.WlwJspStub.compilePage(WlwJspStub.java:208)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:265)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    2 errors javelin complaining is because of this.
    1) I'm trying to access MyClass.SHOW_ME_TEXT
    2) I'm trying to create an object of AnotherClass by new AnotherClass();
    Please let me know if you want more details.

Maybe you are looking for