0 Replies Latest reply on Nov 13, 2006 1:41 AM by Jason Kafer

    virtual-host not mapping to multiple services in server.xml

    Jason Kafer Newbie

      I have set up a second service in server.xml

       <Service name="jboss2.web"
       className="org.jboss.web.tomcat.tc5.StandardService">
      
       <!-- A HTTP/1.1 Connector on port 8080 -->
       <Connector port="8085" address="${jboss.bind.address}"
       maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
       emptySessionPath="true"
       enableLookups="false" redirectPort="8443" acceptCount="100"
       connectionTimeout="20000" disableUploadTimeout="true"/>
      
      
       <Engine name="jboss2.web" defaultHost="localhost2">
      
       <Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm"
       certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
       allRolesMode="authOnly"
       />
      
      
       <Host name="localhost2"
       autoDeploy="false" deployOnStartup="false" deployXML="false"
       configClass="org.jboss.web.tomcat.security.config.JBossContextConfig"
       >
      
       <Valve className="org.jboss.web.tomcat.tc5.jca.CachedConnectionValve"
       cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
       transactionManagerObjectName="jboss:service=TransactionManager" />
      
       </Host>
      
       <Host name="tester"
       autoDeploy="false" deployOnStartup="false" deployXML="false"
       configClass="org.jboss.web.tomcat.security.config.JBossContextConfig"
       >
      
       <Alias>cms.d6einc.com</Alias>
      
       </Host>
      
       </Engine>
      
       </Service>



      In my jboss-web.xml I have added the following

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-web>
       <security-domain>java:/jaas/CompanyManagementSystemSecurity</security-domain>
       <context-root>/</context-root>
       <virtual-host>cms.d6einc.com</virtual-host>
      </jboss-web>
      


      and when the application is deployed i get an error saying "failed to map vhost cms.d6einc.com". I have tried using both cms.d6einc.com and tester as the virtual-host element but end up with the same error both way.

      Any ideas?