1 2 3 Previous Next 37 Replies Latest reply on Jun 24, 2013 11:42 AM by ssilvert Go to original post
      • 30. Re: Using another JSF implementation in JBoss AS 7.0.1
        nogotiated

        Hi Nicklas,

        Yes it was on a fresh build JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes", took it from here:

        https://ci.jboss.org/hudson/job/JBoss-AS-7.x-latest/1428/

         

        I also tried it with WAR_BUNDLES_JSF_IMPL, but got the same error. I will try a smaller application to see if it is really a cdi related problem, or some other classloading magic or something.

        • 31. Re: Using another JSF implementation in JBoss AS 7.0.1
          ssilvert

          Did you see my previous comment about the workaround?

           

          Stan

          • 32. Re: Using another JSF implementation in JBoss AS 7.0.1
            nogotiated

            I set the jsf api slot as explained in your workaround. It seems that it helped a bit, I got a little further in the deployment process, now i get this error from myfaces:

            java.lang.IllegalArgumentException: Class org.jboss.weld.jsf.ConversationAwareViewHandler is no javax.faces.application.ViewHandler

            But this could be a problem within my application. Thanks for your quick help anyways!

            • 33. Re: Using another JSF implementation in JBoss AS 7.0.1
              nogotiated

              I tried some more with a minimal example app (myfaces, primefaces as the only dependencies). As soon as I add a beans.xml to my app, I get

              java.lang.IllegalArgumentException: Class org.jboss.weld.jsf.ConversationAwareViewHandler is no javax.faces.application.ViewHandler

              • 34. Re: Using another JSF implementation in JBoss AS 7.0.1
                nogotiated

                I found another reference to javax.faces.api in modules/org/jboss/weld/core/main/module.xml and added the myfaces slot there as well. After that I was able to deploy my app with cdi support and without errors!

                Thanks for your help again!

                • 35. Re: Using another JSF implementation in JBoss AS 7.0.1
                  ssilvert

                  Thanks to you too Marcel.  I've updated my comments on the workaround to add modules/org/jboss/weld/core/main/module.xml.

                  • 36. Re: Using another JSF implementation in JBoss AS 7.0.1
                    pugals

                    I am trying to migrate from AS 6 to latest AS 7.x. I am using primefaces. I get the following error. Is there a way to make this work, either using the new features of jsf subsystem or org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL.

                    Caused by: java.lang.TypeNotPresentException: Type javax.faces.model.SelectItem not present

                            at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117) [rt.jar:1.7.0_21]

                            at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125) [rt.jar:1.7.0_21]

                            at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) [rt.jar:1.7.0_21]

                            at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) [rt.jar:1.7.0_21]

                            at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) [rt.jar:1.7.0_21]

                            at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) [rt.jar:1.7.0_21]

                            at sun.reflect.generics.repository.MethodRepository.getReturnType(MethodRepository.java:68) [rt.jar:1.7.0_21]

                            at java.lang.reflect.Method.getGenericReturnType(Method.java:244) [rt.jar:1.7.0_21]

                            at org.jboss.weld.introspector.jlr.WeldMethodImpl.of(WeldMethodImpl.java:70) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

                            at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:236) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

                            at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:121) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

                            at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:59) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

                            at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:50) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

                            at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:358)

                            at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184)

                            at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153)

                            at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69)

                            at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:396)

                            at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:163) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

                            ... 11 more

                    Caused by: java.lang.ClassNotFoundException: javax.faces.model.SelectItem from [Module "deployment.100.in2analytics-3.37.00.ear.in2analytics-ejb.jar:main" from Service Module Loader]

                            at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR2]

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.0.CR2]

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.0.CR2]

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.0.CR2]

                            at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.0.CR2]

                            at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_21]

                            at java.lang.Class.forName(Class.java:266) [rt.jar:1.7.0_21]

                            at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114) [rt.jar:1.7.0_21]

                            ... 29 more

                     

                     

                    10:52:34,088 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."100.in2analytics-3.37.00.ear".WeldStartService: org.jboss.msc.service.StartException in service

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1928) [jboss-msc-1.1.1.Final.jar:1.1.1.Final]

                            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: org.jboss.weld.exceptions.DeploymentException: Exception List with 3 exceptions:

                    Exception 0 :

                    org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [AuditedOptionsBean] with qualifiers [@Default] at injection point [[field] @Inject @Default private com.ls.in2analytics.ejb.workflow.

                            at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:311)

                            at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)

                            at org.jboss.weld.bootstrap.Validator.validateInterceptors(Validator.java:211)

                            at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:179)

                            at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:382)

                            at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:367)

                            at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:379)

                            at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:64)

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1972)

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1905)

                            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

                            at java.lang.Thread.run(Thread.java:722)

                    Exception 0 :

                    org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [AuditedOptionsBean] with qualifiers [@Default] at injection point [[field] @Inject @Default private com.ls.in2analytics.ejb.workflow.

                            at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:311)

                            at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)

                            at org.jboss.weld.bootstrap.Validator.validateInterceptors(Validator.java:211)

                            at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:179)

                            at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:382)

                            at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:367)

                            at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:379)

                            at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:64)

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1972)

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1905)

                            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

                            at java.lang.Thread.run(Thread.java:722)

                    Exception 0 :

                    • 37. Re: Using another JSF implementation in JBoss AS 7.0.1
                      ssilvert

                      Your best bet it to use a nightly build of WildFly and follow the instructions here:

                      Design of WildFly Multi-JSF feature

                       

                      If you must use an earlier version, look at this and note that you will need to make some modifications in some Weld modules.xml files:

                      Design of AS7 multi-JSF feature

                       

                      WAR_BUNDLES_JSF_IMPL should be avoided if possible.

                       

                      Stan

                      1 2 3 Previous Next