0 Replies Latest reply: Jun 25, 2012 9:26 AM by Dominik Grupp RSS

    tests against embedded weld fail with ClassNotFoundException on shrinkwrap class

    Dominik Grupp Newbie

      Hi,

       

      trying to use a maven profile for testing against the Weld EE embedded server as stated in http://arquillian.org/guides/getting_started/  I get the following exception, when my deployment method (compared to the getting_started example) is extended with

      .addAsLibraries(DependencyResolvers.use(MavenDependencyResolver.class).artifact("commons-fileupload:commons-fileupload:jar:1.2.2").[...]

       

      The tests and packaging with shrinkwrap are ok since when using a remote container  the tests work fine (e.g. jboss-as-arquillian-container-remote).

      [...]

      Caused by: java.lang.ClassNotFoundException: org.jboss.shrinkwrap.resolver.impl.maven.MavenBuilderImpl

                at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

                at java.lang.Class.forName0(Native Method)

                at java.lang.Class.forName(Class.java:247)

                at org.jboss.shrinkwrap.resolver.api.DependencyBuilderInstantiator.getImplClassForName(DependencyBuilderInstantiator.java:191)

                at org.jboss.shrinkwrap.resolver.api.DependencyBuilderInstantiator.getImplClassForUserView(DependencyBuilderInstantiator.java:163)

                ... 59 more

       

      See attached files for the effective pom.xml, class Deployments.java and full exception message. Is there a bug?

       

      Regards,

      Michael