I am running a resource pool that is based on the Jakarta commons-dbcp
package.  I then created a utility class to be able to use the
commons-digester package to be able to load the properties associated with
the resource pool (we are using this for database connection pooling).  When
I run my Junit test(s) on this utility class everything works correctly, but
when I deploy it into my web application it seems to just fail.

In my web application logs, here is what I see when my class tries to run:

2004/09/02 11:45:27 DEBUG xml  - (class foo.XmlUtil).createPropertyObject :
Retrieved rules and properties XML
2004/09/02 11:45:27 DEBUG org.apache.commons.digester.Digester  -
addRuleSet() with no namespace URI
2004/09/02 11:45:27 DEBUG org.apache.commons.digester.Digester  -
addRuleSet() with no namespace URI
2004/09/02 11:45:27 DEBUG org.apache.commons.digester.Digester  -
register('-//Jakarta Apache //DTD digester-rules XML V1.0//EN',
'jar:file:M:/java//WEB-INF/lib/commons-digester.jar!/org/apache/commons/dige
ster/xmlrules/digester-rules.dtd'
----------------------------------------

Before this runs, the resource pool initializes correctly.  Here is the code
in my class [XmlUtil.createPropertyObject()]:

 URL rulesUrl = ResourceUtility.getResource(XmlUtil.class, rulesXml);
 InputStream propertiesXml =
ResourceUtility.getResourceAsStream(XmlUtil.class, xml);
            
 result =
(Stack)DigesterLoader.load(rulesUrl,XmlUtil.class.getClassLoader(),propertie
sXml);

 logger.log("Property file has been
parsed",LogLevel.DEBUG,XmlUtil.class.toString(),"createPropertyObject");
 
 props = (Properties)result.pop();
----------------------------------------

Any ideas? 
Thanks for any help in advance.

Andrew.



------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments, contains information of 
Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or 
its affiliates (which may be known outside the United States as Merck Frosst, Merck 
Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary 
copyrighted and/or legally privileged. It is intended solely for the use of the 
individual or entity named on this message.  If you are not the intended recipient, 
and have received this message in error, please notify us immediately by reply e-mail 
and then delete it from your system.
------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to