1 Reply Latest reply on Feb 14, 2012 8:54 AM by Bartosz Majsak

    Configuration of EJB not clear. crash on startup

    b69 Newbie

      Snippet of Test class:

       

      @RunWith(Arquillian.class)

      public class RequirementBeanTest {

       

          @EJB

          private Requirements reqBean;

       

          @EJB

          private Projects projBean;

       

       

          @Deployment

          public static JavaArchive createTestArchive() {

              return ShrinkWrap.create(JavaArchive.class, "test.jar")

                      .addClasses(Requirements.class, RequirementBean.class,

                              Projects.class, ProjectBean.class,

                              Project.class, Requirement.class, Stakeholder.class,

                              Employee.class)

                      .addAsManifestResource("persistence.xml", "persistence.xml")

                      .addAsManifestResource(new ByteArrayAsset("<beans/>".getBytes()),

                              ArchivePaths.create("beans.xml"));

          }

       

      or

           @Deployment

               public static JavaArchive createDeployment() {

       

      instead of createTestArchive

       

      provokes a crash as shown by the server log below.

       

      what is the difference between createDeployment and createTestArchive? And what should be used in which situation?

      what is wrong with the configuration?

      I tray to use embedded glassfish 3.1 see effectiv pom.

      Test data shall be in the JavaDB. How and where the javadb client jar must it be, to be found? How to configure with the embedded glassfish?

      Projects.class and Requirements.class (with 's') are Interfaces of the ...Bean.classes. The other classes are Entities. Is it correct to mention all of them or, what is required and what is not? Must an Exception-Class be mentioned too, or not? Interfaces for the Entities are defined too in the system. Should Interfaces be added too? or not, or both?

       

      what has the FlashlightProbeProviderFactory to do in the log. I do not use Flashlight at all.

      arquillian is set up through import of:

           <dependency>

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

                      <artifactId>arquillian-bom</artifactId>

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

                      <scope>import</scope>

                      <type>pom</type>

            </dependency>

      Beside, the GreeterTest and the HelloEJBTest both works with no visible difference in configuration. The manual setup works. The checkout of git didn't! (Both examples do not access a DB or use JPA. This may be the reason!)

       

      I'm very thankfull for any hint bringing me out of the stuck situation.

       

      effective POM:

      <?xml version="1.0"?>

      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <modelVersion>4.0.0</modelVersion>

        <parent>

          <artifactId>Site</artifactId>

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

          <version>00.01.00-SNAPSHOT</version>

          <relativePath>..</relativePath>

        </parent>

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

        <artifactId>MonteRosaEJB</artifactId>

        <version>00.01.00-SNAPSHOT</version>

        <packaging>ejb</packaging>

        <name>MonteRosa EJB</name>

        <description>EJB module of MonteRosa</description>

        <inceptionYear>2012</inceptionYear>

        <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>

        </distributionManagement>

        <properties>

          <site.base.outputdir>D:\temp\MonteRosa\projects/monterosa/site</site.base.outputdir>

          <version.org.jboss.arquillian>1.0.0.CR7</version.org.jboss.arquillian>

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

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

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

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

        </properties>

        <dependencyManagement>

          <dependencies>

            <dependency>

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

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

              <version>1.0.0.CR1</version>

              <scope>test</scope>

            </dependency>

            <dependency>

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

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

              <version>3.1</version>

              <scope>provided</scope>

            </dependency>

            <dependency>

              <groupId>junit</groupId>

              <artifactId>junit</artifactId>

              <version>4.10</version>

              <scope>test</scope>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-core-api</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-core-spi</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-core-impl-base</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-config-api</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-config-spi</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-config-impl-base</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-test-api</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-test-spi</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-test-impl-base</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-container-spi</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-container-impl-base</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-container-test-api</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-container-test-spi</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-container-test-impl-base</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-junit-core</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

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

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-junit-standalone</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-testng-core</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-testng-container</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-testng-standalone</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-protocol-servlet</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-protocol-jmx</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-testenricher-cdi</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-testenricher-ejb</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-testenricher-resource</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

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

              <artifactId>arquillian-testenricher-initialcontext</artifactId>

              <version>1.0.0.CR7</version>

            </dependency>

            <dependency>

              <groupId>org.jboss.shrinkwrap</groupId>

              <artifactId>shrinkwrap-api</artifactId>

              <version>1.0.0-cr-1</version>

            </dependency>

            <dependency>

              <groupId>org.jboss.shrinkwrap</groupId>

              <artifactId>shrinkwrap-spi</artifactId>

              <version>1.0.0-cr-1</version>

            </dependency>

            <dependency>

              <groupId>org.jboss.shrinkwrap</groupId>

              <artifactId>shrinkwrap-impl-base</artifactId>

              <version>1.0.0-cr-1</version>

            </dependency>

            <dependency>

              <groupId>org.jboss.shrinkwrap.resolver</groupId>

              <artifactId>shrinkwrap-resolver-api</artifactId>

              <version>1.0.0-beta-5</version>

            </dependency>

            <dependency>

              <groupId>org.jboss.shrinkwrap.resolver</groupId>

              <artifactId>shrinkwrap-resolver-api-maven</artifactId>

              <version>1.0.0-beta-5</version>

            </dependency>

            <dependency>

              <groupId>org.jboss.shrinkwrap.resolver</groupId>

              <artifactId>shrinkwrap-resolver-impl-maven</artifactId>

              <version>1.0.0-beta-5</version>

            </dependency>

            <dependency>

              <groupId>org.jboss.shrinkwrap.descriptors</groupId>

              <artifactId>shrinkwrap-descriptors-api</artifactId>

              <version>1.1.0-beta-1</version>

            </dependency>

            <dependency>

              <groupId>org.jboss.shrinkwrap.descriptors</groupId>

              <artifactId>shrinkwrap-descriptors-impl</artifactId>

              <version>1.1.0-beta-1</version>

            </dependency>

          </dependencies>

        </dependencyManagement>

        <dependencies>

          <dependency>

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

            <artifactId>MonteRosaCommon</artifactId>

            <version>00.01.00-SNAPSHOT</version>

            <scope>provided</scope>

          </dependency>

          <dependency>

            <groupId>junit</groupId>

            <artifactId>junit</artifactId>

            <version>4.10</version>

            <scope>test</scope>

          </dependency>

          <dependency>

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

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

            <version>1.0.0.CR7</version>

            <scope>test</scope>

          </dependency>

          <dependency>

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

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

            <version>1.0.0.CR1</version>

            <scope>provided</scope>

          </dependency>

          <dependency>

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

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

            <version>3.1</version>

            <scope>provided</scope>

          </dependency>

        </dependencies>

        <repositories>

          <repository>

            <releases>

              <enabled>true</enabled>

            </releases>

            <snapshots>

              <enabled>true</enabled>

            </snapshots>

            <id>central</id>

            <url>http://central</url>

          </repository>

        </repositories>

        <pluginRepositories>

          <pluginRepository>

            <releases>

              <enabled>true</enabled>

            </releases>

            <snapshots>

              <enabled>true</enabled>

            </snapshots>

            <id>central</id>

            <url>http://central</url>

          </pluginRepository>

        </pluginRepositories>

        <build>

          <sourceDirectory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\src\main\java</sourceDirectory>

          <scriptSourceDirectory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\src\main\scripts</scriptSourceDirectory>

          <testSourceDirectory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\src\test\java</testSourceDirectory>

          <outputDirectory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\target\classes</outputDirectory>

          <testOutputDirectory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\target\test-classes</testOutputDirectory>

          <resources>

            <resource>

              <directory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\src\main\resources</directory>

            </resource>

          </resources>

          <testResources>

            <testResource>

              <directory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\src\test\resources</directory>

            </testResource>

          </testResources>

          <directory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\target</directory>

          <finalName>MonteRosaEJB-00.01.00-SNAPSHOT</finalName>

          <pluginManagement>

            <plugins>

              <plugin>

                <artifactId>maven-antrun-plugin</artifactId>

                <version>1.3</version>

              </plugin>

              <plugin>

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

                <version>2.3.2</version>

                <configuration>

                  <source>1.6</source>

                  <target>1.6</target>

                </configuration>

              </plugin>

              <plugin>

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

                <version>2.2.2</version>

              </plugin>

              <plugin>

                <artifactId>maven-dependency-plugin</artifactId>

                <version>2.1</version>

              </plugin>

              <plugin>

                <artifactId>maven-release-plugin</artifactId>

                <version>2.0</version>

              </plugin>

              <plugin>

                <artifactId>maven-ejb-plugin</artifactId>

                <version>2.3</version>

                <configuration>

                  <ejbVersion>3.1</ejbVersion>

                  <archive>

                    <manifest>

                      <addClasspath>true</addClasspath>

                    </manifest>

                  </archive>

                </configuration>

              </plugin>

            </plugins>

          </pluginManagement>

          <plugins>

            <plugin>

              <artifactId>maven-clean-plugin</artifactId>

              <version>2.4.1</version>

              <executions>

                <execution>

                  <id>default-clean</id>

                  <phase>clean</phase>

                  <goals>

                    <goal>clean</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

            <plugin>

              <artifactId>maven-install-plugin</artifactId>

              <version>2.3.1</version>

              <executions>

                <execution>

                  <id>default-install</id>

                  <phase>install</phase>

                  <goals>

                    <goal>install</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

            <plugin>

              <artifactId>maven-resources-plugin</artifactId>

              <version>2.4.3</version>

              <executions>

                <execution>

                  <id>default-resources</id>

                  <phase>process-resources</phase>

                  <goals>

                    <goal>resources</goal>

                  </goals>

                </execution>

                <execution>

                  <id>default-testResources</id>

                  <phase>process-test-resources</phase>

                  <goals>

                    <goal>testResources</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

            <plugin>

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

              <version>2.7.2</version>

              <executions>

                <execution>

                  <id>default-test</id>

                  <phase>test</phase>

                  <goals>

                    <goal>test</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

            <plugin>

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

              <version>2.3.2</version>

              <executions>

                <execution>

                  <id>default-testCompile</id>

                  <phase>test-compile</phase>

                  <goals>

                    <goal>testCompile</goal>

                  </goals>

                  <configuration>

                    <source>1.6</source>

                    <target>1.6</target>

                  </configuration>

                </execution>

                <execution>

                  <id>default-compile</id>

                  <phase>compile</phase>

                  <goals>

                    <goal>compile</goal>

                  </goals>

                  <configuration>

                    <source>1.6</source>

                    <target>1.6</target>

                  </configuration>

                </execution>

              </executions>

              <configuration>

                <source>1.6</source>

                <target>1.6</target>

              </configuration>

            </plugin>

            <plugin>

              <artifactId>maven-ejb-plugin</artifactId>

              <version>2.3</version>

              <executions>

                <execution>

                  <id>default-ejb</id>

                  <phase>package</phase>

                  <goals>

                    <goal>ejb</goal>

                  </goals>

                  <configuration>

                    <ejbVersion>3.1</ejbVersion>

                    <archive>

                      <manifest>

                        <addClasspath>true</addClasspath>

                      </manifest>

                    </archive>

                  </configuration>

                </execution>

              </executions>

              <configuration>

                <ejbVersion>3.1</ejbVersion>

                <archive>

                  <manifest>

                    <addClasspath>true</addClasspath>

                  </manifest>

                </archive>

              </configuration>

            </plugin>

            <plugin>

              <artifactId>maven-deploy-plugin</artifactId>

              <version>2.5</version>

              <executions>

                <execution>

                  <id>default-deploy</id>

                  <phase>deploy</phase>

                  <goals>

                    <goal>deploy</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

            <plugin>

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

              <version>2.0.1</version>

              <executions>

                <execution>

                  <id>default-site</id>

                  <phase>site</phase>

                  <goals>

                    <goal>site</goal>

                  </goals>

                  <configuration>

                    <outputDirectory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\target\site</outputDirectory>

                    <reportPlugins>

                      <reportPlugin>

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

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

                      </reportPlugin>

                    </reportPlugins>

                  </configuration>

                </execution>

                <execution>

                  <id>default-deploy</id>

                  <phase>site-deploy</phase>

                  <goals>

                    <goal>deploy</goal>

                  </goals>

                  <configuration>

                    <outputDirectory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\target\site</outputDirectory>

                    <reportPlugins>

                      <reportPlugin>

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

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

                      </reportPlugin>

                    </reportPlugins>

                  </configuration>

                </execution>

              </executions>

              <configuration>

                <outputDirectory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\target\site</outputDirectory>

                <reportPlugins>

                  <reportPlugin>

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

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

                  </reportPlugin>

                </reportPlugins>

              </configuration>

            </plugin>

          </plugins>

        </build>

        <reporting>

          <outputDirectory>D:\daten\projects\eclipse_trynLernWS\MonteRosaTests\MonteRosaEJB\target\site</outputDirectory>

        </reporting>

      </project>

       

      Serverlog trace:

      09.02.2012 09:02:30 com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl findDerbyClient

      INFO: Cannot find javadb client jar file, derby jdbc driver will not be available by default.

      09.02.2012 09:02:31 org.hibernate.validator.util.Version <clinit>

      INFO: Hibernate Validator 4.1.0.Final

      09.02.2012 09:02:31 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA

      INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

      09.02.2012 09:02:31 org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory processXMLProbeProviders

      SCHWERWIEGEND: MNTG0301:Cannot process XML ProbeProvider, xml = META-INF/gfprobe-provider.xml

      java.lang.IllegalStateException: Provider already mapped glassfish:javamail:smtp-transport

          at org.glassfish.flashlight.impl.core.ProbeProviderRegistry.registerProbeProvider(ProbeProviderRegistry.java:100)

          at org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.registerProvider(FlashlightProbeProviderFactor

      y.java:539)

          at org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.processXMLProbeProviders(FlashlightProbeProvid

      erFactory.java:364)

          at org.glassfish.admin.monitor.MonitoringBootstrap.processProbeProviderXML(MonitoringBootstrap.java:484)

          at org.glassfish.admin.monitor.MonitoringBootstrap.processManifest(MonitoringBootstrap.java:360)

          at org.glassfish.admin.monitor.MonitoringBootstrap.addProvider(MonitoringBootstrap.java:301)

          at org.glassfish.admin.monitor.MonitoringBootstrap.verifyModule(MonitoringBootstrap.java:245)

          at org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders(MonitoringBootstrap.java:188)

          at org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders(MonitoringBootstrap.java:624)

          at org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct(MonitoringBootstrap.java:176)

          at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)

          at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)

          at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)

          at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)

          at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)

          at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)

          at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:229)

          at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)

          at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)

          at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)

          at org.jboss.arquillian.container.glassfish.embedded_3_1.GlassFishContainer.start(GlassFishContainer.java:145)

          at org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:198)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleContro

      ller.java:163)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleContro

      ller.java:157)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleCon

      troller.java:255)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleC

      ontroller.java:156)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploym

      entContextHandler.java:57)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

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

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

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

          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleContro

      ller.java:77)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleContro

      ller.java:70)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forEachSuiteContainer(ContainerLif

      ecycleController.java:221)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startSuiteContainers(ContainerLife

      cycleController.java:69)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

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

          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

          at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:86)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.createSuiteContext(TestContextHandler.java:60)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

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

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

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

          at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:68)

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

          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)

          at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

      09.02.2012 09:02:31 org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory processXMLProbeProviders

      SCHWERWIEGEND: MNTG0301:Cannot process XML ProbeProvider, xml = META-INF/mojarra-jsf-api-probe-provider.xml

      java.lang.IllegalStateException: Provider already mapped glassfish:jsf:faces-servlet

          at org.glassfish.flashlight.impl.core.ProbeProviderRegistry.registerProbeProvider(ProbeProviderRegistry.java:100)

          at org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.registerProvider(FlashlightProbeProviderFactor

      y.java:539)

          at org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.processXMLProbeProviders(FlashlightProbeProvid

      erFactory.java:364)

          at org.glassfish.admin.monitor.MonitoringBootstrap.processProbeProviderXML(MonitoringBootstrap.java:484)

          at org.glassfish.admin.monitor.MonitoringBootstrap.processManifest(MonitoringBootstrap.java:360)

          at org.glassfish.admin.monitor.MonitoringBootstrap.addProvider(MonitoringBootstrap.java:301)

          at org.glassfish.admin.monitor.MonitoringBootstrap.verifyModule(MonitoringBootstrap.java:245)

          at org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders(MonitoringBootstrap.java:188)

          at org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders(MonitoringBootstrap.java:624)

          at org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct(MonitoringBootstrap.java:176)

          at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)

          at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)

          at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)

          at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)

          at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)

          at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)

          at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:229)

          at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)

          at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)

          at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)

          at org.jboss.arquillian.container.glassfish.embedded_3_1.GlassFishContainer.start(GlassFishContainer.java:145)

          at org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:198)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleContro

      ller.java:163)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleContro

      ller.java:157)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleCon

      troller.java:255)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleC

      ontroller.java:156)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploym

      entContextHandler.java:57)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

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

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

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

          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleContro

      ller.java:77)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleContro

      ller.java:70)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forEachSuiteContainer(ContainerLif

      ecycleController.java:221)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startSuiteContainers(ContainerLife

      cycleController.java:69)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

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

          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

          at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:86)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.createSuiteContext(TestContextHandler.java:60)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

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

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

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

          at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:68)

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

          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)

          at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

      09.02.2012 09:02:31 org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory processXMLProbeProviders

      SCHWERWIEGEND: MNTG0301:Cannot process XML ProbeProvider, xml = jersey-gf-server-probe-provider.xml

      java.lang.IllegalStateException: Provider already mapped glassfish:jersey:server-hidden

          at org.glassfish.flashlight.impl.core.ProbeProviderRegistry.registerProbeProvider(ProbeProviderRegistry.java:100)

          at org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.registerProvider(FlashlightProbeProviderFactor

      y.java:539)

          at org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.processXMLProbeProviders(FlashlightProbeProvid

      erFactory.java:364)

          at org.glassfish.admin.monitor.MonitoringBootstrap.processProbeProviderXML(MonitoringBootstrap.java:484)

          at org.glassfish.admin.monitor.MonitoringBootstrap.processManifest(MonitoringBootstrap.java:360)

          at org.glassfish.admin.monitor.MonitoringBootstrap.addProvider(MonitoringBootstrap.java:301)

          at org.glassfish.admin.monitor.MonitoringBootstrap.verifyModule(MonitoringBootstrap.java:245)

          at org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders(MonitoringBootstrap.java:188)

          at org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders(MonitoringBootstrap.java:624)

          at org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct(MonitoringBootstrap.java:176)

          at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)

          at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)

          at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)

          at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)

          at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)

          at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)

          at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:229)

          at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)

          at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)

          at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)

          at org.jboss.arquillian.container.glassfish.embedded_3_1.GlassFishContainer.start(GlassFishContainer.java:145)

          at org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:198)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleContro

      ller.java:163)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleContro

      ller.java:157)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleCon

      troller.java:255)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleC

      ontroller.java:156)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploym

      entContextHandler.java:57)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

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

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

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

          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleContro

      ller.java:77)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleContro

      ller.java:70)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forEachSuiteContainer(ContainerLif

      ecycleController.java:221)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startSuiteContainers(ContainerLife

      cycleController.java:69)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

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

          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

          at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:86)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.createSuiteContext(TestContextHandler.java:60)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

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

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

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

          at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:68)

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

          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)

          at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

      09.02.2012 09:02:31 org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory processXMLProbeProviders

      SCHWERWIEGEND: MNTG0301:Cannot process XML ProbeProvider, xml = jersey-gf-statsprovider-probe-provider.xml

      java.lang.IllegalStateException: Provider already mapped glassfish:jersey:server

          at org.glassfish.flashlight.impl.core.ProbeProviderRegistry.registerProbeProvider(ProbeProviderRegistry.java:100)

          at org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.registerProvider(FlashlightProbeProviderFactor

      y.java:539)

          at org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.processXMLProbeProviders(FlashlightProbeProvid

      erFactory.java:364)

          at org.glassfish.admin.monitor.MonitoringBootstrap.processProbeProviderXML(MonitoringBootstrap.java:484)

          at org.glassfish.admin.monitor.MonitoringBootstrap.processManifest(MonitoringBootstrap.java:360)

          at org.glassfish.admin.monitor.MonitoringBootstrap.addProvider(MonitoringBootstrap.java:301)

          at org.glassfish.admin.monitor.MonitoringBootstrap.verifyModule(MonitoringBootstrap.java:245)

          at org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders(MonitoringBootstrap.java:188)

          at org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders(MonitoringBootstrap.java:624)

          at org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct(MonitoringBootstrap.java:176)

          at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)

          at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)

          at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)

          at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)

          at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)

          at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)

          at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:229)

          at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)

          at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)

          at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)

          at org.jboss.arquillian.container.glassfish.embedded_3_1.GlassFishContainer.start(GlassFishContainer.java:145)

          at org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:198)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleContro

      ller.java:163)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleContro

      ller.java:157)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleCon

      troller.java:255)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleC

      ontroller.java:156)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploym

      entContextHandler.java:57)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

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

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

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

          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleContro

      ller.java:77)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleContro

      ller.java:70)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forEachSuiteContainer(ContainerLif

      ecycleController.java:221)

          at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startSuiteContainers(ContainerLife

      cycleController.java:69)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

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

          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

          at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:86)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

          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.createSuiteContext(TestContextHandler.java:60)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          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:90)

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

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

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

          at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:68)

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

          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)

          at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

      09.02.2012 09:02:31 com.sun.enterprise.v3.services.impl.GrizzlyService createNetworkProxy

      INFO: Network listener https-listener on port 0 disabled per domain.xml

      09.02.2012 09:02:31 org.glassfish.ha.store.spi.BackingStoreFactoryRegistry register

      INFO: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in Backin

      gStoreFactoryRegistry

      09.02.2012 09:02:31 com.sun.enterprise.v3.services.impl.GrizzlyService createNetworkProxy

      INFO: Network listener https-listener on port 0 disabled per domain.xml

      09.02.2012 09:02:31 com.sun.enterprise.v3.server.AppServerStartup run

      SCHWERWIEGEND: Startdienst konnte nicht gestartet werden: com.sun.enterprise.naming.GlassFishNamingBuilder

      09.02.2012 09:02:31 com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady

      INFO: Grizzly Framework 1.9.36 started in: 15ms - bound to [0.0.0.0:8181]

      09.02.2012 09:02:31 com.sun.enterprise.v3.server.AppServerStartup run

      INFO: GlassFish Server Open Source Edition 3.1 (java_re-private) Startzeit: Embedded (641ms), Startdienste(483ms), gesam

      t(1'124ms)

      09.02.2012 09:02:31 com.sun.enterprise.v3.server.AppServerStartup run

      SCHWERWIEGEND: v3 wird aufgrund einer Startausnahme heruntergefahren: No free port within range: 8181=com.sun.enterprise

      .v3.services.impl.monitor.MonitorableSelectorHandler@67384a6a

      09.02.2012 09:02:31 com.sun.enterprise.v3.admin.StopServer doExecute

      INFO: Herunterfahren des Servers initiiert

        • 1. Re: Configuration of EJB not clear. crash on startup
          Bartosz Majsak Master

          This is apparently some sort of glassfish issue. Could you please try with following pom structure:

           

           

          {code:xml}<?xml version="1.0" encoding="UTF-8"?>

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

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

            ...

           

            <repositories>

              <repository>

                <id>jboss-public-repository</id>

                <name>JBoss Repository</name>

                <url>http://repository.jboss.org/nexus/content/groups/public</url>

                <releases>

                  <updatePolicy>never</updatePolicy>

                </releases>

                <snapshots>

                  <enabled>false</enabled>

                </snapshots>

              </repository>

            </repositories>

           

            <properties>

               ...

              <version.arquillian_core>1.0.0.CR7</version.arquillian_core>   

            </properties>

           

            <dependencyManagement>

              <dependencies>

                <dependency>

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

                  <artifactId>arquillian-bom</artifactId>

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

                  <type>pom</type>

                  <scope>import</scope>

                </dependency>

              </dependencies>

            </dependencyManagement>

           

            <dependencies>

              ...

              <dependency>

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

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

                <scope>test</scope>

              </dependency>

              ...

            </dependencies>

           

             ...

           

            <profiles>

              <profile>

                <id>arq-glassfish-embedded-3</id>

                <activation>

                  <activeByDefault>true</activeByDefault>

                </activation>

                <dependencies>

                  <dependency>

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

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

                    <version>1.0.0.CR2</version>

                    <scope>test</scope>

                  </dependency>

                  <dependency>

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

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

                    <version>3.1.1</version>

                    <scope>provided</scope>

                  </dependency>       

                </dependencies>

                <build>

                  <testResources>

                    <testResource>

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

                    </testResource>

                    <testResource>

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

                    </testResource>

                  </testResources>

                </build>

              </profile>

            </profiles>

          </project>

          {code}