Open manovotn opened 8 months ago
Why is ArquillianServletRunnerEE9
being used for EE10 testing?
Why is
ArquillianServletRunnerEE9
being used for EE10 testing?
I think that's just unfortunate naming. See https://github.com/arquillian/arquillian-jakarta/blob/main/protocols/servlet-jakarta/src/main/resources/org/jboss/arquillian/protocol/servlet5/v_5/web-fragment.xml This is used even for EE10 testing as far as I can tell.
@joakime Indeed the same artifact is used for Jetty embedded EE9 and EE10 as can be seen from this POM - https://github.com/arquillian/arquillian-container-jetty/blob/master/jetty-embedded-12-ee10/pom.xml#L69-L72
But like I said, that's just unfortunate naming; probably should have been ArquillianServletRunnerJakarta
but I don't see a reason why this wouldn't work for EE10.
I was trying to migrate (or rather reinvigorate) Weld's Jetty servlet testing and see if I can make it work with Jetty 12 EE 10. [Note that this module has been dead for some long time so I cannot say if this worked with previous versions of jetty.]
In the end I failed to pinpoint the issue and while I think it has to be some silly misconfiguration, I wasn't able to figure this one myself. If I run any of those tests, I can see following output and exception:
The good part is that I can see that Jetty is being started and the deployment is created as well. The bad part is the exception which tells me pretty much nothing - my guess was missing dependencies but the deployment that gets created actually contains the
lib/arquillian-jakarta-servlet-protocol.jar
which is the dep that should contains theArquillianServletRunnerEE9
implementation. Upon further browsing, I can see in the deployment that there is the XML mentioning the servlet as well as as the servlet impl.How to reproduce:
Here's Weld branch that has the changes and can be used to reproduce with following steps.
cd core
mvn clean install -DskipTests
mvn clean verify -Dincontainer -Dtest=CustomNormalScopeDiscoveryTest#testCustomNormalScope -f environments/servlet/tests/jetty/pom.xml
war
file undercore/environments/servlet/tests/jetty/target
Versions used:
Any thoughts on what I missed and/or misconfigured? :)