This content has been marked as final.
Show 1 reply
-
1. Re: Deployment of JavaArchive not supported by arquillian-was-remote-8?
teewetee Jan 10, 2017 5:54 AM (in response to dokaspar)1 of 1 people found this helpfulI think so. I experienced the same and changed the
createDeployment()
method to return an EAR:@Deployment public static EnterpriseArchive createDeployment() { EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "application-ear.ear") .as(ZipImporter.class) .importFrom(new File("../folder/target/package-1.0.0-SNAPSHOT.ear")) .as(EnterpriseArchive.class); JavaArchive testLibraryHelper = ShrinkWrap.create(JavaArchive.class) .addClass(YourTestClass.class) //for CDI .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml"); ear.addAsLibrary(testLibraryHelper); return ear; }
Since I had to import too much stuff into the EAR I used the existing EAR and just added the Test.jar afterwards...
After that the error was gone...