Ok, I figured out how to solve this. I basically told digester to use the contextClassLoader, see Thread.getContextClassLoader. Now everything's happy.
-----Original Message----- From: Srinivas V. [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 4:03 PM To: users@tomcat.apache.org Subject: Class-loading problem in tomcat when using commons digester One of the servlets in my webapp parses and constructs objects based on XML configuration using the Commons-digester. This happens in the servlet's init. The code to parse the XML and construct objects works fine when I invoke it from a standalone app. However when I invoke the same code from within a webapp, my webapp fails when digester tries to construct objects based on the XML spec. I'm not sure why this is happenning because the class that is causing the problem is in my WEB-INF/classes. So its definitely available to the webapp class-loader. I guess at some point during the XML parsing, the class-loader is changing (??). And that class-loader doesn't have WEB-INF/classes in its search-list. Hoping someone has seen this before or can help me with this ? thanks Srinivas --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]