GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Embedded wildfly profile fails · Issue #371 · javaee-samples/javaee7-samples

Embedded wildfly profile fails #371

New issue
Copy link
New issue
Copy link
Open
Open
Embedded wildfly profile fails#371
Copy link

Description

@sermojohn
sermojohn
opened on Dec 13, 2016
Issue body actions

Trying to run a randomly picked test from cdi module on embedded wildfly, but it fails.

Command: mvn -f cdi/alternatives/pom.xml test -Pwildfly-embedded-arquillian -Dwildfly.version=10.1.0.Final
Error:
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"test.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"test.war\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"test.war\" Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider io.undertow.servlet.sse.ServerSentEventSCI not found"}, "WFLYCTL0412: Required services that are not installed:" => [ "jboss.deployment.unit.\"test.war\".INSTALL", "jboss.deployment.unit.\"test.war\".beanmanager" ], "WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.deployment.unit.\"test.war\".batch.environment is missing [jboss.deployment.unit.\"test.war\".beanmanager]", "jboss.deployment.unit.\"test.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"test.war\".beanmanager]" ]

Command: mvn -f cdi/alternatives/pom.xml test -Pwildfly-embedded-arquillian -Dwildfly.version=9.0.0.Final
Error:
Caused by: java.lang.ClassNotFoundException: org.wildfly.core.embedded.EmbeddedStandaloneServerFactory from [Module "org.wildfly.embedded:main" from local module loader @5e7cd6cc (finder: local module finder @68c9d179 (roots: C:\Users\sermetzi\IdeaProjects\javaee7-samples\cdi\alternatives\target\wildfly-9.0.0.Final\modules,C:\Users\sermetzi\IdeaProjects\javaee7-samples\cdi\alternatives\target\wildfly-9.0.0.Final\modules\system\layers\base))]

Activity

  1. ToanPV90 commented on Jan 13, 2017

    @ToanPV90
    ToanPV90
    on Jan 13, 2017
    More actions

    Hi @sermojohn . This error is same to me. @sermojohn Have you found the solution to fix this? Pls share it to me. Thanks & Best Regards.

  2. sermojohn commented on Jan 17, 2017

    @sermojohn
    sermojohn
    on Jan 17, 2017
    Author
    More actions

    No solution found. I ended up using the managed profile instead.

  3. ToanPV90 commented on Feb 11, 2017

    @ToanPV90
    ToanPV90
    on Feb 11, 2017
    More actions

    Many thank @sermojohn for your response.

  4. ChristianFein commented on Apr 4, 2017

    @ChristianFein
    ChristianFein
    on Apr 4, 2017
    More actions

    Had the same problem. My error was a wrong javax-servlet dependency in my gradle build.

  5. MarkDechamps commented on Apr 29, 2017

    @MarkDechamps
    MarkDechamps
    on Apr 29, 2017
    More actions

    Same problem. Got it also buildng with :
    C:\projects\javaee7-samples\jpa\native-sql-resultset-mapping>mvn install -Pwildfly-ci-managed

  6. mmarquezvacas commented on Jun 12, 2017

    @mmarquezvacas
    mmarquezvacas
    on Jun 12, 2017
    More actions

    Having the same problem executing:
    javaee7-samples/jpa/multiple-pu$ mvn clean install -Pwildfly-embedded

    The test shows this error:

    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.126 sec <<< FAILURE! - in org.javaee7.jpa.multiple.pu.MultiplePuTest org.javaee7.jpa.multiple.pu.MultiplePuTest Time elapsed: 5.118 sec <<< ERROR! org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy: a8c86f6e-0ed1-4fff-a122-e343a852cb8d.war Caused by: java.lang.Exception: { "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"a8c86f6e-0ed1-4fff-a122-e343a852cb8d.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"a8c86f6e-0ed1-4fff-a122-e343a852cb8d.war\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"a8c86f6e-0ed1-4fff-a122-e343a852cb8d.war\" Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider io.undertow.servlet.sse.ServerSentEventSCI not found"}, "WFLYCTL0412: Required services that are not installed:" => [ "jboss.deployment.unit.\"a8c86f6e-0ed1-4fff-a122-e343a852cb8d.war\".beanmanager", "jboss.deployment.unit.\"a8c86f6e-0ed1-4fff-a122-e343a852cb8d.war\".INSTALL" ], "WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.deployment.unit.\"a8c86f6e-0ed1-4fff-a122-e343a852cb8d.war\".batch.environment is missing [jboss.deployment.unit.\"a8c86f6e-0ed1-4fff-a122-e343a852cb8d.war\".beanmanager]", "jboss.deployment.unit.\"a8c86f6e-0ed1-4fff-a122-e343a852cb8d.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"a8c86f6e-0ed1-4fff-a122-e343a852cb8d.war\".beanmanager]" ] }

    No idea how to solve it yet. :(

  7. mmarquezvacas commented on Jun 12, 2017

    @mmarquezvacas
    mmarquezvacas
    on Jun 12, 2017
    More actions

    Found this:

    https://stackoverflow.com/questions/30811971/java-util-serviceconfigurationerror-when-running-tests-using-arquillianomniface

    Then I executed the following command instead:

    mvn clean install -Pwildfly-managed

    After that, the tests executed correctly.

    Still can't understand the reason.

    Hope this helps anyone

    Reacted by Cam
  8. arjantijms commented on Jun 12, 2017

    @arjantijms
    arjantijms
    on Jun 12, 2017
    Contributor
    More actions

    I've personally always had issues with WildFly Embedded. The regular WildFly, in both the managed and remote variants works really well, but I too got exceptions like posted above.

    My humble guess would be classloaders problems of some kind, perhaps race conditions or some other sort of timing problem.

    I'm currently fixing up the tests to be more resilient against timing problems, but I'm not sure how to approach the WildFly embedded issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.