0 Replies Latest reply on Jul 14, 2015 11:49 AM by Dave Westerman

    ClassNotFoundException: org.jboss.shrinkwrap.api.spec.WebArchive

    Dave Westerman Newbie

      When running my EJB Arquillian test with Maven on our build machine using Jenkins to build, my test fails because the application does not start on WebSphere Liberty Profile ( When I look at the WLP FFDC log, I see the following error:


      java.lang.ClassNotFoundException: org.jboss.shrinkwrap.api.spec.WebArchive

          at com.ibm.ws.classloading.internal.AppClassLoader.findClassCommonLibraryClassLoaders(AppClassLoader.java:395)

          at com.ibm.ws.classloading.internal.AppClassLoader.findClass(AppClassLoader.java:266)

          at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:941)

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

          at com.ibm.ws.classloading.internal.AppClassLoader.loadClass(AppClassLoader.java:370)

          ... 28 more


      The only place I reference the WebArchive class is in the @Deployment method of my test class. I'm not sure why WLP would be trying to use that class from within the app itself. I do not see this problem when running in my local Eclipse workspace running Maven.


      Has anyone ever seen this problem?