1 Reply Latest reply on Sep 22, 2003 10:48 AM by chrise

    JSF EA3/EA4 car demo war deployed in JBoss/Tomcat 4.1.24

    Willie Vu Newbie

      Does anyone have any success in deployment JSF EA3 or EA4 car demo war into JBoss 3.2.x/Tomcat 4.1.24?

      My experience is this.

      EA3's cardemo.war deployed OK. However, the generated htmls are messed up. Text, buttons and other things are missing.

      EA4's jsf-cardemo.war is worse. I keep running into NullPointerException thrown from org.apache.tools.ant.Project.setSystemProperties(Project.java:862)


      Here is the exception:

      2003-07-11 08:50:30,318 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception

      org.apache.jasper.JasperException: Unable to compile class for JSP
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:478)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
      at com.sun.faces.context.ExternalContextImpl.dispatchMessage(ExternalContextImpl.java:298)
      at com.sun.faces.lifecycle.ViewHandlerImpl.renderView(ViewHandlerImpl.java:53)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:89)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:169)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.jboss.web.catalina.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:229)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
      at java.lang.Thread.run(Thread.java:536)

      2003-07-11 08:50:30,333 ERROR [org.jboss.web.localhost.Engine] ----- Root Cause -----

      java.lang.NullPointerException
      at org.apache.tools.ant.Project.setSystemProperties(Project.java:862)
      at org.apache.tools.ant.Project.init(Project.java:316)
      at org.apache.jasper.compiler.Compiler.getProject(Compiler.java:172)
      at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:273)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
      at com.sun.faces.context.ExternalContextImpl.dispatchMessage(ExternalContextImpl.java:298)
      at com.sun.faces.lifecycle.ViewHandlerImpl.renderView(ViewHandlerImpl.java:53)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:89)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:169)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.jboss.web.catalina.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:229)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

      ...


        • 1. Re: JSF EA3/EA4 car demo war deployed in JBoss/Tomcat 4.1.24
          chrise Newbie

          Hi,

          finally I got it. All the JSF Samples run.
          And thats what to do:
          - Use JBoss 3.2.2RC3 or later

          The JSF Samples form the Sun JWSDP-1.2 are made for J2EE 1.4 Containers and use the JSP Tag Libary 1.1 which is not compatible with the Tomcat 4.1.x
          Do the following:
          - download Taglib Libary 1.0.x from http://www.apache.de/dist/jakarta/taglibs/
          - Copy the files:
          jstl.jar
          standard.jar
          jaxen-full.jar
          saxpath.jar
          from the jakarta-taglibs-standard archive to:
          %jwsdp_folder%\jstl\lib
          overwrite the two existing files.
          - Now edit the build.xml file of all samples. Add the lines:


          at the end of the copyJars target. So the two extra files in the jstl/lib folder are added to the .war file.
          - Last edit the web.xml file located in the example's WEB-INF directory. Move the <display-name> element so that it is before the element and after the <web-app> element. Example:

          Before:

          ...<web-app>
          JavaServer Faces Car Demo Sample Application
          <display-name>JavaServer Faces Car Demo Sample Application</display-name> ...

          After:

          ...<web-app>
          <display-name>JavaServer Faces Car Demo Sample Application</display-name>
          JavaServer Faces Car Demo Sample Application ...

          Now rebuild the Sample using Ant and the modified build.xml. Don't forget to uncomment the build.standalone property and comment build.wspack property in the buil.properties file.

          That's it ;-)