Thanks John. Actually the problem was that JRun has so a parser.jar and
jaxp.jar in its lib/ext directory. If you don't specify a reader for the
digester, it looks in these for an implementation of an XMLReader - but it
won't find it.
Solution:
digester = new Digester(new ParserAdapter());
It works!
-----Original Message-----
From: John Yu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 7:15 PM
To: Jakarta Commons Users List
Subject: Re: Digester under JRun 3.1
Sounds like JRun has its own copy of xerces.jar which is older/incompatible.
Try to add your xerces.jar to the system classpath (i.e. java -cp) when
starting the JRun to see if the problem goes away.
At 08:17 am 04-12-2002, you wrote:
>Using version 1.3 of Digester, I am getting a NoSuchMethodError when
running
>under JRun 3.1. Has anyone else encountered this? I am guessing it is a
>problem of not having the correct sax parser loaded. I have a xalan.jar and
>xerces.jar in my servers lib directory.
>
>Here's the stack trace:
>null
>java.lang.NoSuchMethodError
>at org.apache.commons.digester.Digester.getXMLReader(Digester.java:892)
>at org.apache.commons.digester.Digester.parse(Digester.java:1514)
>
>This corresponds to the line:
>reader = getParser().getXMLReader();
>
>Anyone have any ideas?
>Thanks
>
>
> > Steve Taylor
--
John Yu Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com m: +(65) 9782 9610
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>