Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-879

Tomcat 7 container is identified as Tomcat 6

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.2.Final
    • 1.1.1.Final
    • None
    • None
    • Hide

      Install Tomcat 7.0.11 and confirm which container is loaded

      Show
      Install Tomcat 7.0.11 and confirm which container is loaded
    • Low

      Weld-servlet 1.1.1-Final identifies tomcat 7 as tomcat 6 environment.In Listener.java it executes the following code

      container = checkContainers(cc, dump, Arrays.asList(
      Tomcat6Container.INSTANCE,
      Tomcat7Container.INSTANCE,
      Jetty6Container.INSTANCE,
      Jetty7Container.INSTANCE,
      JettyPost72Container.INSTANCE)
      );

      This method returns a Tomcat6Container as Tomcat 7.0.11 at least has the class org.apache.catalina.core.ApplicationContextFacade. I would suggest reversing the order to have Tomcat7Container checked first as I from my knowledge the class org.apache.tomcat.InstanceManager is new to Tomcat 7

              ajustin@redhat.com Ales Justin
              awestwell_jira Ashley Westwell (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified