JBoss EAP6 does not allow to associate connector to a specific virtual server
Issue
- JBoss EAP 6 does not allow to associate connector to a specific virtual server. Ideally it should because we can see virtual-server as an attribute of the connector tag.
/subsystem=web/connector=http/:read-resource(recursive=true,proxies=false,include-runtime=false,include-defaults=true)
{
"outcome" => "success",
"result" => { "enable-lookups" => false, "enabled" => true, "executor" => undefined, "max-connections" => undefined, "max-post-size" => 2097152, "max-save-post-size" => 4096, "name" => "http", "protocol" => "HTTP/1.1", "proxy-name" => undefined, "proxy-port" => undefined, "redirect-port" => 8433, "scheme" => "http", "secure" => false, "socket-binding" => "http", "ssl" => undefined, "virtual-server" => undefined }
}
Steps to reproduce the issue:
Creating Socket Binding: (Success)
/socket-binding-group=standard-sockets/socket-binding=httpTest/:add(port=7070,fixed-port=false)
Creating Virtual Server: (Success)
/subsystem=web/virtual-server=testVirtualServer/:add(enable-welcome-root=false,default-web-module=SessionTest,alias=["test.com"],name=testVirtualServer)
Adding a Connector with the Virtual Server Name: (Fails)
/subsystem=web/connector=testConnector/:add(socket-binding=httpTest,scheme=http,protocol=HTTP/1.1,secure=false,virtual-server=testVirtualServer,name=testConnector,enabled=false,enable-lookups=false)
We get the following Exception:
/subsystem=web/connector=testConnector/:add(socket-binding=httpTest,scheme=http,protocol=HTTP/1.1,secure=false,virtual-server=testVirtualServer,name=testConnector,enabled=false,enable-lookups=false)
{ "outcome" => "failed", "failure-description" => "JBAS014677: Failed to persist configuration change: JBAS014675: Failed to marshal configuration", "rolled-back" => true }
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
