[weld-issues] [JBoss JIRA] Updated: (WELD-879) Tomcat 7 container is identified as Tomcat 6

Ales Justin (JIRA) jira-events at lists.jboss.org
Tue Apr 5 14:12:33 EDT 2011


     [ https://issues.jboss.org/browse/WELD-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ales Justin updated WELD-879:
-----------------------------

    Fix Version/s: 1.2.0.Beta1


> Tomcat 7 container is identified as Tomcat 6
> --------------------------------------------
>
>                 Key: WELD-879
>                 URL: https://issues.jboss.org/browse/WELD-879
>             Project: Weld
>          Issue Type: Bug
>          Components: CDI API
>    Affects Versions: 1.1.1.Final
>         Environment: Tomcat 7.0.11
>            Reporter: Ashley Westwell
>            Assignee: Ales Justin
>             Fix For: 1.2.0.Beta1
>
>   Original Estimate: 1 hour
>  Remaining Estimate: 1 hour
>
> 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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the weld-issues mailing list