[jboss-dev-forums] [Design of JBoss/Tomcat Integration] - Real classloader required before WAR startup

bill.burke@jboss.com do-not-reply at jboss.com
Tue Aug 8 10:49:37 EDT 2006


I'm running into a Catch 22 in integrating the EE5 injection stuff I'm doing.  I need a classloader set up and initialized before the start of the Web container so that I can scan classes for annotations and set up any XML injeciton targets .  This classloader needs to be the same classloader that will be used by the servlet container to instantiate servlets.  The problem is that the classloader, currently, is not created until the web container is initialized and I need to set up the ENC and injeciton targets before the container is initialized.

This is a bit a function of how I implemented the injection code.  It pre-initializes all the injection target information by setting up lists of reflection objects that will be used to do the injection.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963823#3963823

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963823



More information about the jboss-dev-forums mailing list