5 Replies Latest reply on Oct 18, 2013 2:07 AM by b69

    Could not inject memebers arquillian-bom Version 1.1.1.Final

    b69 Newbie

      I saw the same error the first time when upgrading to version 1.0.4.Final. At the time I simply changed back to version 1.0.3.Final. Now I upgraded to version 1.1.1.Final and the error is back!

      It can be reproduced Version 1.0.3.Final works, 1.04.Final or 1.1.1.Final does not! It happens on each individual Junit test of the test class. For each test the following stack trace is produced:

       

      Time elapsed: 0.016 sec  <<< ERROR!

      java.lang.RuntimeException: Could not inject members

          at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:678)

          at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:136)

          at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:686)

          at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:695)

          at org.jboss.weld.manager.SimpleInjectionTarget$1.proceed(SimpleInjectionTarget.java:106)

          at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:134)

          at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)

          at org.jboss.weld.manager.SimpleInjectionTarget.inject(SimpleInjectionTarget.java:102)

          at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectNonContextualInstance(CDIInjectionEnricher.java:145)

          at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectClass(CDIInjectionEnricher.java:125)

          at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.enrich(CDIInjectionEnricher.java:78)

          at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)

          at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

          at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)

          at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

          at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

          at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

          at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

          at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

          at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.before(EventTestRunnerAdaptor.java:95)

          at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:222)

          at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

          at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

          at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)

          at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)

          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)

          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)

          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)

          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)

          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)

          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)

          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)

          at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)

          at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

          at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

          at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

          at org.junit.runners.ParentRunner.run(ParentRunner.java:300)

          at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

          at org.junit.runner.JUnitCore.run(JUnitCore.java:157)

          at org.junit.runner.JUnitCore.run(JUnitCore.java:136)

          at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65)

          at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.executeTest(ServletTestRunner.java:160)

          at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execute(ServletTestRunner.java:126)

          at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet(ServletTestRunner.java:90)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)

          at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)

          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)

          at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)

          at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)

          at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)

          at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)

          at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)

          at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)

          at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)

          at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

          at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

          at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

          at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

          at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

          at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

          at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

          at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

          at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

          at java.lang.Thread.run(Thread.java:662)

       

      It's interesting to remark, that this happens only when all tests classes of the module are run for instance controlled by maven. If the test class is started individually by right clicking and chosing JUnit Test, All tests of the class pass error free!

       

      Who can help me to overcome this strange behaviour? I mean an other solution, than just switching back to Version 1.0.3.Final.

        • 1. Re: Could not inject memebers arquillian-bom Version 1.1.1.Final
          Karel Piwko Master

          Hey,

           

          can you please post the pom.xml file? I'm particularly interested in following questions that should be visible there:

           

          1/ What is the version of surefire plugin

          2/ Whether there is not some Arquillian dependency leaking with different version than 1.1.0.Final.

           

          Thanks,

           

          Karel

          • 2. Re: Could not inject memebers arquillian-bom Version 1.1.1.Final
            b69 Newbie

            Oh! thanks,

             

            Here is my pom:

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

            <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

                <modelVersion>4.0.0</modelVersion>

             

                <groupId>ch.commcity.monterosa</groupId>

                <artifactId>Site</artifactId>

                <version>1.0.30</version>

             

                <properties>

                    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

                    <version.maven-assembly-plugin>2.4</version.maven-assembly-plugin>

                    <version.maven-checkstyle-plugin>2.10</version.maven-checkstyle-plugin>

                    <version.maven-compiler-plugin>3.1</version.maven-compiler-plugin>

                    <version.maven-ear-plugin>2.8</version.maven-ear-plugin>

                    <version.maven-ejb-plugin>2.3</version.maven-ejb-plugin>

                    <version.maven-jar-plugin>2.4</version.maven-jar-plugin>

                    <version.maven-war-plugin>2.3</version.maven-war-plugin>

                    <version.maven-javadoc-plugin>2.9</version.maven-javadoc-plugin>

                    <version.maven-jxr-plugin>2.3</version.maven-jxr-plugin>

                    <version.maven-pmd-plugin>3.0.1</version.maven-pmd-plugin>

                    <version.maven-project-info-reports-plugin>2.6</version.maven-project-info-reports-plugin>

                    <version.maven-site-plugin>3.3</version.maven-site-plugin>

                    <version.maven-surfire-plugin>2.14.1</version.maven-surfire-plugin>

             

                    <version.emma-maven-plugin>1.0-alpha-3</version.emma-maven-plugin>

                    <version.findbugs-maven-plugin>2.5.2</version.findbugs-maven-plugin>

                    <version.junit>4.10</version.junit>

                    <version.java.jdk>1.6</version.java.jdk>

             

                    <version.org.jboss.spec.jboss.javaee.6.0>3.0.0.Final</version.org.jboss.spec.jboss.javaee.6.0>

                    <version.org.jboss.arquillian.bom>1.0.3.Final</version.org.jboss.arquillian.bom>

                    <version.org.jboss.arquillian.extension>1.2.0.CR1</version.org.jboss.arquillian.extension>

                    <version.org.jboss.arquillian.selenium>2.35.0</version.org.jboss.arquillian.selenium>

                    <version.org.jboss.arquillian.graphene>2.0.0.CR1</version.org.jboss.arquillian.graphene>

                    <version.org.jboss.arquillian.ajocado>1.0.0.CR2</version.org.jboss.arquillian.ajocado>

                    <version.org.jboss.as.arquillian.container>7.1.3.Final</version.org.jboss.as.arquillian.container>

                    <version.org.jboss.arquillian.container.glassfish>1.0.0.CR4</version.org.jboss.arquillian.container.glassfish>

                    <vesion.org.glassfish-embedded-all>3.1.2.2</vesion.org.glassfish-embedded-all>

             

                    <version.org.jboss.spec.javax.servlet>1.0.2.Final</version.org.jboss.spec.javax.servlet>

                    <version.org.jboss.spec.javax.faces>2.0.2.Final</version.org.jboss.spec.javax.faces>

                    <version.org.jboss.spec.javax.ejb>1.0.2.Final</version.org.jboss.spec.javax.ejb>

                    <version.org.hibernate.javax.persistence>1.0.1.Final</version.org.hibernate.javax.persistence>

                    <version.ejb_api>3.1</version.ejb_api>

             

                    <version.javax.validation>1.0.0.GA</version.javax.validation>

             

                    <browser>phantomjs</browser>

             

                    <site.base.dir>projects/monterosa/site</site.base.dir>

                    <site.base.outputdir>\temp\MonteRosa\${site.base.dir}</site.base.outputdir>

                    <site.pmd>${basedir}\..\Site\src\pmd</site.pmd>

                    <site.pmd.rulesets>${site.pmd}\rulesets</site.pmd.rulesets>

                    <site.findbug>${basedir}\..\Site\src\findbug</site.findbug>

                </properties>

             

                <name>Site - Agile Storyboard Editor/Document-generator</name>

                <inceptionYear>2012</inceptionYear>

             

                <packaging>pom</packaging>

                <modules>

                    <module>../XMLschemas</module>

                    <module>../MonteRosaCommon</module>

                    <module>../MonteRosaCCC</module>

                    <module>../MonteRosaEJB</module>

                    <module>../MonteRosaJSF</module>

                    <module>../Reports</module>

                    <module>../ReqIF</module>

                    <module>../MonteRosaApp</module>

                </modules>

             

                <distributionManagement>

                    <repository>

                        <id>SpicaRepository</id>

                        <url>http://spica:8080/nexus/content/repositories/SpicaRepository/</url>

                    </repository>

                    <snapshotRepository>

                        <id>SpicaRepositorySnap</id>

                        <url>http://spica:8080/nexus/content/repositories/SpicaRepositorySnap/</url>

                    </snapshotRepository>

                    <site>

                        <id>MonterosaSite</id>

                        <url>scp://spica.commcity.local/${site.base.dir}</url>

                    </site>

                </distributionManagement>

             

                <build>

                    <pluginManagement>

                        <plugins>

                            <plugin>

                                <artifactId>maven-compiler-plugin</artifactId>

                                <version>${version.maven-compiler-plugin}</version>

                                <configuration>

                                    <source>${version.java.jdk}</source>

                                    <target>${version.java.jdk}</target>

                                </configuration>

                            </plugin>

                            <plugin>

                                <groupId>org.apache.maven.plugins</groupId>

                                <artifactId>maven-assembly-plugin</artifactId>

                                <version>${version.maven-assembly-plugin}</version>

                            </plugin>

                            <plugin>

                                <groupId>org.apache.maven.plugins</groupId>

                                <artifactId>maven-surefire-plugin</artifactId>

                                <version>${version.maven-surfire-plugin}</version>

                            </plugin>

                            <plugin>

                                <groupId>org.codehaus.mojo</groupId>

                                <artifactId>findbugs-maven-plugin</artifactId>

                                <version>${version.findbugs-maven-plugin}</version>

                            </plugin>

                            <plugin>

                                <groupId>org.codehaus.mojo</groupId>

                                <artifactId>emma-maven-plugin</artifactId>

                                <version>${version.emma-maven-plugin}</version>

                            </plugin>

                            <plugin>

                                <groupId>org.apache.maven.plugins</groupId>

                                <artifactId>maven-javadoc-plugin</artifactId>

                                <version>${version.maven-javadoc-plugin}</version>

                                <configuration>

                                    <outputDirectory>${site.base.outputdir}/javadoc</outputDirectory>

                                </configuration>

                                <executions>

                                    <execution>

                                        <id>aggregate</id>

                                        <goals>

                                            <goal>aggregate</goal>

                                        </goals>

                                        <phase>site</phase>

                                    </execution>

                                </executions>

                            </plugin>

                        </plugins>

                    </pluginManagement>

                    <plugins>

                        <plugin>

                            <groupId>org.apache.maven.plugins</groupId>

                            <artifactId>maven-javadoc-plugin</artifactId>

                        </plugin>

                        <plugin>

                            <artifactId>maven-site-plugin</artifactId>

                            <version>${version.maven-site-plugin}</version>

                            <configuration>

                                <locales>en</locales>

                                <reportPlugins>

                                    <plugin>

                                        <groupId>org.apache.maven.plugins</groupId>

                                        <artifactId>maven-project-info-reports-plugin</artifactId>

                                        <version>${version.maven-project-info-reports-plugin}</version>

                                    </plugin>

            <!--

                                    <plugin>

                                        <groupId>org.apache.maven.plugins</groupId>

                                        <artifactId>maven-checkstyle-plugin</artifactId>

                                        <version>${version.maven-checkstyle-plugin}</version>

                                        <configuration>

                                            <configLocation>config/sun_checks.xml</configLocation>

                                            <includeTestSourceDirectory>true</includeTestSourceDirectory>

                                            <excludes>

                                                <exclude>**/generated/*.java</exclude>

                                                <exclude>**/*Test.java</exclude>

                                            </excludes>

                                        </configuration>

                                    </plugin>

            -->                       

                                    <plugin>

                                        <groupId>org.apache.maven.plugins</groupId>

                                        <artifactId>maven-jxr-plugin</artifactId>

                                        <version>${version.maven-jxr-plugin}</version>

                                    </plugin>

                                    <plugin>

                                        <groupId>org.apache.maven.plugins</groupId>

                                        <artifactId>maven-pmd-plugin</artifactId>

                                        <version>${version.maven-pmd-plugin}</version>

                                        <configuration>

                                            <linkXRef>false</linkXRef>

                                            <targetJdk>${version.java.jdk}</targetJdk>

                                            <sourceEncoding>utf-8</sourceEncoding>

                                            <format>xml</format>

                                            <minimumTokens>100</minimumTokens>

                                            <excludes>

                                                <exclude>**/generated/*.java</exclude>

                                                <exclude>**/*Test.java</exclude>

                                                <exclude>**/*_.java</exclude>

                                                <exclude>**/*package-info.java</exclude>

                                            </excludes>

                                            <rulesets>

                                                <!-- left in, but not seen it works! -->

                                                <ruleset>${site.pmd.rulesets}\java/myExcludes.xml</ruleset>

                                            </rulesets>

                                        </configuration>

                                    </plugin>

                                    <plugin>

                                        <groupId>org.codehaus.mojo</groupId>

                                        <artifactId>findbugs-maven-plugin</artifactId>

                                        <configuration>

                                            <excludeFilterFile>${site.findbug}\findbugs-exclude.xml</excludeFilterFile>

                                        </configuration>

                                    </plugin>

                                    <plugin>

                                        <groupId>org.apache.maven.plugins</groupId>

                                        <artifactId>maven-surefire-report-plugin</artifactId>

                                        <version>${version.maven-surfire-plugin}</version>

                                        <configuration>

                                            <showSuccess>true</showSuccess>

                                        </configuration>

                                    </plugin>

                                    <plugin>

                                        <groupId>org.codehaus.mojo</groupId>

                                        <artifactId>emma-maven-plugin</artifactId>

                                    </plugin>

                                </reportPlugins>

                            </configuration>

                        </plugin>

                    </plugins>

                </build>

             

                <dependencyManagement>

                    <dependencies>

                        <dependency>

                            <groupId>javax</groupId>

                            <artifactId>javaee-api</artifactId>

                            <version>6.0</version>

                            <scope>provided</scope>

                        </dependency>

                        <dependency>

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

                            <artifactId>arquillian-bom</artifactId>

                            <version>${version.org.jboss.arquillian.bom}</version>

                            <type>pom</type>               

                            <scope>import</scope>

                        </dependency>

                        <dependency>

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

                            <artifactId>arquillian-drone-bom</artifactId>

                            <version>${version.org.jboss.arquillian.extension}</version>

                            <type>pom</type>

                            <scope>import</scope>

                        </dependency>

                        <dependency>

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

                            <artifactId>selenium-bom</artifactId>

                            <version>${version.org.jboss.arquillian.selenium}</version>

                            <type>pom</type>

                            <scope>import</scope>

                        </dependency>

                       

                        <!-- Arquillian Ajocado is an enhanced tool based on Selenium

                            allowing you to test AJAX more easily, bindings for JUnit -->

                        <!-- Note that JUnit is preferred framework -->

            <!--            

                        <dependency>

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

                            <artifactId>arquillian-ajocado-junit</artifactId>

                            <version>${version.org.jboss.arquillian.ajocado}</version>

                            <type>pom</type>

                        </dependency>

            -->           

                        <!-- Arquillian support for JBoss AS7 container -->

                        <!-- Note: Managed version of container allows Arquillian to

                            control startup and shutdown of the container -->

                        <dependency>

                            <groupId>org.jboss.as</groupId>

                            <artifactId>jboss-as-arquillian-container-managed</artifactId>

                            <version>${version.org.jboss.as.arquillian.container}</version>

                        </dependency>

                        <!-- Arquillian support for JBoss AS7 container -->

                        <!-- Note: Remote version of container allows Arquillian to

                            connect to already running container -->

                        <dependency>

                            <groupId>org.jboss.as</groupId>

                            <artifactId>jboss-as-arquillian-container-remote</artifactId>

                            <version>${version.org.jboss.as.arquillian.container}</version>

                        </dependency>

                        <dependency>

                            <groupId>org.jboss.spec.javax.ejb</groupId>

                            <artifactId>jboss-ejb-api_3.1_spec</artifactId>

                            <version>${version.org.jboss.spec.javax.ejb}</version>

                        </dependency>

                        <dependency>

                            <groupId>org.hibernate.javax.persistence</groupId>

                            <artifactId>hibernate-jpa-2.0-api</artifactId>

                            <version>${version.org.hibernate.javax.persistence}</version>

                        </dependency>

                        <dependency>

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

                            <artifactId>arquillian-glassfish-remote-3.1</artifactId>

                            <version>${version.org.jboss.arquillian.container.glassfish}</version>

                            <scope>test</scope>

                        </dependency>

                        <dependency>

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

                            <artifactId>arquillian-glassfish-managed-3.1</artifactId>

                            <version>${version.org.jboss.arquillian.container.glassfish}</version>

                            <scope>test</scope>

                        </dependency>

                        <dependency>

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

                            <artifactId>arquillian-glassfish-embedded-3.1</artifactId>

                            <version>${version.org.jboss.arquillian.container.glassfish}</version>

                            <scope>test</scope>

                        </dependency>

                        <dependency>

                            <groupId>org.glassfish.main.extras</groupId>

                            <artifactId>glassfish-embedded-all</artifactId>

                            <version>${vesion.org.glassfish-embedded-all}</version>

                            <scope>provided</scope>

                        </dependency>

             

                        <!-- Repository entry has gone! wait until it is back. -->

            <!--

                        <dependency>

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

                            <artifactId>arquillian-was-remote-8</artifactId>

                            <version>1.0.0-SNAPSHOT</version>

                            <scope>test</scope>

                        </dependency>

            -->

                        <dependency>

                            <groupId>org.apache.myfaces.core</groupId>

                            <artifactId>myfaces-api</artifactId>

                            <version>2.1.10</version>

                            <scope>provided</scope>

                        </dependency>

                        <dependency>

                            <groupId>org.apache.myfaces.core</groupId>

                            <artifactId>myfaces-impl</artifactId>

                            <version>2.1.10</version>

                            <scope>provided</scope>

                        </dependency>

                        <dependency>

                            <groupId>org.apache.myfaces.tomahawk</groupId>

                            <artifactId>tomahawk21</artifactId>

                            <version>1.1.14</version>

                        </dependency>

                        <dependency>

                            <groupId>org.glassfish</groupId>

                            <artifactId>javax.faces</artifactId>

                            <version>2.1.7</version>

                            <scope>provided</scope>

                        </dependency>

                        <dependency>

                            <groupId>org.jboss.spec.javax.faces</groupId>

                            <artifactId>jboss-jsf-api_2.1_spec</artifactId>

                            <version>${version.org.jboss.spec.javax.faces}</version>

                            <scope>provided</scope>

                        </dependency>

                        <dependency>

                            <groupId>javax.validation</groupId>

                            <artifactId>validation-api</artifactId>

                            <version>${version.javax.validation}</version>

                            <scope>provided</scope>

                        </dependency>

                        <dependency>

                            <groupId>org.jboss.spec.javax.servlet</groupId>

                            <artifactId>jboss-servlet-api_3.0_spec</artifactId>

                            <version>${version.org.jboss.spec.javax.servlet}</version>

                            <scope>provided</scope>

                        </dependency>

                        <dependency>

                            <groupId>junit</groupId>

                            <artifactId>junit</artifactId>

                            <version>${version.junit}</version>

                            <scope>test</scope>

                        </dependency>

                        <dependency>

                            <groupId>org.slf4j</groupId>

                            <artifactId>slf4j-simple</artifactId>

                            <version>1.7.5</version>

                            <scope>test</scope>

                        </dependency>

                        <dependency>

                            <groupId>org.slf4j</groupId>

                            <artifactId>slf4j-log4j12</artifactId>

                            <version>1.7.5</version>

                            <scope>test</scope>

                        </dependency>

                    </dependencies>

                </dependencyManagement>

             

                <dependencies>

                    <dependency>

                        <groupId>junit</groupId>

                        <artifactId>junit</artifactId>

                        <scope>test</scope>

                    </dependency>

                </dependencies>

             

                <profiles>

                    <profile>

                        <id>default-profile</id>

                        <activation>

                            <activeByDefault>false</activeByDefault>

                        </activation>

                        <dependencies>

                            <dependency>

                                <groupId>javax</groupId>

                                <artifactId>javaee-api</artifactId>

                                <scope>provided</scope>

                            </dependency>

                        </dependencies>

                    </profile>

                    <profile>

                        <id>jboss</id>

                        <activation>

                            <activeByDefault>false</activeByDefault>

                        </activation>

                        <dependencies>

                            <dependency>

                                <groupId>org.jboss.as</groupId>

                                <artifactId>jboss-as-arquillian-container-remote</artifactId>

                                <version>7.1.1.Final</version>

                                <scope>test</scope>

                            </dependency>

                        </dependencies>

                    </profile>

                    <profile>

                        <id>glassfish-common</id>

                        <activation>

                            <activeByDefault>false</activeByDefault>

                        </activation>

                        <dependencies>

                            <dependency>

                                <groupId>org.glassfish.main.extras</groupId>

                                <artifactId>glassfish-embedded-all</artifactId>

                                <scope>provided</scope>

                            </dependency>

                            <dependency>

                                <groupId>org.jboss.spec.javax.ejb</groupId>

                                <artifactId>jboss-ejb-api_3.1_spec</artifactId>

                                <scope>provided</scope>

                            </dependency>

                        </dependencies>

                    </profile>

                    <profile>

                        <id>arquillian-glassfish-embedded</id>

                        <activation>

                            <activeByDefault>false</activeByDefault>

                        </activation>

                        <build>

                            <testResources>

                                <testResource>

                                    <directory>src/test/resources</directory>

                                </testResource>

                                <testResource>

                                    <directory>src/test/resources-glassfish-embedded</directory>

                                </testResource>

                            </testResources>

                        </build>

                        <dependencies>

                            <dependency>

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

                                <artifactId>arquillian-glassfish-embedded-3.1</artifactId>

                                <scope>test</scope>

                            </dependency>

                        </dependencies>

                    </profile>

                    <profile>

                        <id>arquillian-glassfish-remote</id>

                        <activation>

                            <activeByDefault>false</activeByDefault>

                        </activation>

                        <build>

                            <testResources>

                                <testResource>

                                    <directory>src/test/resources</directory>

                                </testResource>

            <!--

                                <testResource>

                                    <directory>src/test/resources-glassfish-embedded</directory>

                                </testResource>

            -->

                            </testResources>

                        </build>

                        <dependencies>

                            <dependency>

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

                                <artifactId>arquillian-glassfish-remote-3.1</artifactId>

                                <scope>test</scope>

                            </dependency>

                        </dependencies>

                    </profile>

                    <profile>

                        <id>ArquillianTests</id>

                        <activation>

                            <activeByDefault>false</activeByDefault>

                        </activation>

                        <dependencies>

                            <dependency>

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

                                <artifactId>arquillian-junit-container</artifactId>

                                <scope>test</scope>

                            </dependency>

                            <dependency>

                                <groupId>org.hibernate</groupId>

                                <artifactId>hibernate-jpamodelgen</artifactId>

                                <version>1.2.0.Final</version>

                                <scope>test</scope>

                            </dependency>

                        </dependencies>

                    </profile>

                    <profile>

                        <id>HttpClient</id>

                        <activation>

                            <activeByDefault>false</activeByDefault>

                        </activation>

                        <dependencies>

                            <dependency>

                                <groupId>org.apache.httpcomponents</groupId>

                                <artifactId>httpclient</artifactId>

                                <version>4.2.5</version>

                                <scope>test</scope>

                            </dependency>

                            <dependency>

                                <groupId>org.apache.httpcomponents</groupId>

                                <artifactId>httpclient-cache</artifactId>

                                <version>4.2.5</version>

                                <scope>test</scope>

                            </dependency>

                            <dependency>

                                <groupId>org.apache.httpcomponents</groupId>

                                <artifactId>httpmime</artifactId>

                                <version>4.2.5</version>

                                <scope>test</scope>

                            </dependency>

                            <dependency>

                                <groupId>org.apache.httpcomponents</groupId>

                                <artifactId>fluent-hc</artifactId>

                                <version>4.2.5</version>

                                <scope>test</scope>

                            </dependency>

                        </dependencies>

                    </profile>

                    <profile>

                        <id>firefox</id>

                        <properties>

                            <browser>firefox</browser>

                        </properties>

                    </profile>

                    <profile>

                        <id>chrome</id>

                        <properties>

                            <browser>chrome</browser>

                        </properties>

                    </profile>

                    <profile>

                        <id>ie</id>

                        <properties>

                            <browser>Internet Explorer</browser>

                        </properties>

                    </profile>

                    <profile>

                        <id>Graphene</id>

                        <activation>

                            <activeByDefault>false</activeByDefault>

                        </activation>

                        <dependencies>

                            <dependency>

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

                                <artifactId>graphene-webdriver-api</artifactId>

                                <version>${version.org.jboss.arquillian.graphene}</version>

                                <scope>test</scope>

                            </dependency>

                            <dependency>

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

                                <artifactId>graphene-webdriver-spi</artifactId>

                                <version>${version.org.jboss.arquillian.graphene}</version>

                                <scope>test</scope>

                            </dependency>

                            <dependency>

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

                                <artifactId>graphene-webdriver-impl</artifactId>

                                <version>${version.org.jboss.arquillian.graphene}</version>

                                <scope>test</scope>

                            </dependency>

                            <dependency>

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

                                <artifactId>arquillian-drone-webdriver-depchain</artifactId>

                                <type>pom</type>

                            </dependency>

                        </dependencies>

                    </profile>

                    <profile>

                        <id>SeleniumDrone</id>

                        <activation>

                            <activeByDefault>false</activeByDefault>

                        </activation>

                        <dependencies>

                            <dependency>

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

                                <artifactId>arquillian-drone-impl</artifactId>

                                <scope>test</scope>

                            </dependency>

                            <dependency>

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

                                <artifactId>arquillian-drone-selenium</artifactId>

                                <scope>test</scope>

                            </dependency>

                            <dependency>

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

                                <artifactId>arquillian-drone-selenium-server</artifactId>

                                <scope>test</scope>

                            </dependency>

                            <dependency>

                                <groupId>org.seleniumhq.selenium</groupId>

                                <artifactId>selenium-java</artifactId>

                                <scope>test</scope>

                            </dependency>

                            <dependency>

                                <groupId>org.seleniumhq.selenium</groupId>

                                <artifactId>selenium-server</artifactId>

                                <scope>test</scope>

                                <exclusions>

                                    <exclusion>

                                        <groupId>org.mortbay.jetty</groupId>

                                        <artifactId>servlet-api-2.5</artifactId>

                                    </exclusion>

                                </exclusions>

                            </dependency>

                        </dependencies>

                    </profile>

                    <profile>

                        <id>myfaces</id>

                        <activation>

                            <activeByDefault>false</activeByDefault>

                        </activation>

                        <dependencies>

                            <dependency>

                                <groupId>org.apache.myfaces.core</groupId>

                                <artifactId>myfaces-impl</artifactId>

                                <scope>provided</scope>

                            </dependency>

                            <dependency>

                                <groupId>org.apache.myfaces.core</groupId>

                                <artifactId>myfaces-api</artifactId>

                                <scope>provided</scope>

                            </dependency>

                        </dependencies>

                    </profile>

                </profiles>

             

                <reporting>

                    <outputDirectory>${site.base.outputdir}</outputDirectory>

                    <plugins>

                        <plugin>

                            <groupId>org.apache.maven.plugins</groupId>

                            <artifactId>maven-javadoc-plugin</artifactId>

                            <version>${version.maven-javadoc-plugin}</version>

                            <configuration>

                                <aggregate>true</aggregate>

                            </configuration>

                        </plugin>

                        <plugin>

                            <groupId>org.apache.maven.plugins</groupId>

                            <artifactId>maven-jxr-plugin</artifactId>

                            <version>${version.maven-jxr-plugin}</version>

                        </plugin>

                        <plugin>

                            <groupId>org.apache.maven.plugins</groupId>

                            <artifactId>maven-pmd-plugin</artifactId>

                            <version>${version.maven-pmd-plugin}</version>

                        </plugin>

                    </plugins>

                </reporting>

                <issueManagement>

                    <url>https://spica.commcity.local/bugzilla</url>

                    <system>Bugzilla</system>

                </issueManagement>

            </project>

             

             

            This is the setting when the tests pass:

                <version.org.jboss.arquillian.bom>1.0.3.Final</version.org.jboss.arquillian.bom>
            • 3. Re: Could not inject memebers arquillian-bom Version 1.1.1.Final
              Bartosz Majsak Master

              I'm not sure, but seems to me that Ajocado is not really the thing you should use. I believe Graphene is what you are looking for with 1.1.x stuff. However I'm not sure if that is the root cause here.

              • 4. Re: Could not inject memebers arquillian-bom Version 1.1.1.Final
                b69 Newbie

                Hi Bartosz,

                 

                Ajocado is still just declared within the dependencyManagement section, but commented out and not used at all. In fact I'm working with Graphene! Thats the reason having upgraded to the 1.1.1.Final Version of arquillian-bom.

                • 5. Re: Could not inject memebers arquillian-bom Version 1.1.1.Final
                  b69 Newbie

                  Hi Karel, hi Bartosz,

                  Have you made any progress on the issue? May you need additional information?

                  I can live with the 1.0.3.Final version, at least for the moment. But in the long run, I'm afraid this will not be the best idea.

                   

                  Cheers

                   

                  Juerg