4 Replies Latest reply on Dec 17, 2008 10:09 AM by baz

    3.3.0.BETA4 Unable to deploy demo war

    baz

      Hello,
      finding out that RF does not run on JB0SS AS 5 (https://jira.jboss.org/jira/browse/RF-5292) i tried to deploy it on 4.2.3

      i have downloaded richfaces-demo-3.3.0.BETA4-jee5.war from
      http://repository.jboss.org/maven2/org/richfaces/samples/richfaces-demo/3.3.0.BETA4/.
      Dropping this war into a freshly unzipped JBossAS 4.2.3GA gives this error:

      08:21:21,651 ERROR [BETA4-jee5]] Exception sending context initialized event to listener instance of class com.sun.faces.config.Co
      nfigureListener
      java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getE
      xpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/jboss/web/tomcat/service/WebAppClassLoader) of t
      he current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/jboss/mx/loading/UnifiedClassLoade
      r3) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFact
      ory used in the signature
       at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:577)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:212)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)


      what is wrong here?[/url]

        • 1. Re: 3.3.0.BETA4 Unable to deploy demo war
          baz

          Tried to deploy the tomcat6 war and got this error. Is the demo war deployable?

          SCHWERWIEGEND: Error listenerStart
          16.12.2008 09:02:12 org.apache.catalina.core.StandardContext start
          SCHWERWIEGEND: Context [/richfaces-demo-3.3.0.BETA4-tomcat6] startup failed due to previous errors
          16.12.2008 09:02:12 org.apache.catalina.loader.WebappClassLoader loadClass
          INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.xerces.impl.dtd.XMLNotationDecl. The eventual followin
          g stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no func
          tional impact.
          java.lang.IllegalStateException
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
           at org.apache.xerces.impl.dtd.DTDGrammar.notationDecl(Unknown Source)
           at org.apache.xerces.impl.dtd.XMLDTDProcessor.notationDecl(Unknown Source)
           at org.apache.xerces.impl.XMLDTDScannerImpl.scanNotationDecl(Unknown Source)
           at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)
           at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknown Source)
           at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
           at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
           at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
           at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
           at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
           at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:518)
           at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:555)
           at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:295)
           at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4448)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4248)


          • 2. Re: 3.3.0.BETA4 Unable to deploy demo war
            baz

            Is this a commonly known issue. Or why is there no answer, yet?
            If it is commonly known, please be so kind to give me a pointer. Thanks
            Also i am interested if some others can reproduce this.
            I was using a fresh install of tomcat and jboss AS 4.2.3
            Ciao,
            baz

            • 3. Re: 3.3.0.BETA4 Unable to deploy demo war
              nbelaevski

              Hi Baz,

              The issue is reproducible. We'll fix it ASA. Please remove el-*, jsf-api and jsf-impl jars from WEB-INF/lib manually.

              • 4. Re: 3.3.0.BETA4 Unable to deploy demo war
                baz

                Hello Nick,
                Thanks for your time and your answer. We will try it out.