I am trying to deploy an existing war with another maven project in Arkillian. I resolved the war and copied it into the target directory of my Arquillian project.
I am trying to create it below:
@Deployment public static WebArchive createDeployment() { return (WebArchive) ShrinkWrap.create(ZipImporter.class, "MyWarToTest.war").importFrom( new File("target/MyWarToTest.war")); }
However, I get a class exception.
Raised: java.lang.ClassCastException: org.jboss.shrinkwrap.impl.base.importer.zip.ZipImporterImpl cannot be thrown at org.jboss.shrinkwrap.api.Archive
I guess I should try to create a war differently?
source share