[weld-issues] [JBoss JIRA] Commented: (WELD-856) Unable to deploy any Weld application(s) on AIX

Mike Finkenzeller (JIRA) jira-events at lists.jboss.org
Fri Mar 4 10:51:45 EST 2011

    [ https://issues.jboss.org/browse/WELD-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586056#comment-12586056 ] 

Mike Finkenzeller commented on WELD-856:

After some debugging I actually figured out what it does not like but not yet why.

The issue is actually the proxyName being used. I changed the proxyName to something simple in ProxyFactory and then the proxies started to generate, the application deployed, and the integration tests worked. That tested the whole stack (RESTEasy, WELD, etc.)

Changing this in ProxyFactory in method static String getProxyName(Class<?> proxiedBeanType, Set<? extends Type> typeClosure, Bean<?> bean)

String className = beanId.replace('.', '$').replace(' ', '_').replace('/', '$').replace(';', '$');

to this.....

String className = beanId.replace('.', '$').replace(' ', '_').replace('/', '$').replace(';', '$').replace(':','$').replace('[', '$');

So basically removing the ':' and '[' characters in the proxyName resolved the issue. Interesting.....

Probably needs to be reviewed, but I can create a patch for it so Weld with deploy on AIX. 

> Unable to deploy any Weld application(s) on AIX
> -----------------------------------------------
>                 Key: WELD-856
>                 URL: https://issues.jboss.org/browse/WELD-856
>             Project: Weld
>          Issue Type: Bug
>          Components: Bootstrap and Metamodel API
>    Affects Versions: 1.1.0.Final
>         Environment: AIX 6.1
> IBM JDK 1.6.0 (build pap3260sr9-20101125_01 (SR9))
> JBoss 6.0.0.Final
>            Reporter: Mike Finkenzeller
> Deployment of any Weld application fails on AIX. The same application can be deployed on Windows, MACOSX, Linux (tested on Redhat), etc. Seems to be some sort of a classloader issue. 
> 2011-02-14 14:49:04,760 TRACE [org.jboss.classloader.spi.base.BaseClassLoader] (Thread-7) BaseClassLoader at 376a376a{bootstrap-classloader:0.0.0$MODULE} class not found sun.reflect.GeneratedMethodAccessor124
> 2011-02-14 14:49:04,739 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (Thread-7) Error installing to Start: name=vfs:///usr/local/SOA/jboss/server/prelude/deploy/prelude-soa-rest-api.war_WeldBootstrapBean state=Create: org.jboss.weld.exceptions.WeldException: by java.lang.NoClassDefFoundError: org.jboss.weldx.transaction.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$usr$local$SOA$jboss$server$prelude$deployers$resteasy$deployer"-Built-in-UserTransaction_$$_WeldProxy
>         at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:285) [:6.0.0.Final]

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