4 Replies Latest reply on Jun 19, 2014 2:23 PM by Tomaz Cerar

    Mapping virtual-server to connector AS7

    flp05 Newbie

      Hello all,

       

      I'm trying to map a virtual-server to a connector in Jboss AS 7.1.1, but I'm getting an error. When I look online for an anwser, I found a few posts about this particular subject, but none of them has an answer. So, I think that this post would help another persons facing the same problem.

       

      So, myconfiguration, in standalone.xml, is like this:

       

        <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
                ...
                             <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
      
                            <virtual-server name="default-host" enable-welcome-root="false">
                                     <sso reauthenticate="false"/>
                            </virtual-server>
                  
                            <connector name="http_80" scheme="http" protocol="HTTP/1.1" socket-binding="http_80" >
                                  <virtual-server name="another-host" />
                            </connector>
                    ...
                   </subsystem>
      

       

       

      and I'm getting this error:

       

                     15:07:38,038 ERROR [org.jboss.as.controller.management-operation] Operation ("add") failed - address: ([
                        ("subsystem" => "web"),
                        ("connector" => "http_80")
                      ]) - failure description: "JBAS014688: Wrong type for virtual-server. Expected [STRING] but was LIST"
      

       

       

      The error only happens when I try to map the virtual server "another-host" to the connector "http_80". Does anyone ever face this problem and was able to solve it?

       

      Thanks