0 Replies Latest reply on Mar 25, 2011 9:04 AM by Dimitrij Smelanskij

    Resolved. Problem with JBoss 5.1.0 remote and Arquillian Alpha5

    Dimitrij Smelanskij Newbie

      Problem found, this dependency was fault

       

      <dependency>

      <groupId>org.jboss.jbossas</groupId>

        <artifactId>jboss-as-server</artifactId>

        <version>5.1.0.GA</version>

        <type>jar</type>

        </dependency>

       

       

       

      When I try to execute my simple test following exeption occure:

       

       

      org.jboss.arquillian.spi.client.container.DeploymentException: Could not extract deployment metadata

      at org.jboss.arquillian.container.jbossas.remote_5_1.JBossASRemoteContainer.deploy(JBossASRemoteContainer.java:128)

      .....

      Caused by: java.lang.ClassNotFoundException: org.jboss.managed.api.annotation.ActivationPolicy

      at org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:103)

      at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:86)

      at java.lang.Class.forName0(Native Method)

      at java.lang.Class.forName(Class.java:247)

      at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:179)

      ...

       

      My Setup:

       

      fresh installed JBoss 5.1.0.GA  with JBoss ESB 4.9.

       

      arquillian.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <arquillian xmlns="http://jboss.com/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

       

      <container qualifier="jbossas" default="true">

      <configuration>

      <property name="jbossHome">D:\jboss-5.1.0.GA_test</property>

      </configuration>

      </container>

      </arquillian>

       

      Test class:

      @RunWith(Arquillian.class)

      public class PropertyManagerTest  {

       

          @Deployment

          public static JavaArchive createTestArchive() {

              JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "test.jar");

              archive.addPackage(PropertyManager.class.getPackage()).addClass(PropertyException.class)

                      .addClass(PropertyManagerTest.class);

              return archive;

          }

       

          @Test

          public void getProperty() {

              Assert.assertEquals(1, 1);

          }

       

          }

       

      pom.xml:

       

      <dependency>

      <groupId>org.jboss.cache</groupId>

      <artifactId>jbosscache-core</artifactId>

      <type>jar</type>

      </dependency>

      <dependency>

      <groupId>org.jboss.cluster</groupId>

      <artifactId>jboss-ha-server-cache-jbc</artifactId>

      <type>jar</type>

      </dependency>

      <dependency>

      <groupId>org.jboss.jbossas</groupId>

      <artifactId>jboss-as-server</artifactId>

      <version>5.1.0.GA</version>

      <type>jar</type>

      </dependency>

       

      ...

       

      <dependency>

      <groupId>junit</groupId>

      <artifactId>junit</artifactId>

      <version>4.8.1</version>

      <scope>test</scope>

      </dependency>

       

      <dependency>

      <groupId>org.jboss.arquillian</groupId>

      <artifactId>arquillian-junit</artifactId>

      <version>1.0.0.Alpha5</version>

      <scope>test</scope>

      </dependency>

       

       

      ...

      <profile>

      <id>jbossas-remote-5.1</id>

      <dependencies>

      <dependency>

      <groupId>org.jboss.arquillian.container</groupId>

      <artifactId>arquillian-jbossas-remote-5.1</artifactId>

      <version>1.0.0.Alpha5</version>

      </dependency>

      <dependency>

      <groupId>org.jboss.jbossas</groupId>

      <artifactId>jboss-as-client</artifactId>

      <version>5.1.0.GA</version>

      <type>pom</type>

      </dependency>

      </dependencies>

      </profile>