Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-2155

Glassfish Container fail with "please contact DeployableContainer developer" when use EnterpriseArchive

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: glassfish_1.0.1
    • Fix Version/s: None
    • Component/s: GlassFish Containers
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      mvn clean install -Dit=glassfish-5.0-embedded
      and
      mvn clean install -Dit=glassfish-4.1.2-embedded

      Show
      mvn clean install -Dit=glassfish-5.0-embedded and mvn clean install -Dit=glassfish-4.1.2-embedded

      Description

      Sample here:
      https://github.com/anton-tregubov/javaee-design-patterns hash:65ca3b8

      Problem:
      java.lang.IllegalArgumentException: ArquillianServletRunner not found. Could not determine ContextRoot from ProtocolMetadata, please contact DeployableContainer developer.

      Details:
      Container Configuration

      <properties>
               <glassfish-version>4.1.2</glassfish-version>
               <arquillian-glassfish-container-version>1.0.1</arquillian-glassfish-container-version>
               <arquillian-version>1.1.13.Final</arquillian-version>
              <shrinkwrap-resolver-version>2.2.6</shrinkwrap-resolver-version>
              <shrinkwrap-descriptors-version>2.0.0</shrinkwrap-descriptors-version>
              <shrinkwrap-version>1.2.6</shrinkwrap-version>
              <junit-version>4.12</junit-version>
      </properties>
      
                  <dependencies>
                      <dependency>
                          <groupId>org.jboss.arquillian.junit</groupId>
                          <artifactId>arquillian-junit-container</artifactId>
                          <scope>test</scope>
                      </dependency>
                      <dependency>
                          <groupId>org.jboss.arquillian.container</groupId>
                          <artifactId>arquillian-glassfish-embedded-3.1</artifactId>
                          <scope>test</scope>
                      </dependency>
                      <dependency>
                          <groupId>org.glassfish.main.extras</groupId>
                          <artifactId>glassfish-embedded-all</artifactId>
                          <scope>test</scope>
                      </dependency>
                  </dependencies>
      

      application-1.0.0-SNAPSHOT.ear:

      /META-INF/MANIFEST.MF
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization/application/pom.xml
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization/application/pom.properties
      /META-INF/application.xml
      /lib/
      /lib/note-impl-1.0.0-SNAPSHOT.jar
      /lib/note-api-1.0.0-SNAPSHOT.jar
      /application-web-1.0.0-SNAPSHOT.war
      

      application-web-1.0.0-SNAPSHOT.war

      /META-INF/MANIFEST.MF
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization/application-web/pom.properties
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization/application-web/pom.xml
      /META-INF/arquillian.ArchiveUnderTest
      /WEB-INF/classes/ru/faulab/javaee/design/patterns/sample/project/SampleProjectIT.class
      /WEB-INF/lib/note-web-1.0.0-SNAPSHOT.jar
      /WEB-INF/lib/application-web-1.0.0-SNAPSHOT.jar
      

      application-web-1.0.0-SNAPSHOT.jar

      /META-INF/MANIFEST.MF
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization/application-web/pom.xml
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization/application-web/pom.properties
      /ru/faulab/javaee/design/patterns/sample/project/web/SampleProjectApplication.class
      

      note-web-1.0.0-SNAPSHOT.jar

      /META-INF/MANIFEST.MF
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization.note-module/note-web/pom.properties
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization.note-module/note-web/pom.xml
      /META-INF/INDEX.LIST
      /ru/faulab/javaee/design/patterns/sample/project/note/web/dto/NoteDto.class
      /ru/faulab/javaee/design/patterns/sample/project/note/web/rest/NotesResource.class
      

      note-api-1.0.0-SNAPSHOT.jar

      /META-INF/MANIFEST.MF
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization.note-module/note-api/pom.properties
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization.note-module/note-api/pom.xml
      /META-INF/INDEX.LIST
      /ru/faulab/javaee/design/patterns/sample/project/note/NoteFacade.class
      

      note-impl-1.0.0-SNAPSHOT.jar

      /META-INF/MANIFEST.MF
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization.note-module/note-impl/pom.xml
      /META-INF/maven/ru.faulab.javaee-design-patterns.project-organization.note-module/note-impl/pom.properties
      /META-INF/INDEX.LIST
      /ru/faulab/javaee/design/patterns/sample/project/note/impl/NoteFacadeImpl.class
      

      Maven build fail with:

      ноя 23, 2017 1:22:33 AM org.glassfish.soteria.servlet.SamRegistrationInstaller onStartup
      INFO: Initializing Soteria null for context ''
      ноя 23, 2017 1:22:34 AM com.sun.enterprise.web.WebApplication start
      INFO: Loading application [application-1.0.0-SNAPSHOT#application-web-1.0.0-SNAPSHOT.war] at [/]
      ноя 23, 2017 1:22:34 AM org.glassfish.deployment.admin.DeployCommand execute
      INFO: application-1.0.0-SNAPSHOT was successfully deployed in 5 222 milliseconds.
      ноя 23, 2017 1:22:34 AM org.jboss.arquillian.core.impl.ObserverImpl resolveArguments
      WARNING: Argument 1 for UpdateTestResultBeforeAfter.update is null. It won't be invoked.
      ноя 23, 2017 1:22:34 AM org.jboss.arquillian.core.impl.ObserverImpl resolveArguments
      WARNING: Argument 1 for UpdateTestResultBeforeAfter.update is null. It won't be invoked.
      PlainTextActionReporterSUCCESSNo monitoring data to report.
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 15.087 sec <<< FAILURE! - in ru.faulab.javaee.design.patterns.sample.project.SampleProjectIT
      dummy(ru.faulab.javaee.design.patterns.sample.project.SampleProjectIT)  Time elapsed: 0.03 sec  <<< ERROR!
      java.lang.IllegalArgumentException: ArquillianServletRunner not found. Could not determine ContextRoot from ProtocolMetadata, please contact DeployableContainer developer.
      
      JdbcRuntimeExtension,  getAllSystemRAResourcesAndPools = [GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool]
      

      For Wildfly 11.0 same EAR work correct.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tregubov Антон Трегубов
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: