arquillian / arquillian-container-jetty

Arquillian Jetty Containers
7 stars 14 forks source link

IllegalArgumentException: ArquillianServletRunnerEE9 not found #159

Open hantsy opened 11 months ago

hantsy commented 11 months ago

I tried to add Jetty 12/Jakarta EE9 support to my template project:

https://github.com/hantsy/jakartaee9-servlet-starter-boilerplate/

The Arquillian config for the Jetty 12/Jakarta EE 9, https://github.com/hantsy/jakartaee9-servlet-starter-boilerplate/blob/2aaabed6ba8bbfc3c87e3cd3ab5197ef28078d98/pom.xml#L490

Expected Behaviour

Work as expected like Jetty 11.

Current Behaviour

Error:  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.331 s <<< FAILURE! -- in com.example.it.GreetingServiceTest
Error:  com.example.it.GreetingServiceTest.should_create_greeting -- Time elapsed: 0.054 s <<< ERROR!
java.lang.IllegalArgumentException: ArquillianServletRunnerEE9 not found. Could not determine ContextRoot from ProtocolMetadata, please contact DeployableContainer developer.
Steps To Reproduce
  1. clone https://github.com/hantsy/jakartaee9-servlet-starter-boilerplate/
  2. Switch to arq-jetty-12 branch
  3. Run GreetingServiceTest
Additional Information

The build env: https://github.com/hantsy/jakartaee9-servlet-starter-boilerplate/blob/2aaabed6ba8bbfc3c87e3cd3ab5197ef28078d98/.github/workflows/it-jetty-12.yml

The complete Github actions build info, https://github.com/hantsy/jakartaee9-servlet-starter-boilerplate/actions/runs/6595413820/job/17920411770

hantsy commented 9 months ago

@olamy It is a new issue with Jetty 12 with EE 9.