]
Alessio Soldano commented on WFLY-11484:
----------------------------------------
[~jamezp], it actually does, as a consequence of the
fix. [~rsearls], I agree with Brian,
there's nothing to be done here, there was a bug that was fixed, RESTEasy simple has
to react to that (it did, the fix is going to be included in next release).
Arquillian is broken because ClI no longer lists undertow's
"context-root", "server", or "virtual-host"
-------------------------------------------------------------------------------------------------------
Key: WFLY-11484
URL:
https://issues.jboss.org/browse/WFLY-11484
Project: WildFly
Issue Type: Bug
Components: Management, Web (Undertow)
Affects Versions: 15.0.0.Beta1, 15.0.0.Final
Reporter: R Searls
Assignee: Jeff Mesnil
Priority: Major
The CLI no longer list 3 important undertow fields, "context-root",
"server", or "virtual-host". This has broken arquillian's
ability to
configure and run tests. Arquillian is no longer able to find
ArquillianServletRunner because context-root is missing. This causes
the following exception to be thrown for tests.
{code:java}
java.lang.IllegalArgumentException: ArquillianServletRunner not found. Could
not determine ContextRoot from ProtocolMetadata, please contact
DeployableContainer developer.
{code}
In org.jboss.as.arquillian.container.ManagementClient.readResource this
cli cmd is created.
{code:java}
{
"operation" => "read-resource",
"recursive" => "true",
"address" => [("deployment" =>
"AnotherPublisherResponseTest.war")]
}
{code}
Method ManagementClient.executeForResult executes this cmd
and returns the results. The results are different between wildfly-14.0.0.Final
and wildfly-15.0.0.Beta1+. Subsystem undertow no longer prints the
values for "context-root", "server", or "virtual-host".
The wildfly-14.0.0.Final output is
{code:java}
{
....
"enabled" => true,
"enabled-time" => 1544113709482L,
"enabled-timestamp" => "2018-12-06 11:28:29,482 EST",
"name" => "AnotherPublisherResponseTest.war",
"owner" => undefined,
"persistent" => true,
"runtime-name" => "AnotherPublisherResponseTest.war",
"subdeployment" => undefined,
"subsystem" => {
"jaxrs" => {"rest-resource" =>
{"org.jboss.resteasy.test.response.resource.PublisherResponseResource" =>
{}}},
"undertow" => {
"context-root" => "/AnotherPublisherResponseTest",
"server" => "default-server",
"virtual-host" => "default-host",
"servlet" => {
"ArquillianServletRunner" => {
"servlet-class" =>
"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner",
"servlet-name" => "ArquillianServletRunner"
},
"org.jboss.resteasy.utils.TestApplication" => {
"servlet-class" =>
"org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher",
"servlet-name" =>
"org.jboss.resteasy.utils.TestApplication"
}
},
"websocket" => undefined
},
"logging" => {"configuration" => undefined}
}
}
{code}
The wildfly-15.0.0.Beta1+ output is.
{code:java}
{
......
"enabled" => true,
"name" => "AnotherPublisherResponseTest.war",
"owner" => undefined,
"persistent" => true,
"runtime-name" => "AnotherPublisherResponseTest.war",
"subdeployment" => undefined,
"subsystem" => {
"jaxrs" => {"rest-resource" =>
{"org.jboss.resteasy.test.response.resource.PublisherResponseResource" =>
{}}},
"undertow" => {
"servlet" => {
"ArquillianServletRunner" => {},
"org.jboss.resteasy.utils.TestApplication" => {}
},
"websocket" => undefined
},
"logging" => {"configuration" => undefined}
}
}
{code}