users@glassfish.java.net

Re: java.io.FileNotFoundException tried to access a xml file with jdom

From: <glassfish_at_javadesktop.org>
Date: Sun, 12 Aug 2007 01:09:31 PDT

Thanks for your reply!

i've found another way without the serverlet context. look this:

[b]ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
InputSource is = new InputSource(classLoader.getResourceAsStream("menu.xml"));
Document doc=builder.build(is);[/b]
[Message sent by forum member 'merschi' (merschi)]

http://forums.java.net/jive/thread.jspa?messageID=230569