8 Replies Latest reply: Mar 15, 2012 3:19 AM by Ryan Jimmy RSS

JSF 2.0 and JBoss5.1 GA

Kirill Linnik Newbie

Hello all,

 

After several days of no success to make things work in JBoss 6 (see 1 and 2), I decided to migrate my application to JSF2 but staying with JBoss5.1.

 

I have followed this manual but with no success. Server startup shows next:

 

16:00:14,739 ERROR [[/web-console]] Error configuring application listener of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.ClassNotFoundException: org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
     at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
     at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
     at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
     at $Proxy38.start(Unknown Source)
     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
     at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
     at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
     at org.jboss.system.ServiceController.start(ServiceController.java:460)
     at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
     at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
     at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
     at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
     at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
     at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
     at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
     at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1568)
     at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1533)
     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
     at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
     at org.jboss.system.ServiceController.start(ServiceController.java:460)
     at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
     at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
     at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
     at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
     at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
     at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
     at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
     at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1568)
     at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1533)
     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
     at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
     at org.jboss.system.ServiceController.start(ServiceController.java:460)
     at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
     at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
     at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
     at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
     at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
     at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
     at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
     at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1568)
     at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1533)
     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
     at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
     at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
     at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
     at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
     at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
     at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
     at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
     at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
     at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
     at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
     at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
     at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
     at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
     at org.jboss.Main.boot(Main.java:221)
     at org.jboss.Main$1.run(Main.java:556)
     at java.lang.Thread.run(Unknown Source)
16:00:14,763 ERROR [[/web-console]] Skipped installing application listeners due to previous error(s)
16:00:14,763 ERROR [StandardContext] Error listenerStart
16:00:14,763 ERROR [StandardContext] Context [/web-console] startup failed due to previous errors
16:00:14,770 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/web-console state=Create mode=Manual requiredState=Installed
org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss/server/default/deploy/management/console-mgr.sar/web-console.war/ deployment failed
     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)

And so on. So is there someone who has JSF2 application on JBoss5.1 or here is "endless ring" problem: "JBoss6 has JSF2 but some other things are not working" and "JBoss 5.1 works fine, but I need JSF2 features"?

  • 1. Re: JSF 2.0 and JBoss5.1 GA
    Kirill Linnik Newbie

    In addition to previous post, I would like to add that if I put all JSF2 libraries (copied from JBoss 6 Mojarra 2.0 folder) in project's lib, set them first in the build path (I'm using Eclipse-based project), set all the settings to JSF2 (Project facets, faces-config.xml), JBoss 5.1 starts fine, but on deploy I get:

     

    17:50:44,324 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/osis'
    17:50:45,688 ERROR [[/osis]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Application was not properly initialized at startup, could not find Factory: javax.faces.context.ExceptionHandlerFactory
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
         at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:60)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
         at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
         at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
         at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
         at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
         at $Proxy38.start(Unknown Source)
         at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
         at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
         at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
         at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
         at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
         at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
         at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
         at org.jboss.system.ServiceController.start(ServiceController.java:460)
         at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
         at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
         at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
         at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
         at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
         at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
         at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
         at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.ExceptionHandlerFactory
         at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:800)
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:302)
         at com.sun.faces.context.FacesContextFactoryImpl.(FacesContextFactoryImpl.java:67)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:537)
         at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:386)
         at javax.faces.FactoryFinder.access$400(FactoryFinder.java:135)
         at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:717)
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)
         at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:186)
         at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:131)
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:203)
         ... 67 more
    17:50:45,692 ERROR [StandardContext] Error listenerStart
    17:50:45,692 ERROR [StandardContext] Context [/osis] startup failed due to previous errors

    Which is pretty obvious: JBoss still tries to use it's own JSF instead of project's. The question remains the same: how to substitute libraries in JBoss 5.1 for JSF2 or push JBoss use project's libraries to make JBoss 5.1 work with JSF2?

  • 2. Re: JSF 2.0 and JBoss5.1 GA
    Kirill Linnik Newbie

    After digging with google I found one site proposing a solution:

    http://aaron.ajexperience.com/2010/10/11/jboss-5-with-jsf-2-on-a-per-app-basis/

     

    Actually, this is a not full list of jars to use, you should add guava project jars (google stuff). Otherwise it won't find com/google/common/base/Function class.

     

    Also, when using RichFaces 4 with JPA-based tables, it's needed to add JPA2 support (hibernate-jpa-2.0-api.jar).

     

    So here is a full list of jars to make application deployed (I have other bugs with EJB for now and I have no idea how these jars can cause unbound exceptions ):

    guava-r09.jar

    hibernate-jpa-2.0-api.jar

    jboss-faces.jar (from JBoss 6.0.0 Final, Mojarra 2.0)

    jsf-api-2.0.3-b05.jar (from JBoss 6.0.0 Final, Mojarra 2.0)

    jsf-impl-2.0.3-b05.jar (from JBoss 6.0.0 Final, Mojarra 2.0)

    richfaces-components-api-4.0.0.Final.jar

    richfaces-components-ui-4.0.0.Final.jar

    richfaces-core-api-4.0.0.Final.jar

    richfaces-core-impl-4.0.0.Final.jar

  • 3. Re: JSF 2.0 and JBoss5.1 GA
    Ryan Jimmy Newbie

    I am working in Netbeans.I put all JSF2 libraries (copied from JBoss 6 Mojarra 2.0 folder) in project's lib, set them first in the build path (I'm using Netbeans-based project), set all the settings to JSF2JBoss 5.1 is not getting started properly:It again loads jars from JBOSS server.

    I am not able to make JSF2 work in JBoss 5.1.Please help.

  • 4. Re: JSF 2.0 and JBoss5.1 GA
    Kirill Linnik Newbie

    This is so big pain, so we decided to migrate to JBoss 6.1 instead of dealing with that. I suggest you the same.

  • 5. Re: JSF 2.0 and JBoss5.1 GA
    Ryan Jimmy Newbie

    Thanks for your quick reply.But I may not be able to migrate to JBOSS 6.1 so easily as you suggest to do.I need to make JSF 2.0 work in JBOSS 5.1.0.Please tell me if there are any work arounds for it.To my utter surprise JSF 2.0 is working successfully in JBOSS 5.0.What went wrong in JBOSS 5.1.0 GA?

  • 6. Re: JSF 2.0 and JBoss5.1 GA
    Kirill Linnik Newbie

    This is called "bugfixes"

     

    Migrating from 5.1 to 6.1 is not a big issue, at fact. You still need to migrate your JSF files and some small configuration changes too. We had a big project to migrate and it took 1 or 2 manweeks or so. So don't be afraid of it, server setup remains the same.

  • 7. Re: JSF 2.0 and JBoss5.1 GA
    David Salter Novice

    If you can do it, I'd really recommend upgrading to JBoss 6.x

     

    I managed to get JSF2 working in JBoss 5.1, but there were loads of little things that didn't work correctly.  I think you'll have a lot more success with JBoss 6 (or 7).

  • 8. Re: JSF 2.0 and JBoss5.1 GA
    Ryan Jimmy Newbie

    When I tried using JSF 2.0 work in JBOSS 5.1.0 inorder to run my web application ,I got the following error:-

     

    ERROR [[default]] Servlet.service() for servlet default threw exception

    javax.context.ContextNotActiveException: No active contexts for scope type javax.context.RequestScoped

     

    WARN  [lifecycle] #{loginBean.doLogin}: javax.context.ContextNotActiveException: No active contexts for scope type javax.context.RequestScoped

    javax.faces.FacesException: #{loginBean.doLogin}: javax.context.ContextNotActiveException: No active contexts for scope type javax.context.RequestScoped

     

    Can anybody give me idea about what it is actually?