2 Replies Latest reply on Dec 5, 2008 8:07 AM by Pete Muir

    Problems with Embedded EJB3.1 from trunk

    Pete Muir Master

      * org.jboss.metadata:jboss-metadata is [1.0.0.CR1] which causes a bootstrap problem, removing the version constraint fixes this

      * org.jboss.integration:jboss-transaction-spi was at 5.0.0.CR2, needs to be 5.0.3.GA, I hacked this by making embedded depend directly on the transaction-spi

        • 2. Re: Problems with Embedded EJB3.1 from trunk
          Pete Muir Master

          Another problem with the build - if I include the artifact using:

          <dependency>
           <groupId>org.jboss.ejb3</groupId>
           <artifactId>jboss-ejb3-embedded</artifactId>
           <scope>test</scope>
          </dependency>


          Then I get a problem resolving some artifacts:

          Downloading: http://snapshots.jboss.org/maven2/org/jboss/microcontainer/jboss-kernel/2.0.0.GA/jboss-kernel-2.0.0.GA.jar
          Downloading: http://snapshots.jboss.org/maven2/org/jboss/microcontainer/jboss-dependency/2.0.0.GA/jboss-dependency-2.0.0.GA.jar
          Downloading: http://snapshots.jboss.org/maven2/org/jboss/deployers/jboss-deployers-vfs/2.0.0.CR5/jboss-deployers-vfs-2.0.0.CR5.jar
          Downloading: http://snapshots.jboss.org/maven2/org/jboss/deployers/jboss-deployers-structure-spi/2.0.0.CR5/jboss-deployers-structure-spi-2.0.0.CR5.jar
          Downloading: http://snapshots.jboss.org/maven2/org/jboss/deployers/jboss-deployers-core-spi/2.0.0.CR5/jboss-deployers-core-spi-2.0.0.CR5.jar
          Downloading: http://snapshots.jboss.org/maven2/org/jboss/deployers/jboss-deployers-impl/2.0.0.CR5/jboss-deployers-impl-2.0.0.CR5.jar
          Downloading: http://snapshots.jboss.org/maven2/org/jboss/metadata/jboss-metadata/1.0.0.CR1/jboss-metadata-1.0.0.CR1.jar
          [INFO] ------------------------------------------------------------------------
          [ERROR] BUILD ERROR
          [INFO] ------------------------------------------------------------------------
          [INFO] Failed to resolve artifact.
          
          Missing:
          ----------
          1) org.jboss.microcontainer:jboss-kernel:jar:2.0.0.GA
          
           Try downloading the file manually from the project website.
          
           Then, install it using the command:
           mvn install:install-file -DgroupId=org.jboss.microcontainer -DartifactId=jboss-kernel -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/path/to/file
          
           Alternatively, if you host your own repository you can deploy the file there:
           mvn deploy:deploy-file -DgroupId=org.jboss.microcontainer -DartifactId=jboss-kernel -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
          
           Path to dependency:
           1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
           2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
           3) org.jboss.microcontainer:jboss-kernel:jar:2.0.0.GA
          
          2) org.jboss.microcontainer:jboss-dependency:jar:2.0.0.GA
          
           Try downloading the file manually from the project website.
          
           Then, install it using the command:
           mvn install:install-file -DgroupId=org.jboss.microcontainer -DartifactId=jboss-dependency -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/path/to/file
          
           Alternatively, if you host your own repository you can deploy the file there:
           mvn deploy:deploy-file -DgroupId=org.jboss.microcontainer -DartifactId=jboss-dependency -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
          
           Path to dependency:
           1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
           2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
           3) org.jboss.microcontainer:jboss-dependency:jar:2.0.0.GA
          
          3) org.jboss.deployers:jboss-deployers-vfs:jar:2.0.0.CR5
          
           Try downloading the file manually from the project website.
          
           Then, install it using the command:
           mvn install:install-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-vfs -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file
          
           Alternatively, if you host your own repository you can deploy the file there:
           mvn deploy:deploy-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-vfs -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
          
           Path to dependency:
           1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
           2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
           3) org.jboss.deployers:jboss-deployers-vfs:jar:2.0.0.CR5
          
          4) org.jboss.deployers:jboss-deployers-structure-spi:jar:2.0.0.CR5
          
           Try downloading the file manually from the project website.
          
           Then, install it using the command:
           mvn install:install-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-structure-spi -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file
          
           Alternatively, if you host your own repository you can deploy the file there:
           mvn deploy:deploy-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-structure-spi -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
          
           Path to dependency:
           1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
           2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
           3) org.jboss.deployers:jboss-deployers-structure-spi:jar:2.0.0.CR5
          
          5) org.jboss.deployers:jboss-deployers-core-spi:jar:2.0.0.CR5
          
           Try downloading the file manually from the project website.
          
           Then, install it using the command:
           mvn install:install-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-core-spi -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file
          
           Alternatively, if you host your own repository you can deploy the file there:
           mvn deploy:deploy-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-core-spi -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
          
           Path to dependency:
           1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
           2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
           3) org.jboss.deployers:jboss-deployers-core-spi:jar:2.0.0.CR5
          
          6) org.jboss.deployers:jboss-deployers-impl:jar:2.0.0.CR5
          
           Try downloading the file manually from the project website.
          
           Then, install it using the command:
           mvn install:install-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-impl -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file
          
           Alternatively, if you host your own repository you can deploy the file there:
           mvn deploy:deploy-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-impl -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
          
           Path to dependency:
           1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
           2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
           3) org.jboss.deployers:jboss-deployers-impl:jar:2.0.0.CR5
          
          7) org.jboss.metadata:jboss-metadata:jar:1.0.0.CR1
          
           Try downloading the file manually from the project website.
          
           Then, install it using the command:
           mvn install:install-file -DgroupId=org.jboss.metadata -DartifactId=jboss-metadata -Dversion=1.0.0.CR1 -Dpackaging=jar -Dfile=/path/to/file
          
           Alternatively, if you host your own repository you can deploy the file there:
           mvn deploy:deploy-file -DgroupId=org.jboss.metadata -DartifactId=jboss-metadata -Dversion=1.0.0.CR1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
          
           Path to dependency:
           1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
           2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
           3) org.jboss.metadata:jboss-metadata:jar:1.0.0.CR1
          
          ----------
          7 required artifacts are missing.
          
          for artifact:
           org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
          
          from the specified remote repositories:
           central (http://repo1.maven.org/maven2),
           google-maven-repository (http://google-maven-repository.googlecode.com/svn/repository/),
           repository.jboss.org (http://repository.jboss.org/maven2),
           snapshots.jboss.org (http://snapshots.jboss.org/maven2)


          As you can see, it's trying to download from snapshots, not the main repo, which is where it goes wrong.