Skip to content

Instantly share code, notes, and snippets.

@emag
Last active November 23, 2015 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emag/74b8d4b2c8efa9ab7ea0 to your computer and use it in GitHub Desktop.
Save emag/74b8d4b2c8efa9ab7ea0 to your computer and use it in GitHub Desktop.
ClassNotFoundException on Arquillian Test. JIRA: https://issues.jboss.org/browse/SWARM-184
$ mvn clean verify -pl lifelog-arquillian
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building lifelog-arquillian 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ lifelog-arquillian ---
[INFO] Deleting /home/tanabe/workspace/wildfly-swarm-tour/complete/lifelog-arquillian/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ lifelog-arquillian ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ lifelog-arquillian ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to /home/tanabe/workspace/wildfly-swarm-tour/complete/lifelog-arquillian/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ lifelog-arquillian ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/tanabe/workspace/wildfly-swarm-tour/complete/lifelog-arquillian/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ lifelog-arquillian ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/tanabe/workspace/wildfly-swarm-tour/complete/lifelog-arquillian/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ lifelog-arquillian ---
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ lifelog-arquillian ---
[INFO] Building jar: /home/tanabe/workspace/wildfly-swarm-tour/complete/lifelog-arquillian/target/lifelog-arquillian.jar
[INFO] 
[INFO] --- wildfly-swarm-plugin:1.0.0.Alpha6-SNAPSHOT:package (default) @ lifelog-arquillian ---
[INFO] 
[INFO] --- maven-failsafe-plugin:2.19:integration-test (default) @ lifelog-arquillian ---

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running wildflyswarmtour.lifelog.api.EntryControllerIT
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.wildfly.swarm.bootstrap.Main.invoke(Main.java:86)
	at org.wildfly.swarm.bootstrap.Main.run(Main.java:50)
	at org.wildfly.swarm.bootstrap.Main.main(Main.java:39)
Caused by: java.lang.NoClassDefFoundError: wildflyswarmtour/lifelog/LifeLogContainer
	at wildflyswarmtour.lifelog.api.EntryControllerIT.newContainer(EntryControllerIT.java:50)
	at org.wildfly.swarm.Swarm.factoryMain(Swarm.java:67)
	at org.wildfly.swarm.Swarm.main(Swarm.java:57)
	... 7 more
Caused by: java.lang.ClassNotFoundException: wildflyswarmtour.lifelog.LifeLogContainer from [Module "swarm.application:main" from BootModuleLoader@6cd8737 for finders [org.wildfly.swarm.bootstrap.modules.BootstrapClasspathModuleFinder@22f71333, org.wildfly.swarm.bootstrap.modules.BootstrapModuleFinder@13969fbe, org.wildfly.swarm.bootstrap.modules.ClasspathModuleFinder@6aaa5eb0, org.wildfly.swarm.bootstrap.modules.ApplicationModuleFinder@3498ed]]
	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
	... 10 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment