0 Replies Latest reply on Jan 30, 2015 6:57 AM by Pieter Bouwer

    Class Inter-dependency between separate WAR deployments, using Arquillian

    Pieter Bouwer Newbie

      My situation is as follows:

       

      I have a JBoss (EAP 6.1) instance running with a WAR deployment. I want to use Arquillian to do integration testing against this existing deployment, however, the developed classes and tests that I am deploying to this instance (in another separate WAR) have dependencies on classes that are loaded by the existing WAR deployment. How to I configure my new test WAR to correctly reference those classes?

       

      I have tried adding a MANIFEST.MF Class-Path: deployment.<existing-deployment>.war

      and also by adding a dependency through jboss-deployment-structure.xml.

       

      However, I keep on getting:

       

      java.lang.Exception: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.module.service.\"deployment.<my-test-class>.war\".main is missing [jboss.module.spec.service.\"deployment.<existing-deployment>.war\".main]"]}

      at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getActionResult(ServerDeploymentPlanResultFuture.java:134)

      ...

       

      Is it at all possible to reference loaded classes on a running JBoss instance?

       

      Any help will be greatly appreciated.