[weld-issues] [JBoss JIRA] Commented: (WELD-807) Regression in proxy generation for Glassfish
Marius Bogoevici (JIRA)
jira-events at lists.jboss.org
Thu Dec 23 15:58:18 EST 2010
[ https://issues.jboss.org/browse/WELD-807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572242#comment-12572242 ]
Marius Bogoevici commented on WELD-807:
---------------------------------------
Some regression details:
> Daemon Thread [admin-thread-pool-4848(5)] (Suspended)
> ClassFileUtils.toClass(ClassFile, ClassLoader, ProtectionDomain) line: 95
> ProxyFactory<T>.createProxyClass(String) line: 392
> ProxyFactory<T>.getProxyClass() line: 281
> ProxyFactory<T>.create(BeanInstance) line: 212
> UserTransactionBean(AbstractEEBean<T>).<init>(Class<T>, Callable<T>, BeanManagerImpl) line: 46
> UserTransactionBean.<init>(BeanManagerImpl) line: 60
> BeanDeployment.deployBeans(Environment) line: 197
> WeldBootstrap.deployBeans() line: 363
> WeldDeployer.event(EventListener$Event) line: 164
This, therefore, results in the
> Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: org/jboss/interceptor/proxy/LifecycleMixin
> at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:117)
> at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:392)
> at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:281)
> ... 36 more
> Caused by: java.lang.NoClassDefFoundError: org/jboss/interceptor/proxy/LifecycleMixin
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:143)
> at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:109)
> Regression in proxy generation for Glassfish
> --------------------------------------------
>
> Key: WELD-807
> URL: https://issues.jboss.org/browse/WELD-807
> Project: Weld
> Issue Type: Bug
> Components: Proxies
> Affects Versions: 1.1.0.CR3
> Reporter: Marius Bogoevici
> Assignee: Marius Bogoevici
> Fix For: 1.1.0.Final
>
>
> Post WELD-804, proxies generated in Glassfish may fail with a CNFE, if the proxy bean type is a java.*/javax.* class.
> Solution: instead of automatically assuming that the classloader of a given class must be used for proxy generation, use ProxyServices for deciding (the default implementation of ProxyServices will be modified to use the classloader of that particular class).
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list