[
https://issues.jboss.org/browse/FORGE-908?page=com.atlassian.jira.plugin....
]
Ondrej Zizka commented on FORGE-908:
------------------------------------
Could you please extend the documentation with Do's & Don'ts with how to
prevent this? Thx
LinkageError while using ShrinkWrap classes in Arquillian
---------------------------------------------------------
Key: FORGE-908
URL:
https://issues.jboss.org/browse/FORGE-908
Project: Forge
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Java EE
Affects Versions: 2.0.0.Alpha4
Reporter: George Gastaldi
Assignee: Lincoln Baxter III
Fix For: 2.0.0.Alpha5
In javaee-tests, if you remove the @Ignore from the test
test.org.jboss.forge.javaee.servlet.ServletFacetTest.testWebXMLCreatedWhenInstalled() you
get the following exception:
{code}
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of
org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type
with name "org/jboss/shrinkwrap/descriptor/api/webapp30/WebAppDescriptor"
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:344)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:422)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:260)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:75)
at org.jboss.modules.Module.loadModuleClass(Module.java:528)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:188)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:399)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119)
at
test.org.jboss.forge.javaee.servlet.ServletFacetTest.testWebXMLCreatedWhenInstalled(ServletFacetTest.java:63)
... 88 more
{code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)