8 Replies Latest reply on Mar 12, 2011 11:27 AM by Aslak Knutsen

    JBoss 6 Final ?

    Craig Greenhalgh Newbie

      Hi,

       

      I've had my tests running using JBoss 6 M4 (remote), I'd like to know move to using JBoss 6 Final (embedded).  I need to use this as I need weld 1.1.

       

      I see its currently not supprted?

       

      Is there any work arround for this?

       

      Thanks

       

      Craig

        • 2. JBoss 6 Final ?
          Craig Greenhalgh Newbie

          Does this work with maven 3?

           

          I'm getting....

           

          org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact

           

          Thanks

           

          Craig

          • 3. JBoss 6 Final ?
            Craig Greenhalgh Newbie

            Ok, I've got her running.  I now get

             

            ERROR [STDERR] java.lang.IllegalStateException: Service org.jboss.arquillian.container.jbossas.embedded_6.JBossASContainerConfiguration does not implement expected type org.jboss.arquillian.spi.ContainerConfiguration

             

            But my tests still run and pass, is this error anything to worry about?

             

            Thanks

             

            Craig

            • 4. JBoss 6 Final ?
              Aslak Knutsen Master

              It's a bug, but nothing to worry about. It's a classloader issue loading the Configuration,  but the configuration is never used incontainer anyway, so...

               

              -aslak-

              • 5. JBoss 6 Final ?
                Craig Greenhalgh Newbie

                I can get tests to work using the @EJB annotation, but when I add a beans.xml file to my deployment and try to use the @Inject annotation it doesnt work.

                 

                I get the followin type of errors

                 

                DEPLOYMENTS MISSING DEPENDENCIES:

                  Deployment "Logging:CONTEXT:system" is missing the following dependencies:

                    Dependency "JBossLogService" (should be in state "Create", but is actually in state "**ERROR**")

                  Deployment "Logging:HANDLER:system:CONSOLE" is missing the following dependencies:

                    Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

                  Deployment "Logging:HANDLER_INSTALLER:system::2" is missing the following dependencies:

                    Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

                    Dependency "Logging:HANDLER:system:CONSOLE" (should be in state "Installed", but is actually in state "Instantiated")

                 

                Any ideas?

                 

                Many thanks

                 

                Craig

                • 6. JBoss 6 Final ?
                  Aslak Knutsen Master

                  got the rest of it?

                  • 7. JBoss 6 Final ?
                    Craig Greenhalgh Newbie

                    Sorry that was down to an error in my pom.

                     

                    I now have it running and tests run and pass.

                     

                    My next problem is now debugging my tests.

                     

                    When i put

                     

                    <forkMode>never</forkMode>

                     

                    In the configuration for surefire, it looks like it loses the ${jboss.home} directory settings as I get the error:

                     

                    org.jboss.arquillian.impl.event.FiredEventException: org.jboss.arquillian.spi.LifecycleException: Could not start container

                    ...

                    Caused by: org.jboss.bootstrap.api.config.InvalidConfigurationException: Could not get a connection to the jboss.lib.url: file:/C:/Development/TroubleTicket-3/workspace/troubleticket-ejb/lib

                    ....

                    Caused by: java.io.FileNotFoundException: C:\Development\TroubleTicket-3\workspace\troubleticket-ejb\lib (The system cannot find the file specified)

                     

                     

                    Thoughts?

                     

                    Thanks for your help

                     

                    Craig

                    • 8. JBoss 6 Final ?
                      Aslak Knutsen Master

                      Yea, JBOSS_HOME is not applied to the surefire started vm if surefire never starts a new one. If you want to run it in the same vm as Maven you probably have to add it as maven command line args or system environment variables.

                       

                      As for debugging you will have to activate the surefire debug to holt the vm if you use forkMode once: http://maven.apache.org/plugins/maven-surefire-plugin/examples/debugging.html