4 Replies Latest reply: Nov 27, 2012 7:42 AM by Nicklas Karlsson Branched from an earlier discussion. RSS

Multi-JSF support - ConcurrentModificationException in org.jboss.as.jsf.injection.AnnotationMap

Nicklas Karlsson Master

OK, so I built a fresh AS and installed the myfaces-2.1.8 according to the script (Windows-note, the script looks for the files in the C:\, adding ./ makes it look in c:\c:\yourdir)

Added the JSF_CONFIG name to the web.xml and the default JSF impl to the subsystem. On deployment I get

 

{code}

10:30:22,852 SEVERE [org.apache.myfaces.webapp.AbstractFacesInitializer] (ServerService Thread Pool -- 52) An error occured while initializing MyFaces: null: java.util.ConcurrentModificationException

          at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894) [rt.jar:1.7.0_07]

          at java.util.HashMap$KeyIterator.next(HashMap.java:928) [rt.jar:1.7.0_07]

          at org.jboss.as.jsf.injection.AnnotationMap.convert(AnnotationMap.java:103) [jboss-as-jsf-injection-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

          at org.jboss.as.jsf.injection.AnnotationMap.get(AnnotationMap.java:88) [jboss-as-jsf-injection-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

          at org.jboss.as.jsf.injection.MyFacesAnnotationProvider.getAnnotatedClasses(MyFacesAnnotationProvider.java:43) [jboss-as-jsf-injection-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

          at org.apache.myfaces.config.annotation.AnnotationConfigurator.createFacesConfig(AnnotationConfigurator.java:90) [myfaces-impl-2.1.8.jar:2.1.8]

          at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getAnnotationsFacesConfig(DefaultFacesConfigurationProvider.java:152) [myfaces-impl-2.1.8.jar:2.1.8]

          at org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:91) [myfaces-impl-2.1.8.jar:2.1.8]

          at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:416) [myfaces-impl-2.1.8.jar:2.1.8]

          at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:338) [myfaces-impl-2.1.8.jar:2.1.8]

          at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73) [myfaces-impl-2.1.8.jar:2.1.8]

          at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:140) [myfaces-impl-2.1.8.jar:2.1.8]

          at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:119) [myfaces-impl-2.1.8.jar:2.1.8]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.0.Alpha5.jar:7.2.0.Alpha5]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.0.Alpha5.jar:7.2.0.Alpha5]

          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_07]

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_07]

          at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_07]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]

          at org.jboss.threads.JBossThread.run(JBossThread.java:122)

{code}

 

CLI shows myfaces as an active impl