3 Replies Latest reply: Mar 15, 2011 12:28 PM by Victor Tatai RSS

Error deploying EAR in Embedded JBoss

Victor Tatai Newbie

Hello,

 

I've been trying to deploy an EAR in JBoss Embedded (using 6.0.0.Final), and I am getting the following error:

 

org.jboss.embedded.api.DeploymentException: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS IN ERROR:
  Deployment "vfs:///var/folders/8A/8AAj8FJOG582HTWOTm640++++TI/-Tmp-/___test.ear" is in error due to the following reason(s): java.lang.annotation.AnnotationFormatError: Invalid default: public abstract org.jboss.beans.metadata.api.model.FromContext org.jboss.beans.metadata.api.annotations.Inject.fromContext()

 at org.jboss.embedded.core.server.JBossASEmbeddedServerImpl.processAndCheckMainDeployer(JBossASEmbeddedServerImpl.java:608)
 at org.jboss.embedded.core.server.JBossASEmbeddedServerImpl.deploy(JBossASEmbeddedServerImpl.java:296)
 at org.jboss.embedded.core.server.JBossASEmbeddedServerImpl.deploy(JBossASEmbeddedServerImpl.java:536)
 at org.jboss.embedded.core.server.JBossASEmbeddedServerImpl.deploy(JBossASEmbeddedServerImpl.java:213)
 at com.vocado.test.services.container.EmbeddableEJB3Container.deployJars(EmbeddableEJB3Container.java:165)
 at com.vocado.test.services.container.EmbeddableEJB3Container.bootstrap(EmbeddableEJB3Container.java:80)
 at com.vocado.test.services.form.Defect3903IntegrationTest.initSuite(Defect3903IntegrationTest.java:37)
 at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:60)
 at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:106)
 at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111)
 at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
 at $Proxy0.invoke(Unknown Source)
 at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
 at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:74)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

 

 

At first I thought that this was a dependency issue, but after adding / excluding several dependencies from maven I managed to get some different error messages but in the end it still doesn't work.


Are there any extra dependencies that needed to be added? I've been using just jboss-as-depchain (as I've seen in the example for a SLSB), but I am not really sure if I should add for instance jboss-kernel or other jboss-microcontainer deps.

 

Any help appreciated,

 

Victor