[
https://issues.jboss.org/browse/WFLY-940?page=com.atlassian.jira.plugin.s...
]
Stan Silvert resolved WFLY-940.
-------------------------------
Resolution: Done
Issue fixed upstream. beans.xml is no longer included in jsf-impl so the jar doesn't
get scanned.
Consider JSF/Groovy support
---------------------------
Key: WFLY-940
URL:
https://issues.jboss.org/browse/WFLY-940
Project: WildFly
Issue Type: Bug
Components: JSF
Reporter: Stan Silvert
Assignee: Stan Silvert
Mojarra JSF includes the ability to use Groovy as an alternative to Java. Since the work
is already done for JSF integration, we might want to include it. Presumably, this would
only require shipping a Groovy runtime.
Currently, there is a bug in Mojarra 2.2 that, when running a CDI app, produces a stack
trace saying that Mojarra/Weld can't find the Groovy classloader. This error does not
cause any real problems with the app, but it needs to be addressed upstream in Mojarra.
{noformat}
13:34:32,234 INFO [org.jboss.weld.ClassLoading] (MSC service thread 1-6) WELD-000119 Not
generating any bean definitions from com.sun.faces.scripting.groovy.GroovyHelper
Impl$MojarraGroovyClassLoader because of underlying class loading error
13:34:32,239 INFO [org.jboss.weld.ClassLoading] (MSC service thread 1-6) catching:
org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class com.sun.fac
es.scripting.groovy.GroovyHelperImpl$MojarraGroovyClassLoader
at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:167)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at org.jboss.weld.bootstrap.BeanDeployer.loadWeldClass(BeanDeployer.java:116)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:79)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:135)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:184)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:349)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:63)
[jboss-as-weld-8.0.0.Alpha1-SNAPSHOT.jar:8.0.0.Alpha1-SNAPSHOT]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1974)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1907)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_15]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_15]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]
Caused by: java.lang.NoClassDefFoundError: groovy/lang/GroovyClassLoader
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_15]
at java.lang.Class.privateGetDeclaredFields(Class.java:2317) [rt.jar:1.7.0_15]
at java.lang.Class.getDeclaredFields(Class.java:1762) [rt.jar:1.7.0_15]
at
org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:105)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at
org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:102)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAndWrap(SecureReflectionAccess.java:63)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at
org.jboss.weld.util.reflection.SecureReflections.getDeclaredFields(SecureReflections.java:102)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at
org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:155)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:121)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at
org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:59)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
at
org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:50)
[weld-core-1.1.12.Final.jar:2013-04-11 12:58]
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.12.Final.jar:2013-04-11 12:58]
... 11 more
Caused by: java.lang.ClassNotFoundException: groovy.lang.GroovyClassLoader from [Module
"com.sun.jsf-impl:main" from local module loader @43259ee0 (finder: local module
f
inder @5ae1a690 (roots:
C:\as7trunk\jboss-as\build\target\jboss-as-8.0.0.Alpha1-SNAPSHOT\modules,C:\as7trunk\jboss-as\build\target\jboss-as-8.0.0.Alpha1-SNAPSHOT\modules\
system\layers\base))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196)
[jboss-modules.jar:1.2.0.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444)
[jboss-modules.jar:1.2.0.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432)
[jboss-modules.jar:1.2.0.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374)
[jboss-modules.jar:1.2.0.Final]
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119)
[jboss-modules.jar:1.2.0.Final]
... 29 more
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira