- 
        1. Re: Linkage Error with Weld in two jars (Jboss 6 Final)alesj Jan 14, 2011 2:52 PM (in response to ohadze)For some reason Weld is trying to define duplicate class. Can you debug/trace down which class is the culprit and which code is responsible for this duplication? 
- 
        2. Re: Linkage Error with Weld in two jars (Jboss 6 Final)alesj Jan 14, 2011 4:33 PM (in response to ohadze)
 For some reason Weld is trying to define duplicate class.This is strange, specially since there is this check in Weld proxy creation code: // First check to see if we already have this proxy class proxyClass = cast(classLoader.loadClass(proxyClassName)); } catch (ClassNotFoundException e) { // Create the proxy class for this instance try { proxyClass = createProxyClass(proxyClassName);
- 
        3. Re: Linkage Error with Weld in two jars (Jboss 6 Final)alesj Jan 14, 2011 5:08 PM (in response to ohadze)
 Can you debug/trace down which class is the culprit and which code is responsible for this duplication?"org/jboss/weld/examples/translator/web/org$jboss$weld$bean-jboss$classloader:id= "vfs:$$$users$oz$projects$weld-example$ear$target$weld-translator-web$ear" -NewSessionBean-TranslatorControllerBean_$$_WeldProxy\" The class to be turned into proxy is org.jboss.weld.examples.translator.TranslatorControllerBean. But I still don't see (apart from some race condition) how you could get dup, 
 since the proxy classname is unique wrt deployment name.
- 
        4. Re: Linkage Error with Weld in two jars (Jboss 6 Final)ohadze Jan 17, 2011 10:29 AM (in response to ohadze)I would be glad to. I am having trouble getting the source code into my IDE, though. Is there an easy way to get the source jar for the weld-core-no-jsf.jar (where the ClassFileUtils.class is located)? For some reason my IDE refuses to load the jars from the mvn repository... 
- 
        5. Re: Linkage Error with Weld in two jars (Jboss 6 Final)ohadze Jan 17, 2011 2:03 PM (in response to ohadze)Hi Ales, You must be right about the race condition, since as soon as I start debugging I get different errors - either LinkageError for different classes or a different deployment errors or, sometimes, no errors at all. 
 I'll keep trying and see where this leads.Thanks. 
 
    