Skip to content

Instantly share code, notes, and snippets.

@ge0ffrey
Created August 30, 2011 15:15
Show Gist options
  • Save ge0ffrey/1181137 to your computer and use it in GitHub Desktop.
Save ge0ffrey/1181137 to your computer and use it in GitHub Desktop.
// Using arquillian with tomcat6 embedded with this @Deployment
@Deployment
public static WebArchive createDeployment() {
return ShrinkWrap.create(ExplodedImporter.class, "guvnor-webapp-5.3.0-SNAPSHOT.war")
.importDirectory(new File("target/guvnor-webapp-5.3.0-SNAPSHOT/"))
.as(WebArchive.class);
}
results in
SEVERE: Exception sending context initialized event to listener instance of class org.jboss.weld.environment.servlet.Listener
org.jboss.weld.exceptions.DeploymentException:
WELD-001416 Enabled interceptor class [
<class>org.jboss.seam.transaction.TransactionInterceptor</class>
in jar:file:/home/gdesmet/.m2/repository/org/jboss/seam/security/seam-security/3.1.0.Beta2/seam-security-3.1.0.Beta2.jar!/META-INF/beans.xml@8,
<class>org.jboss.seam.transaction.TransactionInterceptor</class>
in jar:file:/tmp/tomcat-embedded-6/work/arquillian-tomcat-embedded-6/localhost/guvnor-webapp-5.3.0-SNAPSHOT/WEB-INF/lib/seam-security-3.1.0.Beta2.jar!/META-INF/beans.xml@8
] specified twice
at org.jboss.weld.manager.Enabled.createMetadataMap(Enabled.java:147)
The seam-security-3.1.0.Beta2.jar from /home/gdesmet/.m2/repository shouldn't be in the tomcat6 deployment classpath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment