Referring to Container Modules
kamesh_sampath Apr 15, 2014 1:08 PMHello,
I am a newbie to Arquillian, I am trying to build the arquillian tests for my custom application. I have my application deployed as JBoss AS7 modules and are available under module name "org.workspace7.module1". I am building a Arquillian deployment and in the deployment archive I specific the module dependency using
WebArchive appDeployable = ShrinkWrap
.create(WebArchive.class, "CustomUtils.war")
.addClass(CustomPortalUtil.class)
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.setManifest(
new StringAsset("Dependencies: org.workspace7.module1"));
But my arquillian deployment falis saying "java.lang.NoClassDefFoundError" with reference to the classes found inside the module "org.workspace7.module1"
Can anyone tell me what is the right way to
- Add a reference to JBoss AS7 modules to my custom arquallian deployments?
- Is there away to deploy JBoss AS7 modules using Arquillian and refer the same in further deployments?
I did find some discussions in the forum but not able to infer anything form it because of my immaturity with arquilllian.
I did try to see how arquillian does the deployment of its "deployment.arquillian-service" where i see some logs as below
22:29:13,780 WARN [org.jboss.as.dependency.private](MSC service thread 1-6) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.jmx:main") which may be changed or removed in future versions without notice.
22:29:13,781 WARN [org.jboss.as.dependency.private](MSC service thread 1-6) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.server:main") which may be changed or removed in future versions without notice.
22:29:13,794 WARN [org.jboss.as.dependency.private](MSC service thread 1-6) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.osgi:main") which may be changed or removed in future versions without notice.
22:29:13,794 WARN [org.jboss.as.dependency.private](MSC service thread 1-6) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.jandex:main") which may be changed or removed in future versions without notice.
22:29:13,795 WARN [org.jboss.as.dependency.private](MSC service thread 1-6) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.osgi.framework:main") which may be changed or removed in future versions without notice.
Not sure which source base has this piece of logging so that I can see how arquillian builds its deployments with module references.
-K-