5 Replies Latest reply on Nov 19, 2016 3:39 PM by Elias Balasis

    WildFly embedded with Spring Security

    Ondřej Fibich Newbie

      Hello,

       

      I am trying to test an example Web App that uses Spring Security 3.2.5 using Arquillian 1.1.5 and embedded WildFly 8.1.0.

      I was already able to do it with managed WildFly 8.1.0 (project) but if I switch to embedded I get following exception:

      ERROR [org.jboss.msc.service.fail] MSC000001: Failed to start service jboss.deployment.unit."test.war".INSTALL:
      org.jboss.msc.service.StartException in service jboss.deployment.unit."test.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "test.war"
           at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final] 
           at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final] 
           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_25]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_25] 
           at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_25] 
      Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer:) Provider org.springframework.web.SpringServletContainerInitializer not found 
           at java.util.ServiceLoader.fail(ServiceLoader.java:239) [rt.jar:1.8.0_25] 
           at java.util.ServiceLoader.access$300(ServiceLoader.java:185) [rt.jar:1.8.0_25]
           at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372) [rt.jar:1.8.0_25] 
           at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) [rt.jar:1.8.0_25] 
           at java.util.ServiceLoader$1.next(ServiceLoader.java:480) [rt.jar:1.8.0_25]
           at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.deploy(ServletContainerInitializerDeploymentProcessor.java:112) 
           at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final] ... 5 more
      
      

       

      My POM is:

      <?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>com.kopaid.example</groupId>
          <artifactId>wildfly-arquillian-spring-security</artifactId>
          <version>1.0</version>
          <packaging>war</packaging>
      
      
          <name>Wildfly Spring Security Arquillian example</name>
          <description>Spring Security Arquillian test example on WildFly.</description>
      
      
          <properties>
              <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
              <spring.version>3.2.5.RELEASE</spring.version>
              <wildfly.version>8.1.0.Final</wildfly.version>
          </properties>
      
      
          <dependencyManagement>
              <dependencies>
                  <dependency>
                      <groupId>org.jboss.arquillian</groupId>
                      <artifactId>arquillian-bom</artifactId>
                      <version>1.1.5.Final</version>
                      <scope>import</scope>
                      <type>pom</type>
                  </dependency>
              </dependencies>
          </dependencyManagement>
      
      
          <dependencies>
              <dependency>
                  <groupId>javax</groupId>
                  <artifactId>javaee-web-api</artifactId>
                  <version>7.0</version>
                  <scope>provided</scope>
              </dependency>
              <!-- Spring Security -->
              <dependency>
                  <groupId>org.springframework.security</groupId>
                  <artifactId>spring-security-web</artifactId>
                  <version>${spring.version}</version>
              </dependency>
              <dependency>
                  <groupId>org.springframework.security</groupId>
                  <artifactId>spring-security-config</artifactId>
                  <version>${spring.version}</version>
              </dependency>
              <!-- JUnit for testing -->
              <dependency>
                  <groupId>junit</groupId>
                  <artifactId>junit</artifactId>
                  <version>4.10</version>
                  <scope>test</scope>
              </dependency>
              <!-- HTTP client for testing -->
              <dependency>
                  <groupId>com.mashape.unirest</groupId>
                  <artifactId>unirest-java</artifactId>
                  <version>1.3.26</version>
                  <scope>test</scope>
              </dependency>
              <!-- Arquillian -->
              <dependency>
                  <groupId>org.jboss.arquillian.junit</groupId>
                  <artifactId>arquillian-junit-container</artifactId>
                  <scope>test</scope>
              </dependency>
              <dependency>
                  <groupId>org.wildfly</groupId>
                  <artifactId>wildfly-arquillian-container-embedded</artifactId>
                  <version>${wildfly.version}</version>
                  <scope>test</scope>
              </dependency>
              <dependency>
                  <groupId>org.wildfly</groupId>
                  <artifactId>wildfly-embedded</artifactId>
                  <version>${wildfly.version}</version>
                  <scope>test</scope>
              </dependency>
              <!-- Arquillian Spring -->
              <dependency>
                  <groupId>org.jboss.arquillian.extension</groupId>
                  <artifactId>arquillian-service-integration-spring-inject</artifactId>
                  <version>1.0.0.Final-SNAPSHOT</version>
                  <scope>test</scope>
              </dependency>
              <dependency>
                  <groupId>org.jboss.arquillian.extension</groupId>
                  <artifactId>arquillian-service-deployer-spring-3</artifactId>
                  <version>1.0.0.Final-SNAPSHOT</version>
                  <scope>test</scope>
              </dependency>
          </dependencies>
      
      
          <build>
              <testResources>
                  <testResource>
                      <directory>src/test/resources</directory>
                      <filtering>true</filtering>
                  </testResource>
              </testResources>
              <plugins>
                  <!-- Compile -->
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-compiler-plugin</artifactId>
                      <version>3.1</version>
                      <configuration>
                          <source>1.7</source>
                          <target>1.7</target>
                          <compilerArguments>
                              <endorseddirs>${endorsed.dir}</endorseddirs>
                          </compilerArguments>
                      </configuration>
                  </plugin>
                  <!-- War packaging -->
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-war-plugin</artifactId>
                      <version>2.3</version>
                      <configuration>
                          <failOnMissingWebXml>false</failOnMissingWebXml>
                      </configuration>
                  </plugin>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-dependency-plugin</artifactId>
                      <version>2.8</version>
                      <executions>
                          <execution>
                              <phase>validate</phase>
                              <goals>
                                  <goal>copy</goal>
                              </goals>
                              <configuration>
                                  <outputDirectory>${endorsed.dir}</outputDirectory>
                                  <silent>true</silent>
                                  <artifactItems>
                                      <artifactItem>
                                          <groupId>javax</groupId>
                                          <artifactId>javaee-endorsed-api</artifactId>
                                          <version>7.0</version>
                                          <type>jar</type>
                                      </artifactItem>
                                  </artifactItems>
                              </configuration>
                          </execution>
                          <!-- Download WildFly AS for tests -->
                          <execution>
                              <id>wildfly-test-unpack</id>
                              <phase>generate-test-resources</phase>
                              <goals>
                                  <goal>unpack</goal>
                              </goals>
                              <configuration>
                                  <artifactItems>
                                      <artifactItem>
                                          <groupId>org.wildfly</groupId>
                                          <artifactId>wildfly-dist</artifactId>
                                          <version>${wildfly.version}</version>
                                          <type>zip</type>
                                          <overWrite>false</overWrite>
                                          <outputDirectory>target</outputDirectory>
                                      </artifactItem>
                                  </artifactItems>
                              </configuration>
                          </execution>
                      </executions>
                  </plugin>
                  <!-- Tests settings -->
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-surefire-plugin</artifactId>
                      <version>2.18</version>
                      <configuration>
                          <systemPropertyVariables>
                              <!-- required for WildFly embedded -->
                              <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
                          </systemPropertyVariables>
                      </configuration>
                  </plugin>
              </plugins>
          </build>
      
      
          <repositories>
              <repository>
                  <id>JBoss repository</id>
                  <url>http://repository.jboss.org/nexus/content/groups/public</url>
              </repository>
          </repositories>
      
      
      </project>
      
      

       

      Am I doing something wrong or embedded WildFly cannot be used for Spring testing?

       

      The whole example project is available: dzolo/wildfly-arquillian-spring-security at wildfly-embedded · GitHub

      The full output is available: https://travis-ci.org/dzolo/wildfly-arquillian-spring-security/jobs/43888188

       

      Thanks in advance.

      Ondrej

        • 1. Re: WildFly embedded with Spring Security
          sacky san Newbie

          I am facing same problem.

          I face following error trying to run my basic test case with spring + JPA + JSF + Primefaces project

          Could you please help?

           

          16:52:51,394 INFO  [org.springframework.data.jpa.repository.cdi.JpaRepositoryExtension] (MSC service thread 1-11) Activating CDI extension for Spring Data JPA repositories.
            ERROR
          [org.jboss.msc.service.fail] MSC000001: Failed to start service jboss.deployment.unit."787b2f47-cedc-492a-bb96-e58a02b72772.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."787b2f47-cedc-492a-bb96-e58a02b72772.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "787b2f47-cedc-492a-bb96-e58a02b72772.war"
            at org
          .jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
            at org
          .jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
            at org
          .jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
            at java
          .util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_45]
            at java
          .util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_45]
            at java
          .lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45]
            
          Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not found
            at java
          .util.ServiceLoader.fail(ServiceLoader.java:239) [rt.jar:1.8.0_45]
            at java
          .util.ServiceLoader.access$300(ServiceLoader.java:185) [rt.jar:1.8.0_45]
            at java
          .util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372) [rt.jar:1.8.0_45]
            at java
          .util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) [rt.jar:1.8.0_45]
            at java
          .util.ServiceLoader$1.next(ServiceLoader.java:480) [rt.jar:1.8.0_45]
            at org
          .wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.deploy(ServletContainerInitializerDeploymentProcessor.java:112)
            at org
          .jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
            
          ... 5 more

            ERROR
          [org.jboss.as.controller.management-operation] JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "787b2f47-cedc-492a-bb96-e58a02b72772.war")]) - failure description: {
            
          "JBAS014671: Failed services" => {"jboss.deployment.unit.\"787b2f47-cedc-492a-bb96-e58a02b72772.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"787b2f47-cedc-492a-bb96-e58a02b72772.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"787b2f47-cedc-492a-bb96-e58a02b72772.war\"
            Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not found"
          },
            
          "JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"787b2f47-cedc-492a-bb96-e58a02b72772.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"787b2f47-cedc-492a-bb96-e58a02b72772.war\".beanmanager]"]
            
          }
            ERROR
          [org.jboss.as.server] JBAS015870: Deploy of deployment "787b2f47-cedc-492a-bb96-e58a02b72772.war" was rolled back with the following failure message:
            
          {
            
          "JBAS014671: Failed services" => {"jboss.deployment.unit.\"787b2f47-cedc-492a-bb96-e58a02b72772.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"787b2f47-cedc-492a-bb96-e58a02b72772.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"787b2f47-cedc-492a-bb96-e58a02b72772.war\"
            Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not found"
          },
            
          "JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"787b2f47-cedc-492a-bb96-e58a02b72772.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"787b2f47-cedc-492a-bb96-e58a02b72772.war\".beanmanager]"]
            
          }
            INFO 
          [org.jboss.as.connector.subsystems.datasources] JBAS010409: Unbound data source [java:/jdbc/cdis-db]
            INFO 
          [org.jboss.as.server.deployment] JBAS015877: Stopped deployment 787b2f47-cedc-492a-bb96-e58a02b72772.war (runtime-name: 787b2f47-cedc-492a-bb96-e58a02b72772.war) in 370ms
            INFO 
          [org.jboss.as.controller] JBAS014774: Service status report
            JBAS014775
          :   New missing/unsatisfied dependencies:
            service jboss
          .deployment.unit."787b2f47-cedc-492a-bb96-e58a02b72772.war".beanmanager (missing) dependents: [service jboss.deployment.unit."787b2f47-cedc-492a-bb96-e58a02b72772.war".weld.weldClassIntrospector]
            JBAS014777
          :   Services which failed to start:  service jboss.deployment.unit."787b2f47-cedc-492a-bb96-e58a02b72772.war".INSTALL

           

           

           

          My deployment is as follows and datasource is defined well. pom-test.xml contains the dependencies required for my project including sprint-test, spring-core and sprint-data-jpa etc.

           

          @Deployment
          public static Archive<?> createTestArchive() {
            
          Archive jar = ShrinkWrap.create(WebArchive.class)
            
          .addClasses(Greeter.class, PhraseBuilder.class)
            
          .addAsLibraries(
            
          Maven.resolver().loadPomFromClassLoaderResource("META-INF/pom-test.xml")
            
          .importRuntimeDependencies().resolve().withTransitivity().asFile())
            
          .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
            
          .addAsWebInfResource("META-INF/jboss-ds.xml")
            
          // Deploy our test datasource
            
          ;
            
          System.out.println(jar.toString(true));
            
          return jar;

          }

          • 2. Re: WildFly embedded with Spring Security
            Matous Jobanek Novice

            Hi,

            try to use WildFly 9.0.1.Final and the wildfly-arquillian-container adapter version 1.0.1.Final:

             

            <dependency>
                <groupId>org.wildfly.arquillian</groupId>
                <artifactId>wildfly-arquillian-container-embedded</artifactId>
                <version>1.0.1.Final</version>
                <scope>test</scope>
            </dependency>
            
            
            • 3. Re: WildFly embedded with Spring Security
              Slavomir Kocka Newbie

              Hi,

              I've similar issue (wildfly 9.0.2):

              17:47:28,771 ERROR [org.jboss.msc.service.fail] MSC000001: Failed to start service jboss.deployment.subunit."97a9ad1d-a73f-4983-8769-5dd2e4745896.ear"."test.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."97a9ad1d-a73f-4983-8769-5dd2e4745896.ear"."test.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of subdeployment "test.war" of deployment "97a9ad1d-a73f-4983-8769-5dd2e4745896.ear"

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163) [wildfly-server-1.0.1.Final.jar:1.0.1.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.6.Final.jar:1.2.6.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.6.Final.jar:1.2.6.Final]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_77]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_77]

                at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_77]

              Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not found

                at java.util.ServiceLoader.fail(ServiceLoader.java:239) [rt.jar:1.8.0_77]

                at java.util.ServiceLoader.access$300(ServiceLoader.java:185) [rt.jar:1.8.0_77]

                at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372) [rt.jar:1.8.0_77]

                at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) [rt.jar:1.8.0_77]

                at java.util.ServiceLoader$1.next(ServiceLoader.java:480) [rt.jar:1.8.0_77]

                at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.deploy(ServletContainerInitializerDeploymentProcessor.java:110)

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156) [wildfly-server-1.0.1.Final.jar:1.0.1.Final]

                ... 5 more

               

              My dependency tree is:

              [INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ pm1-valuation ---

              [INFO] com.example.pm1j:pm1-valuation:jar:3-SNAPSHOT

              [INFO] +- com.example:javaee6-api:jar:1.0:provided

              [INFO] +- org.hibernate:hibernate-entitymanager:jar:4.2.19.Final:provided

              [INFO] +- com.example.pm1j:pm1j-services-api:jar:3-SNAPSHOT:test

              [INFO] |  \- com.example.commons:pm1e-commons:jar:3-SNAPSHOT:test

              [INFO] +- org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.1.11.Final:test

              [INFO] |  +- org.jboss.arquillian.container:arquillian-container-spi:jar:1.1.11.Final:test

              [INFO] |  |  +- org.jboss.arquillian.core:arquillian-core-spi:jar:1.1.11.Final:test

              [INFO] |  |  +- org.jboss.arquillian.config:arquillian-config-api:jar:1.1.11.Final:test

              [INFO] |  |  +- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.1.11.Final:test

              [INFO] |  |  +- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.2.3:test

              [INFO] |  |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-base:jar:2.0.0-alpha-8:test

              [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.1.11.Final:test

              [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.1.11.Final:test

              [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.1.11.Final:test

              [INFO] |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:2.0.0-alpha-8:test

              [INFO] +- org.wildfly.arquillian:wildfly-arquillian-container-embedded:jar:1.1.0.Final:test

              [INFO] |  +- org.wildfly.arquillian:wildfly-arquillian-common:jar:1.1.0.Final:test

              [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-cdi:jar:1.1.10.Final:test

              [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-ejb:jar:1.1.10.Final:test

              [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-initialcontext:jar:1.1.10.Final:test

              [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-resource:jar:1.1.10.Final:test

              [INFO] |  |  +- org.wildfly.arquillian:wildfly-arquillian-testenricher-msc:jar:1.1.0.Final:test

              [INFO] |  |  +- org.wildfly.core:wildfly-controller-client:jar:1.0.1.Final:test

              [INFO] |  |  |  \- org.jboss:jboss-dmr:jar:1.3.0.Final:test

              [INFO] |  |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl-base:jar:2.0.0-alpha-8:test

              [INFO] |  +- org.wildfly.core:wildfly-embedded:jar:1.0.1.Final:test

              [INFO] |  |  +- org.wildfly.core:wildfly-server:jar:1.0.1.Final:test

              [INFO] |  |  |  +- org.wildfly.core:wildfly-controller:jar:1.0.1.Final:test

              [INFO] |  |  |  |  +- org.wildfly.core:wildfly-core-security:jar:1.0.1.Final:test

              [INFO] |  |  |  |  |  \- org.wildfly.core:wildfly-core-security-api:jar:1.0.1.Final:test

              [INFO] |  |  |  |  \- org.jboss:staxmapper:jar:1.2.0.Final:test

              [INFO] |  |  |  +- org.wildfly.core:wildfly-domain-http-interface:jar:1.0.1.Final:test

              [INFO] |  |  |  |  \- org.wildfly.core:wildfly-domain-management:jar:1.0.1.Final:test

              [INFO] |  |  |  |     +- org.jboss:jboss-common-core:jar:2.5.0.Final:test

              [INFO] |  |  |  |     \- org.picketbox:picketbox:jar:4.9.2.Final:test

              [INFO] |  |  |  +- org.wildfly.core:wildfly-deployment-repository:jar:1.0.1.Final:test

              [INFO] |  |  |  +- org.wildfly.core:wildfly-platform-mbean:jar:1.0.1.Final:test

              [INFO] |  |  |  +- org.wildfly.core:wildfly-process-controller:jar:1.0.1.Final:test

              [INFO] |  |  |  +- org.wildfly.core:wildfly-remoting:jar:1.0.1.Final:test

              [INFO] |  |  |  |  \- org.wildfly.core:wildfly-io:jar:1.0.1.Final:test

              [INFO] |  |  |  +- org.wildfly.core:wildfly-network:jar:1.0.1.Final:test

              [INFO] |  |  |  +- org.wildfly.core:wildfly-self-contained:jar:1.0.1.Final:test

              [INFO] |  |  |  +- org.wildfly.core:wildfly-version:jar:1.0.1.Final:test

              [INFO] |  |  |  +- org.jboss.invocation:jboss-invocation:jar:1.4.1.Final:test

              [INFO] |  |  |  +- org.jboss.logmanager:jboss-logmanager:jar:2.0.0.Final:test

              [INFO] |  |  |  +- org.jboss.marshalling:jboss-marshalling:jar:1.4.10.Final:test

              [INFO] |  |  |  +- org.jboss.msc:jboss-msc:jar:1.2.6.Final:test

              [INFO] |  |  |  +- org.jboss:jboss-vfs:jar:3.2.9.Final:test

              [INFO] |  |  |  \- io.undertow:undertow-core:jar:1.2.9.Final:test

              [INFO] |  |  +- org.wildfly.security:wildfly-security-manager:jar:1.1.2.Final:test

              [INFO] |  |  +- org.jboss:jandex:jar:1.2.2.Final:test

              [INFO] |  |  +- org.jboss.modules:jboss-modules:jar:1.4.3.Final:test

              [INFO] |  |  \- org.jboss.stdio:jboss-stdio:jar:1.0.2.GA:test

              [INFO] |  +- org.wildfly.core:wildfly-protocol:jar:1.0.1.Final:test

              [INFO] |  |  +- org.jboss.remoting:jboss-remoting:jar:4.0.9.Final:test

              [INFO] |  |  +- org.jboss.sasl:jboss-sasl:jar:1.0.5.Final:test

              [INFO] |  |  +- org.jboss.threads:jboss-threads:jar:2.2.0.Final:test

              [INFO] |  |  +- org.jboss.xnio:xnio-api:jar:3.3.1.Final:test

              [INFO] |  |  \- org.jboss.xnio:xnio-nio:jar:3.3.1.Final:test

              [INFO] |  +- org.wildfly.arquillian:wildfly-arquillian-protocol-jmx:jar:1.1.0.Final:test

              [INFO] |  |  +- org.jboss.arquillian.protocol:arquillian-protocol-jmx:jar:1.1.10.Final:test

              [INFO] |  |  \- org.wildfly.core:wildfly-jmx:jar:1.0.1.Final:test

              [INFO] |  |     +- org.jboss.remotingjmx:remoting-jmx:jar:2.0.1.Final:test

              [INFO] |  |     \- org.jboss.marshalling:jboss-marshalling-river:jar:1.4.10.Final:test

              [INFO] |  \- org.jboss.arquillian.core:arquillian-core-api:jar:1.1.10.Final:test

              [INFO] +- junit:junit:jar:4.12:test

              [INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test

              [INFO] +- org.jboss.arquillian.junit:arquillian-junit-container:jar:1.1.11.Final:test

              [INFO] |  +- org.jboss.arquillian.junit:arquillian-junit-core:jar:1.1.11.Final:test

              [INFO] |  +- org.jboss.arquillian.test:arquillian-test-api:jar:1.1.11.Final:test

              [INFO] |  +- org.jboss.arquillian.test:arquillian-test-spi:jar:1.1.11.Final:test

              [INFO] |  +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.1.11.Final:test

              [INFO] |  +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.1.11.Final:test

              [INFO] |  +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.1.11.Final:test

              [INFO] |  \- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.2.3:test

              [INFO] |     \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.2.3:test

              [INFO] +- com.example.pm1j:pm1j-war:jar:classes:3-SNAPSHOT:test

              [INFO] |  +- com.example.pm1j:pm1j-war-shared-deps:pom:3-SNAPSHOT:test

              [INFO] |  |  +- com.example.commons:pm1e-commons-ui:jar:3-SNAPSHOT:test

              [INFO] |  |  |  +- com.example.ui:vaadin-widgets:jar:2-SNAPSHOT:test

              [INFO] |  |  |  |  +- com.vaadin:vaadin-server:jar:7.6.8:test

              [INFO] |  |  |  |  |  +- com.vaadin:vaadin-sass-compiler:jar:0.9.13:test

              [INFO] |  |  |  |  |  |  +- org.w3c.css:sac:jar:1.3:test

              [INFO] |  |  |  |  |  |  +- com.vaadin.external.flute:flute:jar:1.3.0.gg2:test

              [INFO] |  |  |  |  |  |  \- com.yahoo.platform.yui:yuicompressor:jar:2.4.8:test

              [INFO] |  |  |  |  |  |     \- rhino:js:jar:1.7R2:test

              [INFO] |  |  |  |  |  \- com.vaadin:vaadin-shared:jar:7.6.8:test

              [INFO] |  |  |  |  |     +- com.vaadin.external.streamhtmlparser:streamhtmlparser-jsilver:jar:0.0.10.vaadin1:test

              [INFO] |  |  |  |  |     \- com.vaadin.external.google:guava:jar:16.0.1.vaadin1:test

              [INFO] |  |  |  |  +- com.vaadin:vaadin-themes:jar:7.6.8:test

              [INFO] |  |  |  |  +- com.vaadin.addon:vaadin-charts:jar:3.1.0:test

              [INFO] |  |  |  |  |  \- com.vaadin.addon:vaadin-charts-model:jar:3.1.0:test

              [INFO] |  |  |  |  +- com.vaadin.addon:vaadin-context-menu:jar:0.7.2:test

              [INFO] |  |  |  |  +- org.vaadin.addons:popupbutton:jar:2.6.0:test

              [INFO] |  |  |  |  +- org.vaadin.addons:filteringtable:jar:0.9.14.v7:test

              [INFO] |  |  |  |  +- org.vaadin.addons:graph-explorer:jar:0.7.2:test

              [INFO] |  |  |  |  |  +- org.vaadin.addons:gwt-graphics:jar:1.0.0:test

              [INFO] |  |  |  |  |  +- net.sf.jung:jung-graph-impl:jar:2.1:test

              [INFO] |  |  |  |  |  |  \- net.sf.jung:jung-api:jar:2.1:test

              [INFO] |  |  |  |  |  \- net.sf.jung:jung-algorithms:jar:2.1:test

              [INFO] |  |  |  |  \- com.example2.bpm:bpm-vaadin-extensions:jar:2.29:test

              [INFO] |  |  |  +- org.vaadin.addons.lazyquerycontainer:vaadin-lazyquerycontainer:jar:7.6.1.3:test

              [INFO] |  |  |  +- org.vaadin.addon:tableexport-for-vaadin:jar:1.5.1.5:test

              [INFO] |  |  |  \- org.vaadin.addons:tokenfield:jar:7.0.1:test

              [INFO] |  |  +- com.example.pm1j:pm1j-ui:jar:3-SNAPSHOT:test

              [INFO] |  |  |  \- com.example2.bpm.human-processes:bpm-human-vaadin:jar:3.1.1015:test

              [INFO] |  |  +- com.example.pm1j:pm1-auth-rsa:jar:1.7:test

              [INFO] |  |  |  \- com.rsa:authapi:jar:1.0:test

              [INFO] |  |  +- com.example.pm1j:pm1-auth-axsionics:jar:1.7:test

              [INFO] |  |  |  \- com.example.interfaces:axsionics:jar:1.4:test

              [INFO] |  |  +- com.example.pm1j:pm1-auth-vasco:jar:1.7:test

              [INFO] |  |  |  \- com.vasco:aal2wrap:jar:3.14.0:test

              [INFO] |  |  +- com.example.pm1j:pm1-auth-calvin:jar:1.7:test

              [INFO] |  |  +- com.example.pm1j:pm1-auth-cookie:jar:1.7:test

              [INFO] |  |  +- commons-fileupload:commons-fileupload:jar:1.3.2:test

              [INFO] |  |  +- commons-validator:commons-validator:jar:1.5.0:test

              [INFO] |  |  +- com.jcraft:jsch:jar:0.1.53:test

              [INFO] |  |  +- org.togglz:togglz-console:jar:2.2.0.Final:test

              [INFO] |  |  |  \- org.togglz:togglz-servlet:jar:2.2.0.Final:test

              [INFO] |  |  \- com.example2.bpm.webconsole:bpm-webconsole-vaadin:jar:3.1.1015:test

              [INFO] |  |     \- org.vaadin.addons:wizards-for-vaadin:jar:1.1.0:test

              [INFO] |  +- com.example.pm1j:ips-web:jar:3-SNAPSHOT:test

              [INFO] |  |  +- org.apache.wicket:wicket-core:jar:1.5.15:test

              [INFO] |  |  |  +- org.apache.wicket:wicket-util:jar:1.5.15:test

              [INFO] |  |  |  \- org.apache.wicket:wicket-request:jar:1.5.15:test

              [INFO] |  |  +- org.apache.wicket:wicket-extensions:jar:1.5.15:test

              [INFO] |  |  \- org.apache.wicket:wicket-datetime:jar:1.5.15:test

              [INFO] |  +- org.mnode.ical4j:ical4j:jar:1.0.7.exp:test

              [INFO] |  +- org.directwebremoting:dwr:jar:3.0.1-RELEASE:test

              [INFO] |  +- org.apache.struts:struts-core:jar:1.3.11.1.exp:test

              [INFO] |  |  +- commons-chain:commons-chain:jar:1.2:test

              [INFO] |  |  \- oro:oro:jar:2.0.8:test

              [INFO] |  +- org.apache.struts:struts-taglib:jar:1.3.11.1.exp:test

              [INFO] |  \- org.apache.struts:struts-extras:jar:1.3.11.1.exp:test

              [INFO] +- com.example.commons:pm1e-commons:jar:tests:3-SNAPSHOT:test

              [INFO] +- com.example.pm1j:pm1j-services-api:jar:tests:3-SNAPSHOT:test

              [INFO] +- com.example.pm1j:pm1j-services:jar:3-SNAPSHOT:test

              [INFO] +- com.example2.bpm.engine:bpm-engine-exec:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.engine:bpm-engine-generator:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.human-processes:bpm-human-exec:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.human-processes:bpm-human-exp:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.org-structure:bpm-os-exec:jar:3.1.1015:test

              [INFO] |  \- com.example2.bpm.org-structure:com.example2.bpm.modeler.org:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.tools:bpm-tools-components:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.tools:bpm-tools-debugger-client:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.tools:bpm-tools-debugger-server:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.monitoring:bpm-monitoring-client:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.monitoring:bpm-monitoring-exec:jar:3.1.1015:test

              [INFO] |  \- com.example2.bpm.modeler:com.example2.bpm.modeler.monitoring:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.common:bpm-common-server:jar:3.1.1015:compile

              [INFO] +- com.example2.bpm.common:bpm-common:jar:3.1.1015:compile

              [INFO] +- com.example2.bpm.common:bpm-common-client:jar:3.1.1015:compile

              [INFO] +- org.mockito:mockito-all:jar:1.9.5:test

              [INFO] +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:test

              [INFO] +- org.hibernate:hibernate-core:jar:4.2.19.Final:test

              [INFO] |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.1.Final:test

              [INFO] |  \- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:test

              [INFO] +- antlr:antlr:jar:2.7.7:test

              [INFO] +- dom4j:dom4j:jar:1.6.1:test

              [INFO] |  \- xml-apis:xml-apis:jar:1.0.b2:test

              [INFO] +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.2.Final:test

              [INFO] +- org.hibernate:hibernate-ehcache:jar:4.2.19.Final:test

              [INFO] +- com.example2.bpm.lang:bpm-lang-core:jar:3.1.1015:test

              [INFO] +- org.antlr:antlr-runtime:jar:3.5.2:test

              [INFO] +- com.example2.bpm.engine:bpm-engine-model:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.engine:bpm-engine-client:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.lang:bpm-lang-query:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.modeler:com.example2.bpm.modeler.model:jar:3.1.1015:test

              [INFO] +- com.example2.org.eclipse.core:org.eclipse.core.runtime:jar:3.10.0-v20140318-2214:test

              [INFO] +- com.example2.org.eclipse.osgi:org.eclipse.osgi:jar:3.10.2-v20150203-1939:test

              [INFO] +- com.example2.org.eclipse.equinox:org.eclipse.equinox.common:jar:3.6.200-v20130402-1505:test

              [INFO] +- com.example2.org.eclipse.core:org.eclipse.core.jobs:jar:3.6.1-v20141014-1248:test

              [INFO] +- com.example2.org.eclipse.equinox:org.eclipse.equinox.registry:jar:3.5.400-v20140428-1507:test

              [INFO] +- com.example2.org.eclipse.equinox:org.eclipse.equinox.preferences:jar:3.5.200-v20140224-1527:test

              [INFO] +- com.example2.org.eclipse.core:org.eclipse.core.contenttype:jar:3.4.200-v20140207-1251:test

              [INFO] +- com.example2.org.eclipse.equinox:org.eclipse.equinox.app:jar:1.3.100-v20130327-1442:test

              [INFO] +- com.example2.org.eclipse.emf:org.eclipse.emf.ecore:jar:2.10.2-v20150123-0348:test

              [INFO] +- com.example2.org.eclipse.emf:org.eclipse.emf.common:jar:2.10.1-v20150123-0348:test

              [INFO] +- com.example2.org.eclipse.emf:org.eclipse.emf.ecore.xmi:jar:2.10.2-v20150123-0348:test

              [INFO] +- com.example2.bpm.engine:bpm-engine-exp:jar:3.1.1015:test

              [INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.1:test

              [INFO] |  \- commons-logging:commons-logging:jar:1.2:test

              [INFO] +- org.apache.httpcomponents:httpcore:jar:4.4.3:test

              [INFO] +- commons-codec:commons-codec:jar:1.9:test

              [INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.5.2:test

              [INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.5.0:test

              [INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.5.1:test

              [INFO] +- com.example2.bpm.org-structure:bpm-os-client:jar:3.1.1015:test

              [INFO] +- com.example2.bpm.human-processes:bpm-human-client:jar:3.1.1015:test

              [INFO] +- com.example.commons:webservices-commons:jar:2.0:test

              [INFO] +- com.example.interfaces:consors:jar:1.1:test

              [INFO] +- com.example.licenser:licenser-xml:jar:1.8:test

              [INFO] +- commons-io:commons-io:jar:1.4:test

              [INFO] +- joda-time:joda-time:jar:2.3:test

              [INFO] +- net.sf.trove4j:trove4j:jar:3.0.3:test

              [INFO] +- com.example.riskcalc:riskcalc:jar:0.1.5:test

              [INFO] +- net.objectlab.kit:datecalc-jdk:jar:1.2.0:test

              [INFO] +- net.objectlab.kit:datecalc-common:jar:1.2.0:test

              [INFO] +- org.apache.commons:commons-math3:jar:3.6:test

              [INFO] +- org.togglz:togglz-core:jar:2.2.0.Final:test

              [INFO] +- org.togglz:togglz-slf4j:jar:2.2.0.Final:test

              [INFO] +- com.example.pm1j:pm1j-jar:jar:3-SNAPSHOT:test

              [INFO] +- com.example.interfaces:cgix:jar:1.4:test

              [INFO] +- com.example.interfaces:ptci:jar:1.5:test

              [INFO] +- com.example.pm1j:example-client:jar:1.8:test

              [INFO] +- com.example.pm1j:reports:jar:2.1:test

              [INFO] +- com.example.reportmanager:reportmanager-webservices-api:jar:1.2:test

              [INFO] +- com.example.spi:pm1-spi:jar:1.1:test

              [INFO] +- com.lowagie:itext:jar:2.1.7.js4.exp1:test

              [INFO] +- net.sf.jasperreports:jasperreports:jar:6.2.0:test

              [INFO] +- commons-beanutils:commons-beanutils:jar:1.9.2:test

              [INFO] +- commons-collections:commons-collections:jar:3.2.2:test

              [INFO] +- commons-digester:commons-digester:jar:2.1:test

              [INFO] +- org.jfree:jcommon:jar:1.0.23:test

              [INFO] +- org.codehaus.castor:castor-xml:jar:1.3.3:test

              [INFO] |  +- javax.inject:javax.inject:jar:1:test

              [INFO] |  +- stax:stax:jar:1.2.0:test

              [INFO] |  \- javax.xml.stream:stax-api:jar:1.0-2:test

              [INFO] +- org.codehaus.castor:castor-core:jar:1.3.3:test

              [INFO] +- org.springframework:spring-context:jar:4.1.7.RELEASE:test

              [INFO] +- org.springframework:spring-aop:jar:4.1.7.RELEASE:test

              [INFO] +- aopalliance:aopalliance:jar:1.0:test

              [INFO] +- org.springframework:spring-expression:jar:4.1.7.RELEASE:test

              [INFO] +- org.jfree:jfreechart:jar:1.0.19:test

              [INFO] +- jaxen:jaxen:jar:1.1.4:test

              [INFO] +- org.slf4j:slf4j-api:jar:1.7.7:test

              [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.7:test

              [INFO] +- log4j:log4j:jar:1.2.17:test

              [INFO] +- com.example.pm1j:pm1j-crypto:jar:3-SNAPSHOT:test

              [INFO] +- org.apache.poi:poi-ooxml:jar:3.14:test

              [INFO] +- org.apache.poi:poi:jar:3.14:test

              [INFO] +- org.apache.poi:poi-ooxml-schemas:jar:3.14:test

              [INFO] +- org.apache.xmlbeans:xmlbeans:jar:2.6.0:test

              [INFO] |  \- stax:stax-api:jar:1.0.1:test

              [INFO] +- com.github.virtuald:curvesapi:jar:1.03:test

              [INFO] +- com.example.interfaces:orion-web-service-client:jar:0.7:test

              [INFO] +- com.example.interfaces:cosign-web-service-client:jar:1.4:test

              [INFO] +- com.example.interfaces:cssuit-webservice-client:jar:0-SNAPSHOT:test

              [INFO] |  \- com.google.code.gson:gson:jar:2.7:test

              [INFO] +- com.example.interfaces:ubs-idms-connector:jar:1.0:test

              [INFO] +- com.ubs.ifop:idmsserver:jar:1.0:test

              [INFO] +- com.example.interfaces:ubs-iiz-web-service-client:jar:1.0:test

              [INFO] +- com.example.pm1j:pm1-auth-core:jar:1.7:test

              [INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.7:test

              [INFO] +- org.springframework:spring-beans:jar:4.1.7.RELEASE:test

              [INFO] +- org.springframework:spring-core:jar:4.1.7.RELEASE:test

              [INFO] +- org.javassist:javassist:jar:3.18.2-GA:test

              [INFO] +- commons-lang:commons-lang:jar:2.6:test

              [INFO] +- com.google.guava:guava:jar:17.0:test

              [INFO] +- net.sf.ehcache:ehcache-core:jar:2.6.0:test

              [INFO] +- org.hibernate:hibernate-envers:jar:4.2.19.Final:test

              [INFO] +- eu.medsea.mimeutil:mime-util:jar:2.1:test

              [INFO] +- org.springframework:spring-web:jar:4.1.7.RELEASE:test

              [INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:2.2.0:test

              [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:2.2.0:test

              [INFO] |  |  \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:2.2.0:test

              [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven:jar:2.2.0:test

              [INFO] |  |  \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:jar:2.2.0:test

              [INFO] |  +- org.eclipse.aether:aether-api:jar:1.0.0.v20140518:test

              [INFO] |  +- org.eclipse.aether:aether-impl:jar:1.0.0.v20140518:test

              [INFO] |  +- org.eclipse.aether:aether-spi:jar:1.0.0.v20140518:test

              [INFO] |  +- org.eclipse.aether:aether-util:jar:1.0.0.v20140518:test

              [INFO] |  +- org.eclipse.aether:aether-connector-basic:jar:1.0.0.v20140518:test

              [INFO] |  +- org.eclipse.aether:aether-transport-wagon:jar:1.0.0.v20140518:test

              [INFO] |  +- org.apache.maven:maven-aether-provider:jar:3.2.5:test

              [INFO] |  +- org.apache.maven:maven-model:jar:3.2.5:test

              [INFO] |  +- org.apache.maven:maven-model-builder:jar:3.2.5:test

              [INFO] |  |  \- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:test

              [INFO] |  +- org.apache.maven:maven-repository-metadata:jar:3.2.5:test

              [INFO] |  +- org.apache.maven:maven-settings:jar:3.2.5:test

              [INFO] |  +- org.apache.maven:maven-settings-builder:jar:3.2.5:test

              [INFO] |  +- org.codehaus.plexus:plexus-interpolation:jar:1.21:test

              [INFO] |  +- org.codehaus.plexus:plexus-utils:jar:3.0.20:test

              [INFO] |  +- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:test

              [INFO] |  |  \- org.sonatype.plexus:plexus-cipher:jar:1.4:test

              [INFO] |  +- org.apache.maven.wagon:wagon-provider-api:jar:2.6:test

              [INFO] |  +- org.apache.maven.wagon:wagon-file:jar:2.6:test

              [INFO] |  \- org.apache.maven.wagon:wagon-http-lightweight:jar:2.6:test

              [INFO] |     \- org.apache.maven.wagon:wagon-http-shared:jar:2.6:test

              [INFO] |        \- org.jsoup:jsoup:jar:1.7.2:test

              [INFO] \- com.oracle:ojdbc7:jar:12.1.0.2.0:test

               

              I found some similar issues:

              [WFLY-4205] Undertow not detecting @HandlesTypes If the implentation class is inside EAR/lib - JBoss Issue Tracker

              [WFLY-3971] Jar Services in META-INF/services are not loaded from static modules - JBoss Issue Tracker

               

              However, I was not able to solve it according to hints, moreover, even if I remove spring-web from EAR (as part of @Deployment method, when building EAR), issue still happens. Thanks for any hints.

              • 4. Re: WildFly embedded with Spring Security
                Elias Balasis Newbie

                I have the same error but under different conditions.

                 

                Again using arquillian embedded container,

                 

                As soon as I start using JPA

                 

                19:49:13,543 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) WFLYJPA0002: Read persistence.xml for main

                19:49:14,523 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) WFLYWELD0003: Processing weld deployment arquillian-tutorial.war

                19:49:14,950 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-1) HV000001: Hibernate Validator 5.1.3.Final

                19:49:15,204 INFO  [org.springframework.data.jpa.repository.cdi.JpaRepositoryExtension] (MSC service thread 1-1) Activating CDI extension for Spring Data JPA repositories.

                19:49:15,607 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."arquillian-tutorial.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."arquillian-tutorial.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "arquillian-tutorial.war"

                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163) [wildfly-server-1.0.0.Final.jar:1.0.0.Final]

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.6.Final.jar:1.2.6.Final]

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.6.Final.jar:1.2.6.Final]

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_92]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_92]

                  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_92]

                Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not found

                  at java.util.ServiceLoader.fail(ServiceLoader.java:239) [rt.jar:1.8.0_92]

                  at java.util.ServiceLoader.access$300(ServiceLoader.java:185) [rt.jar:1.8.0_92]

                  at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372) [rt.jar:1.8.0_92]

                  at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) [rt.jar:1.8.0_92]

                  at java.util.ServiceLoader$1.next(ServiceLoader.java:480) [rt.jar:1.8.0_92]

                  at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.deploy(ServletContainerInitializerDeploymentProcessor.java:110)

                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156) [wildfly-server-1.0.0.Final.jar:1.0.0.Final]

                  ... 5 more

                 

                Without JPA no errors

                 

                I have attached a plain sample project that works.

                 

                I hope this helps.

                 

                Any thoughts?

                • 5. Re: WildFly embedded with Spring Security
                  Elias Balasis Newbie

                  Finally, the problem is neither with spring-security nor with JPA

                   

                  As soon as spring-web is involved Arquillian embedded contained gives the error

                   

                  Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not found

                   

                  Have a look at the attached Maven project, it works, as soon as you enable the existing spring-web dependency the problem starts

                   

                  I hope this helps more

                  Any thoughts?