[jboss-jira] [JBoss JIRA] Created: (JBAS-8538) ServletContextListener not invoked in a CDI-enabled deployment

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Tue Oct 19 12:17:54 EDT 2010


ServletContextListener not invoked in a CDI-enabled deployment
--------------------------------------------------------------

                 Key: JBAS-8538
                 URL: https://jira.jboss.org/browse/JBAS-8538
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Web (Tomcat) service, Weld/CDI
    Affects Versions:  6.0.0.M5
            Reporter: Jozef Hartinger
            Assignee: Remy Maucherat
            Priority: Blocker
             Fix For: 6.0.0.CR1


A ServletContextListener is not invoked if the web application is a bean deployment archive (beans.xml present). See the attached applications. 

listenerTest.war is a simple web application with a listener that logs a message to stdout. The listener is invoked as expected.

18:09:53,596 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/listenerTest
18:09:53,628 INFO  [STDOUT] Application deployed.

listenerTest-bda.war is the same application with beans.xml file added. The listener is not invoked.

18:16:25,891 INFO  [org.jboss.weld.Version] WELD-000900 1.1.0 (Beta1)
18:16:26,480 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/listenerTest-bda
18:16:26,601 INFO  [org.jboss.resteasy.cdi.CdiInjectorFactory] Found BeanManager at java:comp/BeanManager

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list