Hi Jean-Louis, Ok I did further tests.
If I add something like <Context> <Parameter name="org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.IGNORE" value="trueOrWhatever" /> </Context> to the Context.xml of the webapp and start my tomcat 6 instance this is loaded as an init Parameter. I have not found a way to set a Attribute directly. So My first Idea was to add a autostart Servlet to my zk webapp which reads the init parameter and then sets the attribute to the context. But of course this is too late because this servlet is started after the app is deployed. Then I played with a new Listener which is registered on the server.xml like your org.apache.openejb.tomcat.loader.OpenEJBListener. But I have to use this listener to register a new context listener like you did. So I can set the attribute BEFORE your listener is checking it. Sound to complicated I think... What if you change the checking code inside the TomcatWebAppBuilder.start() from: if (standardContext.getServletContext().getAttribute(IGNORE_CONTEXT) != null) return; to if (standardContext.getServletContext().getAttribute(IGNORE_CONTEXT) != null || standardContext.getServletContext().getInitParameter(IGNORE_CONTEXT) != null) return; so you can use the context.xml as well as the web.xml of a related webapplication to ignore it by openEJB. Sound like a plan or? Markus Lutum -- View this message in context: http://openejb.979440.n4.nabble.com/disable-AnnotationDeployer-for-Tomcat-Webapps-tp3560517p3562549.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.