[arquillian-issues] [JBoss JIRA] Commented: (ARQ-94) EAR deployment not supported

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Sat Mar 13 17:38:37 EST 2010


    [ https://jira.jboss.org/jira/browse/ARQ-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12519732#action_12519732 ] 

Aslak Knutsen commented on ARQ-94:
----------------------------------

The problem comes from Arquillian. 

It checks if the returned archive is instance of ClassContainer, while the interface EnterpriseArchive is not, the returned impl is(extending the ContainerBase). 

For the time being, only JavaArchives are really supported/tested. We're working on handling the packaging in the next releases.

> EAR deployment not supported
> ----------------------------
>
>                 Key: ARQ-94
>                 URL: https://jira.jboss.org/jira/browse/ARQ-94
>             Project: Arquillian
>          Issue Type: Bug
>    Affects Versions: 1.0.0.Alpha1
>            Reporter: Juergen Zimmermann
>            Assignee: Andrew Lee Rubinger
>
> I want to test an EJB module which is part of an EAR. Additionally the EAR contains 2 other files required for deployment:
> * hska-ds.xml to define the JBoss datasource
> * security-jboss-beans.xml to define the login module for authentication.
> Therefore, I defined in a JUnit testcase:
> @Deployment
> public static EnterpriseArchive createTestArchive() {...}
> Now I get this stacktrace:
> java.lang.RuntimeException: Could not get Deployment
> 	at org.jboss.arquillian.impl.DeploymentAnnotationArchiveGenerator.generateApplicationArchive(DeploymentAnnotationArchiveGenerator.java:58)
> 	at org.jboss.arquillian.impl.ClientDeploymentGenerator.generate(ClientDeploymentGenerator.java:58)
> 	at org.jboss.arquillian.impl.DeployableTest.generateArchive(DeployableTest.java:72)
> 	at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:97)
> 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> 	at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:115)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
> 	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
> 	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
> 	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
> 	at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
> 	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
> Caused by: java.lang.UnsupportedOperationException: EnterpriseArchive does not support classes
> 	at org.jboss.shrinkwrap.impl.base.spec.EnterpriseArchiveImpl.getClassesPath(EnterpriseArchiveImpl.java:139)
> 	at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addClasses(ContainerBase.java:731)
> 	at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addClass(ContainerBase.java:676)
> 	at org.jboss.arquillian.impl.DeploymentAnnotationArchiveGenerator.generateApplicationArchive(DeploymentAnnotationArchiveGenerator.java:51)
> 	... 16 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list