Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can not parse the xml in orion server.

843834Oct 29 2004 — edited Nov 10 2004
Hi, can anyone help me on this.
I have some configuration file which should be parsed when start the server. It works fine in tomcat , JRun, and some other server, now when I test it using the orion server, It throws out the

org.apache.commons.digester.xmlrules.XmlLoadException: Relative URI "digester-rules.dtd"; can not be resolved without a document URI.

I put the dtd and xml together in web-root and specify the location using
<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN" "digester-rules.dtd">

can anyone tell me how to resolve this.

following is a code snippet of init the digester

Digester ruleDigester = new Digester();
ruleDigester.setUseContextClassLoader(true);
System.out.println(ruleURL);
FromXmlRuleSet ruleSet = new FromXmlRuleSet(ruleURL, ruleDigester);
Digester digester = new Digester();
digester.setUseContextClassLoader(true);
ruleSet.addRuleInstances(digester);
rules = digester.getRules();
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2004
Added on Oct 29 2004
1 comment
168 views