Geronimo
  1. Geronimo
  2. GERONIMO-1377

Startup Warning on tomcat - unknown default host

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0, 1.x
    • Component/s: None
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      Geronimo w/ tomcat. Seeing warning on both windows and linux.

      Description

      The following Wanings are in the log during startup.

      [*********> ] 40% 32s Starting geronimo/tomcat/1.0/car 15:19:04,877 WARN [MapperListener] Unknown default host: localhost
      [*********> ] 40% 32s Starting geronimo/tomcat/1.0/car 15:19:05,647 WARN [MapperListener] Unknown default host: localhost
      [*********> ] 40% 33s Starting geronimo/tomcat/1.0/car 15:19:06,103 WARN [MapperListener] Unknown default host: localhost

      It appears that content does get served correctly from the tomcat web container.
      Jeff G has indicated this is potentially a race condition.
      Not sure if/how it is related to JIRA 1372..

        Activity

        Hide
        Jeff Genender added a comment -

        Fixed. Got around race condition by setting the defaultHost as a dependency on the EngineGBean.

        Sending configs/tomcat/src/plan/plan.xml
        Sending modules/tomcat/src/java/org/apache/geronimo/tomcat/BaseGBean.java
        Sending modules/tomcat/src/java/org/apache/geronimo/tomcat/EngineGBean.java
        Sending modules/tomcat/src/java/org/apache/geronimo/tomcat/HostGBean.java
        Sending modules/tomcat/src/test/org/apache/geronimo/tomcat/AbstractWebModuleTest.java
        Sending modules/tomcat/src/test/org/apache/geronimo/tomcat/ContainerTest.java
        Sending modules/tomcat-builder/src/test/org/apache/geronimo/tomcat/deployment/TomcatModuleBuilderTest.java
        Transmitting file data .......
        Committed revision 357408.

        Show
        Jeff Genender added a comment - Fixed. Got around race condition by setting the defaultHost as a dependency on the EngineGBean. Sending configs/tomcat/src/plan/plan.xml Sending modules/tomcat/src/java/org/apache/geronimo/tomcat/BaseGBean.java Sending modules/tomcat/src/java/org/apache/geronimo/tomcat/EngineGBean.java Sending modules/tomcat/src/java/org/apache/geronimo/tomcat/HostGBean.java Sending modules/tomcat/src/test/org/apache/geronimo/tomcat/AbstractWebModuleTest.java Sending modules/tomcat/src/test/org/apache/geronimo/tomcat/ContainerTest.java Sending modules/tomcat-builder/src/test/org/apache/geronimo/tomcat/deployment/TomcatModuleBuilderTest.java Transmitting file data ....... Committed revision 357408.
        Hide
        Jeff Genender added a comment -

        I am wrong...after further analysis... I consider this to be a show stopper.

        The engine is starting before the host because the collection reference is not enforcing the dependency on the host(s).

        From the Tomcat site...a defaultHost is required.

        Show
        Jeff Genender added a comment - I am wrong...after further analysis... I consider this to be a show stopper. The engine is starting before the host because the collection reference is not enforcing the dependency on the host(s). From the Tomcat site...a defaultHost is required.
        Hide
        Jeff Genender added a comment -

        No, its not a show stopper...since the Host does eventually get started...and I think its fixed anyways. 3 independent people have come back and said no errors.

        Show
        Jeff Genender added a comment - No, its not a show stopper...since the Host does eventually get started...and I think its fixed anyways. 3 independent people have come back and said no errors.
        Hide
        Alan Cabrera added a comment -

        Is this really a showstopper?

        Show
        Alan Cabrera added a comment - Is this really a showstopper?
        Hide
        Jeff Genender added a comment -

        This may have been fixed per GERONIMO-1372. Since this is intermittent, I will wait to close this out after several have tested the binary.

        Show
        Jeff Genender added a comment - This may have been fixed per GERONIMO-1372 . Since this is intermittent, I will wait to close this out after several have tested the binary.

          People

          • Assignee:
            Jeff Genender
            Reporter:
            Dave Colasurdo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development