Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2654

Validate Hosts defined under a tomcat service

    XMLWordPrintable

Details

    Description

      Now that JBAS-2410 has been verified and resolved, there needs to be an evaluation of hosts deployed on the tomcat instance.

      The problem is this:
      TomcatDeployer.java
      ----------------------------
      protected synchronized Iterator mapVirtualHosts(Iterator vhostNames)
      throws Exception
      {
      if( vhostToHostNames.size() == 0 )
      {
      // Query the configured Host mbeans
      String hostQuery = config.getCatalinaDomain() + ":type=Host,*";
      ObjectName query = new ObjectName(hostQuery);
      Set hosts = server.queryNames(query, null);
      Iterator iter = hosts.iterator();
      .....

      config.getCatalinaDomain() is going to return "jboss.web" or whatever that is defined in the tomcat sar jboss-service.xml file. If the server.xml defines multiple tomcat services, then the domain for the services is going to be the names of the tomcat services used. Hence this reliance on config.getCatalinaDomain may not return the right hosts.

      Please validate the hosts to work on multiple services.

      A similar issue may exist with ClusteredSingleSignOnValve in initialization of the cache.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              anil.saldhana Anil Saldanha (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: