On Thu, 01 Feb 2001, you wrote:
> I use JDOM to parse data out of XML files. The parsing works fine outsite
> of JBoss. When I parse XML files from within JBoss, I get a
> "NoSuchMethodException"
> when I try to invoke the second of these two statements:
>
> org.jdom.input.DOMBuilder builder = new
>org.jdom.input.DOMBuilder("org.jdom.adapters.XercesDOMAdapter", false);
> org.jdom.Document document = builder.build(new File(xmlPath));
>
> Does any-one have an idea what the problem could be?
>
> Thank you for any-one's help!
It's probably got something to do with JBoss having Sun's JAXP/DOM
implementation loaded in the system classloader. It's probably getting
confused about which DOM implementation classes it's using, and then calling a
DOM level 2 method, which Sun's implementation doesn't support but Apache does.
It's not toooo much work to patch JBoss to use an arbitrary parser, but you
need CVS access because there's no nightly snapshot of SpyderMQ, which
references the Sun classes directly. The other places which need changing are
ConfigurationService.java, EmbeddedTomcatService.java, Main.java,
DependencyManager.java and XmlFileLoader.java. IIRC, some of these have
already been patched in recent CVS.
HTH
Tom
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]