https://issues.apache.org/bugzilla/show_bug.cgi?id=52545
--- Comment #4 from David Wahler <dwah...@indeed.com> 2012-03-08 01:45:00 UTC --- Created attachment 28438 --> https://issues.apache.org/bugzilla/attachment.cgi?id=28438 test case Attached a trivial test case that works on Tomcat 5.5.20 but fails to start on 7.0.25. The application refers to servlet API 2.4, and contains a listener whose single field is annotated with @javax.annotation.Resource. The logs contain this error: Mar 7, 2012 7:27:32 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class testcase.Listener javax.naming.NameNotFoundException: Name testcase.Listener is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:820) at org.apache.naming.NamingContext.lookup(NamingContext.java:168) at org.apache.catalina.core.DefaultInstanceManager.lookupFieldResource(DefaultInstanceManager.java:578) at org.apache.catalina.core.DefaultInstanceManager.processAnnotations(DefaultInstanceManager.java:468) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:144) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:125) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4715) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1362) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1450) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:295) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1381) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1539) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1549) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1528) at java.lang.Thread.run(Thread.java:662) Mar 7, 2012 7:27:32 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org