4 Replies Latest reply on Jul 10, 2009 7:01 AM by Ilya Shaikovsky

    JSF + JBoss 3.x

    Wellington Martins Newbie

      Hi all!

      Is it possible to deploy a JSF web application on JBoss 3.x?

        • 1. Re: JSF + JBoss 3.x
          Wellington Martins Newbie

          When JBoss is starting the error stack below is shown.

          2009-07-08 16:52:14,040 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@7197b174{ url=file:/C:/work/Nota10/desenvolvimento/jboss-3.0.4_SqlServer/server/default/deploy/PrototipoPET.war, deployedLastModified=0 }
          org.jboss.deployment.DeploymentException: Element type "web-app" is not declared.; - nested throwable: (org.xml.sax.SAXParseException: Element type "web-app" is not declared.)
           at org.jboss.jetty.Jetty.deploy(Jetty.java:436)
           at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
           at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
           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:324)
           at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
           at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
           at $Proxy4.deploy(Unknown Source)
           at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
           at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
           at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
           at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
           at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
           at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
           at $Proxy0.start(Unknown Source)
           at org.jboss.system.ServiceController.start(ServiceController.java:398)
           at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
           at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
           at $Proxy3.start(Unknown Source)
           at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:569)
           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:324)
           at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
           at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
           at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
           at org.jboss.Main.boot(Main.java:148)
           at org.jboss.Main$1.run(Main.java:381)
           at java.lang.Thread.run(Thread.java:534)
          Caused by: org.xml.sax.SAXParseException: Element type "web-app" is not declared.
           at org.apache.crimson.parser.Parser2.error(Parser2.java:3354)
           at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1502)
           at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
           at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
           at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
           at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
           at org.mortbay.xml.XmlParser.parse(XmlParser.java:127)
           at org.mortbay.xml.XmlParser.parse(XmlParser.java:142)
           at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:401)
           at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
           at org.jboss.jetty.Jetty.deploy(Jetty.java:414)
           ... 49 more
          2009-07-08 16:52:14,056 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
          


          The app's web.xml file has the following header:

           <?xml version="1.0" encoding="UTF-8" ?>
          - <web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
           <display-name>ExemploJSF</display-name>
          


          • 2. Re: JSF + JBoss 3.x
            Nick Belaevski Master

            Evidently, 2.5 JavaEE specification is not supported by JBoss 3.x.

            • 3. Re: JSF + JBoss 3.x
              Wellington Martins Newbie

              Do you know which is supported?

              • 4. Re: JSF + JBoss 3.x
                Ilya Shaikovsky Master

                JSF 1.1 and RF 3.1.6 could be used for your server.

                And Jboss 4.x could be used for JSF 1.2 with RF 3.x apps.