1 Reply Latest reply on May 27, 2009 4:38 PM by Joshua Davis

    Maven & JBoss embedded (using org.jboss.jbossas.jboss-as-emb

    Jérôme Blanchard Newbie

      Hy,

      I tried to use JBoss Embedded in order to be able to run junit test in a maven project.
      You can have a look downloading the project sample http://jayblanc.free.fr/jboss-embedded.tar.gz.
      Trying to run tests, there is lots of ClassNotFoundException starting with org.jboss.security.plugins.AuthorizationManagerService

      Is this dependency works ?

      <dependency>
       <groupId>org.jboss.jbossas</groupId>
       <artifactId>jboss-as-embedded</artifactId>
       <version>5.0.1.GA</version>
       <scope>test</scope>
      </dependency>
      


      If the dependency is good, maybe the problem comes from the configurations files I used. I took the ones in the sourceforge beta3 version... because I didn't found any maven package containing those configuration files in the repository...

      Is somebody have some informations about this ?

      Thanks.

        • 1. Re: Maven & JBoss embedded (using org.jboss.jbossas.jboss-as
          Joshua Davis Expert

          I'm not sure, but I think the JBoss 5.0.1 embedded package doesn't work. The latest working build of embedded (as far as I know) is here:

           <dependency>
           <groupId>org.jboss.embedded</groupId>
           <artifactId>jboss-embedded-all</artifactId>
           <version>beta3.SP5</version>
           <scope>test</scope>
           </dependency>
           <dependency>
           <groupId>org.jboss.embedded</groupId>
           <artifactId>jboss-embeddedl</artifactId>
           <version>beta3.SP5</version>
           <scope>test</scope>
           </dependency>
           <dependency>
           <groupId>org.jboss.embedded</groupId>
           <artifactId>hibernate-all</artifactId>
           <version>beta3.SP5</version>
           <scope>test</scope>
           </dependency>
           <dependency>
           <groupId>org.jboss.embedded</groupId>
           <artifactId>thirdparty-all</artifactId>
           <version>beta3.SP5</version>
           <scope>test</scope>
           </dependency>