when I add richfaces-component-ui4.0.jar to my artifact I get this error
I use jboss ap7
what this error means ?
i think it's about some conflict
14:59:53,333 WARN [org.jboss.modules] (MSC service thread 1-4) Failed to define class org.richfaces.renderkit.ComponentControlBehaviorRenderer in Module "deployment.EAR_ear_exploded.ear:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/richfaces/renderkit/ComponentControlBehaviorRenderer (Module "deployment.EAR_ear_exploded.ear:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.Module.loadModuleClass(Module.java:527) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.3.GA]
at org.jboss.as.web.deployment.jsf.JsfAnnotationProcessor.deploy(JsfAnnotationProcessor.java:115)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.3.Final.jar:7.1.3.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
Caused by: java.lang.NoClassDefFoundError: javax/faces/render/ClientBehaviorRenderer
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_45]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_45]
at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_45]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_45]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.3.GA]
... 15 more
Caused by: java.lang.ClassNotFoundException: javax.faces.render.ClientBehaviorRenderer from [Module "deployment.EAR_ear_exploded.ear:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.3.GA]
... 21 more
14:59:53,347 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."EAR_ear_exploded.ear".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."EAR_ear_exploded.ear".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "EAR_ear_exploded.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.3.Final.jar:7.1.3.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018045: Failed to load annotated class: org.richfaces.renderkit.ComponentControlBehaviorRenderer
at org.jboss.as.web.deployment.jsf.JsfAnnotationProcessor.deploy(JsfAnnotationProcessor.java:117)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.3.Final.jar:7.1.3.Final]
... 5 more
14:59:53,568 INFO [org.jboss.as.server] (management-handler-thread - 2) JBAS015870: Deploy of deployment "EAR_ear_exploded.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"EAR_ear_exploded.ear\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"EAR_ear_exploded.ear\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"EAR_ear_exploded.ear\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018045: Failed to load annotated class: org.richfaces.renderkit.ComponentControlBehaviorRenderer"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerFacadeImp.ValidatorFactory Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerFacadeImp]","jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerFacadeImp.Validator Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerFacadeImp]","jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserFacadeImp.Validator Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserFacadeImp]","jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserDAO.Validator Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserDAO]","jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeDAO.ValidatorFactory Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeDAO]","jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerDAO.Validator Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerDAO]","jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeDAO.Validator Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeDAO]","jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserFacadeImp.ValidatorFactory Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserFacadeImp]","jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeFacadeImp.Validator Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeFacadeImp]","jboss.deployment.subunit.\"EAR_ear_exploded.ear\".\"EJB.jar\".INSTALL Missing[JBAS014861: <one or more transitive dependencies>]","jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserDAO.ValidatorFactory Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserDAO]","jboss.deployment.subunit.\"EAR_ear_exploded.ear\".\"WEB.war\".INSTALL Missing[JBAS014861: <one or more transitive dependencies>]","jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerDAO.ValidatorFactory Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerDAO]","jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeFacadeImp.ValidatorFactory Missing[jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeFacadeImp]"]}
14:59:53,576 INFO [org.jboss.as.controller] (management-handler-thread - 2) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerDAO (missing) dependents: [service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerDAO.ValidatorFactory, service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerDAO.Validator]
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerFacadeImp (missing) dependents: [service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerFacadeImp.Validator, service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerFacadeImp.ValidatorFactory]
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeDAO (missing) dependents: [service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeDAO.ValidatorFactory, service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeDAO.Validator]
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeFacadeImp (missing) dependents: [service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeFacadeImp.Validator, service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeFacadeImp.ValidatorFactory]
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserDAO (missing) dependents: [service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserDAO.ValidatorFactory, service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserDAO.Validator]
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserFacadeImp (missing) dependents: [service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserFacadeImp.ValidatorFactory, service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserFacadeImp.Validator]
JBAS014777: Services which failed to start: service jboss.deployment.unit."EAR_ear_exploded.ear".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."EAR_ear_exploded.ear".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "EAR_ear_exploded.ear"
14:59:53,613 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment EJB.jar in 38ms
14:59:53,626 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment WEB.war in 52ms
14:59:53,666 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment EAR_ear_exploded.ear in 95ms
14:59:53,668 INFO [org.jboss.as.controller] (MSC service thread 1-2) JBAS014774: Service status report
JBAS014776: Newly corrected services:
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerDAO (new available)
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerFacadeImp (new available)
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeDAO (new available)
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.ServerTypeFacadeImp (new available)
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserDAO (new available)
service jboss.naming.context.java.comp.EAR_ear_exploded.EJB.UserFacadeImp (new available)
My guess was true and it is a conflict
jboss AP has lots of libraries for it's own
and when I added libraries related to jsf some conflicted happend .
the best way is to using maven for dependencies , you can easily say which dependency is for compile or which is for developing and ...
an other way is when you add library to IDE specify that just use it for developing and not for run time or compiling
and a bad way is to delete libraries that made conflict , from JBOSS AP
Related
I'm trying to install primefaces extension, but I'm getting some errors reference to Converter Class. I only imported jar files, I didn't do any config else.
-jsf :2.1
-Primefaces version: 5.1
-Primefaces extension: 3.0
-Commnon-langs3-3.3.1.jar
What I'm missing? Before I was getting
Caused by: java.lang.ClassNotFoundException: org.primefaces.extensions.event.TimeSelectEvent
What I solved adding primefaces extension.jar direcly in lib folder.
Now I get this error
12:44:08,421 WARN [org.jboss.modules] (MSC service thread 1-4) Failed to define class org.primefaces.extensions.converter.JsonConverter in Module "deployment.GeoreferenciaEAR.ear:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/primefaces/extensions/converter/JsonConverter (Module "deployment.GeoreferenciaEAR.ear:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
at org.jboss.as.web.deployment.jsf.JsfAnnotationProcessor.deploy(JsfAnnotationProcessor.java:111)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
Caused by: java.lang.NoClassDefFoundError: javax/faces/convert/Converter
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_79]
at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_79]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_79]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]
... 15 more
Caused by: java.lang.ClassNotFoundException: javax.faces.convert.Converter from [Module "deployment.GeoreferenciaEAR.ear:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
... 20 more
12:44:08,436 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."GeoreferenciaEAR.ear".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."GeoreferenciaEAR.ear".INSTALL: Failed to process phase INSTALL of deployment "GeoreferenciaEAR.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018045: Failed to load annotated class: org.primefaces.extensions.converter.JsonConverter
at org.jboss.as.web.deployment.jsf.JsfAnnotationProcessor.deploy(JsfAnnotationProcessor.java:113)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
When I am trying to update the jboss 6.0 eap to work with jsf 2.2 i am getting the following error. I have updated the jars and the appropriate module.xml files in javax/faces/api/main and com/sun/jsf-impl/main to jsf-impl-2.2.4 and jsf-api-2.2.4.
15:54:11,888 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-5) Critical error during deployment: : org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.faces.flow.builder.FlowDefinition
at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:578) [weld-core-1.1.10.Final-redhat-1.jar:1.1.10.Final-redhat-1]
at com.sun.faces.application.ApplicationAssociate$PostConstructApplicationListener.loadFlows(ApplicationAssociate.java:323) [jsf-impl-2.2.4.jar:2.2.4]
at com.sun.faces.application.ApplicationAssociate$PostConstructApplicationListener.processEvent(ApplicationAssociate.java:303) [jsf-impl-2.2.4.jar:2.2.4]
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108) [jsf-api-2.2.4.jar:2.2]
at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2187) [jsf-impl-2.2.4.jar:2.2.4]
at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2163) [jsf-impl-2.2.4.jar:2.2.4]
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:296) [jsf-impl-2.2.4.jar:2.2.4]
at org.jboss.as.weld.webtier.jsf.ForwardingApplication.publishEvent(ForwardingApplication.java:288) [jboss-as-weld-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:691) [jsf-impl-2.2.4.jar:2.2.4]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:253) [jsf-impl-2.2.4.jar:2.2.4]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89) [jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
15:54:11,888 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/DWP]] (MSC service thread 1-5) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.faces.flow.builder.FlowDefinition
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:273) [jsf-impl-2.2.4.jar:2.2.4]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89) [jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
Caused by: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.faces.flow.builder.FlowDefinition
at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:578) [weld-core-1.1.10.Final-redhat-1.jar:1.1.10.Final-redhat-1]
at com.sun.faces.application.ApplicationAssociate$PostConstructApplicationListener.loadFlows(ApplicationAssociate.java:323) [jsf-impl-2.2.4.jar:2.2.4]
at com.sun.faces.application.ApplicationAssociate$PostConstructApplicationListener.processEvent(ApplicationAssociate.java:303) [jsf-impl-2.2.4.jar:2.2.4]
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108) [jsf-api-2.2.4.jar:2.2]
at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2187) [jsf-impl-2.2.4.jar:2.2.4]
at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2163) [jsf-impl-2.2.4.jar:2.2.4]
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:296) [jsf-impl-2.2.4.jar:2.2.4]
at org.jboss.as.weld.webtier.jsf.ForwardingApplication.publishEvent(ForwardingApplication.java:288) [jboss-as-weld-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:691) [jsf-impl-2.2.4.jar:2.2.4]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:253) [jsf-impl-2.2.4.jar:2.2.4]
... 8 more
15:54:11,888 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-5) Error listenerStart
15:54:11,888 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-5) Context [/DWP] startup failed due to previous errors
15:54:11,904 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.web.deployment.default-host./DWP: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./DWP: JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:94)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
JBoss WELD container is not up to date to use JSF 2.2.
I upgraded the WELD modules in pretty much the same way JSF was upgraded using this and that
WELD was upgraded by adding new versions(slots) of the modules in
1. $JBOSS_HOME/modules/system/layers/base/org/jboss/weld/api,
2. $JBOSS_HOME/modules/system/layers/base/org/jboss/weld/core and
3. $JBOSS_HOME/modules/system/layers/base/org/jboss/weld/spi
Be careful to make backups of the current modules before making changes and also not to replace the "main" version(slot) but to create new slots(versions) instead.
Found on
api,
core and
spi respectively.
Notice the version chosen is 2.1, it was the highest common version at time of writing this.
For more on modules try going through the official docs.
I added the following in standalone.xml
<subsystem xmlns="urn:jboss:domain:ee:1.1">
<global-modules>
<module name="javax.faces.api" slot="main"/>
<module name="com.sun.jsf-impl" slot="main"/>
</global-modules>
...
</subsystem>
This question already has answers here:
How to use PrimeFaces p:fileUpload? Listener method is never invoked or UploadedFile is null / throws an error / not usable
(11 answers)
Closed 6 years ago.
I am using <p:fileUpload> to upload a file from my jsf page to a backing bean and getting following eror:
22:39:06,942 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "myweb.war"
22:39:07,341 INFO [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011401: Read persistence.xml for mywebPU
22:39:07,399 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."myweb.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."myweb.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "myweb.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
Caused by: java.lang.RuntimeException: Error getting reflective information for class org.primefaces.webapp.filter.FileUploadFilter with ClassLoader ModuleClassLoader for Module "deployment.myweb.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_21]
at java.lang.Class.privateGetDeclaredFields(Class.java:2317) [rt.jar:1.7.0_21]
at java.lang.Class.getDeclaredFields(Class.java:1762) [rt.jar:1.7.0_21]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 10 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory from [Module "deployment.myweb.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 15 more
22:39:07,429 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "myweb.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"myweb.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"myweb.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"myweb.war\""}}
22:39:07,433 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."myweb.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."myweb.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "myweb.war"
22:39:07,441 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"myweb.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"myweb.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"myweb.war\""}}}}
22:39:07,818 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment myweb.war in 381ms
My jsf page:
<h:form enctype="multipart/form-data">
<p:messages showDetail="true"/>
<p:fileUpload value="#{admin_post.uploadFile}" mode="simple" />
<p:commandButton value="Submit" ajax="false" actionListener="#{admin_post.upload}"/>
</h:form>
My web.xml: (The error occurs while using PrimeFaces FileUpload Filter)
<filter>
<filter-name>PrimeFaces FileUpload Filter</filter-name>
<filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
<init-param>
<param-name>thresholdSize</param-name>
<param-value>51200</param-value>
</init-param>
<init-param>
<param-name>uploadDirectory</param-name>
<param-value>/tmp</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>PrimeFaces FileUpload Filter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
How can I solve this problem?
For those who didn't read comments:
Adding commons-fileupload-xx.jar
and common-io-xx.jar to the classpath solved the problem perfectly.
15:06:38,636 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."myapp.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."myapp.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "myapp.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_13]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_13]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_13]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class org.apache.struts2.tiles.StrutsTilesListener
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:113)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
... 5 more
Caused by: java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener from [Module "deployment.myapp.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)
... 7 more
15:06:39,542 ERROR [org.jboss.as] (MSC service thread 1-10) JBAS015875: JBoss AS 7.1.0.Final "Thunder" started (with errors) in 92339ms - Started 144 of 219 services (2 services failed or missing dependencies, 71 services are passive or on-demand)
15:06:39,543 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "myapp.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"myapp.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"myapp.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"myapp.war\""}}
15:06:40,397 INFO [org.jboss.as.server.deployment] (MSC service thread 1-16) JBAS015877: Stopped deployment myapp.war in 853ms
15:06:40,398 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."myapp.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."myapp.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "myapp.war"
15:06:40,399 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"myapp.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"myapp.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"myapp.war\""}}}}
I had added more dependencies than those that were needed.
The only dependency is
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-tiles-plugin</artifactId>
<version>2.3.12</version>
</dependency>
I m trying to deploy a WAR maven project which contains a simple managed Bean and a xhtml page.
Earlier i create an EJB maven project which contains the entities and the session Bean..after deploying the rjb project i get an JAR executable file which i added it like a dependency to the WEB project..
but a problem while deploying the WAR of my web project
ive searched all day about a solution..with an intense headacke ,i soon going to give up..
this is the error:
17:48:07,781 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."GestionReclamationWEB-1.0-SNAPSHOT.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."GestionReclamationWEB-1.0-SNAPSHOT.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "GestionReclamationWEB-1.0-SNAPSHOT.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_38]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_38]
at java.lang.Thread.run(Unknown Source) [:1.6.0_38]
Caused by: java.lang.UnsupportedClassVersionError: com/GestionReclamation/services/EmployeBean : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_38]
at java.lang.ClassLoader.defineClassCond(Unknown Source) [:1.6.0_38]
at java.lang.ClassLoader.defineClass(Unknown Source) [:1.6.0_38]
at java.security.SecureClassLoader.defineClass(Unknown Source) [:1.6.0_38]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.Module.loadModuleClass(Module.java:590) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationProcessor.java:201)
at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:83)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
... 5 more
17:48:07,783 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "GestionReclamationWEB-1.0-SNAPSHOT.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"GestionReclamationWEB-1.0-SNAPSHOT.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"GestionReclamationWEB-1.0-SNAPSHOT.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"GestionReclamationWEB-1.0-SNAPSHOT.war\""}}
17:48:07,824 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment GestionReclamationWEB-1.0-SNAPSHOT.war in 41ms
17:48:07,825 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"GestionReclamationWEB-1.0-SNAPSHOT.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"GestionReclamationWEB-1.0-SNAPSHOT.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"GestionReclamationWEB-1.0-SNAPSHOT.war\""}}}}
It looks like your code is compiled with JDK7 and JBoss runs with JDK6. This won't work, because JDK6 cannot execute class files compiled with JDK7.
This may help to understand the problem.