[jboss-jira] [JBoss JIRA] (WFLY-11484) Arquillian is broken because ClI no longer lists undertow's "context-root", "server", or "virtual-host"

R Searls (Jira) issues at jboss.org
Thu Dec 6 14:55:00 EST 2018


    [ https://issues.jboss.org/browse/WFLY-11484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13671581#comment-13671581 ] 

R Searls commented on WFLY-11484:
---------------------------------

>From Resteasy's perspective this is a compatibility issue between achive's
org.wildfly.arquillian:wildfly-arquillian-container-managed and org.wildfly.arquillian:wildfly-arquillian-container-remote versions 2.1.0.Final and 2.1.1.Final.
Version 2.1.0.Final of these 2 archives fails with issues as described above when run
with wildfly-15.0.0.Beta1+.  Version 2.1.1.Final runs successfully with wildfly-15.0.0.Beta1+.

However this creates a backward compatibility issue for Resteasy testsuite.
Resteasy 3.6.2.Final is part of wildfly-15.0.0.Beta1, wildfly-15.0.0.Final and wildfly master.
The testsuite fails in all 3 cases.  
Also how is this going to affect backward compatibility for EAP point releases?

> 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}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list