7 Replies Latest reply on Sep 27, 2011 11:34 AM by Emanuele Nocentelli

    JBoss 6 + JSF

    Krasimir Goutcev Apprentice

      Hi all .

      I just downloaded AS 6.

      So i decided to migrate our application from 5.1 to 6 but no success.

      After that I decided to test step 2.1 from documentation: http://docs.jboss.org/jbossas/6/JSF_Guide/en-US/html_single/index.html#dir-structure

      but i got same error:

       

        Caused by: java.lang.ClassNotFoundException: javax.faces.render.RenderKitFactory

       

      So please tell me what is wrong.

      (Win 2003 server with JVM 1.6.0_22 )

        • 1. Re: JBoss 6 + JSF
          Krasimir Goutcev Apprentice

          Ok. this error was becouse i have a jsf-facelets.jar in server/default/lib dir. I removed and now simle page as shown in Getting Startde is woked.

          But.

          If I change web.xml to use  Mojara 1.2 like this:

          <context-param>
              <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>  
              <param-value>Mojarra-1.2</param-value>
          </context-param>

           

          I see exception:

           

          16:46:10,020 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test]] StandardWrapper.Throwable: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
              at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:725) [:1.2_15-20100816-SNAPSHOT]
              at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239) [:1.2_15-20100816-SNAPSHOT]
              at javax.faces.webapp.FacesServlet.init(FacesServlet.java:164) [:1.2_15-20100816-SNAPSHOT]
              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1208) [:6.0.0.Final]
              at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:955) [:6.0.0.Final]
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188) [:6.0.0.Final]
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
              at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
              at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
              at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
              at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

           

           

          Any help is welcome.

          • 2. Re: JBoss 6 + JSF
            Stan Silvert Master

            If you want to use Mojarra 1.2 then you need to put your Facelets jar back in the WEB-INF/lib directory.  JSF 2.0 has Facelets built in so you don't need it.

             

            There is a third option to use JSF 2.0 with the old Facelets jar.  You can do that if you set the javax.faces.DISABLE_FACELET _JSF_VIEWHANDLER context param to true.

             

            Stan

            • 3. Re: JBoss 6 + JSF
              Krasimir Goutcev Apprentice

              Now I just want to test AS 6 with Mojarra 1.2 without facelets.

              And now I have one test project with

              empty faces-config.xml, web.xml :

              <context-param>
                  <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>  
                  <param-value>Mojarra-1.2</param-value>
              </context-param>


              and  index.xhtml

               

              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                                    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
              <html xmlns="http://www.w3.org/1999/xhtml"
                    xmlns:h="http://java.sun.com/jsf/html"
                    xmlns:f="http://java.sun.com/jsf/core">

               

                   <f:view>
                      <h:form id="form1">
                        <h:outputText value="Enter Your Name:"/>
                        <h:inputText id="name"/>
                        <h:commandButton value="Submit" />
                      </h:form>
                    
                   </f:view>

               

              </html>

               

              but as I say in previous post I have  a exception

              • 4. Re: JBoss 6 + JSF
                Stan Silvert Master

                I'm attching an example WAR using AS6, Mojarra 1.2, and JSP.  That should help you get going.

                 

                Stan

                • 5. Re: JBoss 6 + JSF
                  Emanuele Nocentelli Newbie

                  Hi Stan!

                   

                  I've tested this project in attach, with jboss 6.0.0 final and jboss 6.1.0 final but it dosen't work.

                  I have recived this exception :

                   

                  13:10:33,688 INFO  [TomcatDeployment] deploy, ctxPath=/jsf12test

                  13:10:33,723 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.displayConfiguration' - ENABLED

                  13:10:33,723 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.validateXml' - DISABLED

                  13:10:33,723 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.verifyObjects' - DISABLED

                  13:10:33,724 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.forceLoadConfiguration' - DISABLED

                  13:10:33,724 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.enableHtmlTagLibValidator' - DISABLED

                  13:10:33,724 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.preferXHTML' - DISABLED

                  13:10:33,724 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.compressViewState' - ENABLED

                  13:10:33,725 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.compressJavaScript' - ENABLED

                  13:10:33,725 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.externalizeJavaScript' - DISABLED

                  13:10:33,725 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.sendPoweredByHeader' - ENABLED

                  13:10:33,726 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.enableJSStyleHiding' - DISABLED

                  13:10:33,726 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.enableScriptsInAttributeValues' - ENABLED

                  13:10:33,726 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.writeStateAtFormEnd' - ENABLED

                  13:10:33,726 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.enableLazyBeanValidation' - ENABLED

                  13:10:33,727 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.enabledLoadBundle11Compatibility' - DISABLED

                  13:10:33,727 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.enableRestoreView11Compatibility' - DISABLED

                  13:10:33,727 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.serializeServerState' - DISABLED

                  13:10:33,728 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.enableViewStateIdRendering' - ENABLED

                  13:10:33,728 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.registerConverterPropertyEditors' - DISABLED

                  13:10:33,728 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.developmentMode' - DISABLED

                  13:10:33,728 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.enableThreading' - ENABLED

                  13:10:33,729 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.autoCompleteOffOnViewState' - ENABLED

                  13:10:33,729 INFO  [config] JSF1021: [/jsf12test] Configuration option 'com.sun.faces.generateUniqueServerStateIds' - ENABLED

                  13:10:33,729 INFO  [config] JSF1018: [/jsf12test] Configuration option 'javax.faces.STATE_SAVING_METHOD' set to 'server'

                  13:10:33,730 INFO  [config] JSF1018: [/jsf12test] Configuration option 'javax.faces.DEFAULT_SUFFIX' set to '.jsp'

                  13:10:33,730 INFO  [config] JSF1018: [/jsf12test] Configuration option 'com.sun.faces.numberOfViewsInSession' set to '15'

                  13:10:33,730 INFO  [config] JSF1018: [/jsf12test] Configuration option 'com.sun.faces.numberOfLogicalViews' set to '15'

                  13:10:33,731 INFO  [config] JSF1018: [/jsf12test] Configuration option 'com.sun.faces.injectionProvider' set to 'org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider'

                  13:10:33,731 INFO  [config] JSF1018: [/jsf12test] Configuration option 'com.sun.faces.responseBufferSize' set to '1024'

                  13:10:33,731 INFO  [config] JSF1018: [/jsf12test] Configuration option 'com.sun.faces.clientStateWriteBufferSize' set to '8192'

                  13:10:33,731 INFO  [config] JSF1018: [/jsf12test] Configuration option 'com.sun.faces.expressionFactory' set to 'com.sun.el.ExpressionFactoryImpl'

                  13:10:33,732 INFO  [config] JSF1018: [/jsf12test] Configuration option 'com.sun.faces.disableUnicodeEscaping' set to 'false'

                  13:10:33,732 INFO  [config] JSF1018: [/jsf12test] Configuration option 'com.sun.faces.duplicateJARPattern' set to '^tmp\d+(\S*\.jar)'

                  13:10:33,738 INFO  [config] Initializing Mojarra (1.2_15-20100816-SNAPSHOT) for context '/jsf12test'

                  13:10:33,884 ERROR [[/jsf12test]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossMojarra12ConfigureListener: java.lang.NoClassDefFoundError: javax/faces/context/FacesContextFactory

                      at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_26]

                      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_26]

                      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_26]

                      at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:52) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:650) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:609) [jboss-classloader.jar:2.2.1.GA]

                      at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_26]

                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:461) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:262) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:161) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:280) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1172) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) [jboss-classloader.jar:2.2.1.GA]

                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) [jboss-classloader.jar:2.2.1.GA]

                      at java.lang.ClassLoader.loadClass(ClassLoader.java:295) [:1.6.0_26]

                      at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [:1.6.0_26]

                      at java.lang.Class.forName0(Native Method) [:1.6.0_26]

                      at java.lang.Class.forName(Class.java:247) [:1.6.0_26]

                      at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:514) [:1.2_15-20100816-SNAPSHOT]

                      at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:405) [:1.2_15-20100816-SNAPSHOT]

                      at javax.faces.FactoryFinder.access$400(FactoryFinder.java:135) [:1.2_15-20100816-SNAPSHOT]

                      at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:717) [:1.2_15-20100816-SNAPSHOT]

                      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239) [:1.2_15-20100816-SNAPSHOT]

                      at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:187) [:1.2_15-20100816-SNAPSHOT]

                      at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132) [:1.2_15-20100816-SNAPSHOT]

                      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:204) [:1.2_15-20100816-SNAPSHOT]

                      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:200) [:1.2_15-20100816-SNAPSHOT]

                      at org.jboss.web.jsf.integration.config.JBossMojarraConfigureListener.contextInitialized(JBossMojarraConfigureListener.java:58) [:1.0.3]

                      at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369) [:6.1.0.Final]

                      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:6.1.0.Final]

                      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.1.0.Final]

                      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.1.0.Final]

                      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476) [:6.1.0.Final]

                      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.1.0.Final]

                      at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.1.0.Final]

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]

                      at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]

                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]

                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

                      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [:2.2.0.SP2]

                      at $Proxy41.start(Unknown Source)    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53) [:2.2.0.SP2]

                      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41) [:2.2.0.SP2]

                      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.system.ServiceController.doChange(ServiceController.java:671) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

                      at org.jboss.system.ServiceController.start(ServiceController.java:443) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

                      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189) [:6.1.0.Final]

                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102) [:6.1.0.Final]

                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49) [:6.1.0.Final]

                      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:63) [:2.2.2.GA]

                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.2.GA]

                      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.2.GA]

                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.2.GA]

                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.2.GA]

                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.2.GA]

                      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.2.GA]

                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.2.GA]

                      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.2.GA]

                      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.2.GA]

                      at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.1.0.Final]

                      at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]

                      at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]

                      at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]

                      at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.SP2]

                      at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.SP2]

                      at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]

                      at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]

                      at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]

                      at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]

                      at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]

                      at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]

                      at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]

                      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.1.0.Final]

                      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.1.0.Final]

                      at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]

                      at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]

                      at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

                  Caused by: java.lang.ClassNotFoundException: javax.faces.context.FacesContextFactory

                   

                  I've checked inside jsf.deployer/Mojarra-1.2 there are :

                   

                  /opt/jboss-6.1.0.Final/server/default/deployers/jsf.deployer/Mojarra-1.2/jsf-libs/jboss-faces.jar

                  /opt/jboss-6.1.0.Final/server/default/deployers/jsf.deployer/Mojarra-1.2/jsf-libs/jsf-api-1.2_15.jar

                  /opt/jboss-6.1.0.Final/server/default/deployers/jsf.deployer/Mojarra-1.2/jsf-libs/jsf-impl-1.2_15.jar

                   

                  I don't understand why it doesn't find the class.

                   

                  Can you help me ?

                  • 6. Re: JBoss 6 + JSF
                    Wolfgang Knauf Master

                    Hi Emanuele,

                     

                    did you declare the context param in "web.xml" which chooses the JSF version? See this: http://community.jboss.org/thread/158984

                     

                    Best regards

                     

                    Wolfgang

                    • 7. Re: JBoss 6 + JSF
                      Emanuele Nocentelli Newbie

                      Hi All!

                      I solved the problem!

                       

                      The error was a thomawak1.2 library in a jboss/<server>/lib/

                      I removed, rebooted jboss and all works.

                       

                      Thanks!