Re: Help loading XML config file via Init Servlet

2007-01-16 Thread David Smith
I think you are really after this.class.getResourceAsStream( "org/coffeebreak/config/attributes-config.xml" ) ; which would use the classloader to locate your xml file in WEB-INF/classes or your jar file and return an InputStream to it. --David James Dekker wrote: > Robert, > > The problem with

Re: Help loading XML config file via Init Servlet

2007-01-15 Thread James Dekker
Robert, The problem with the getRealPath() is that I have the undeployWars set to false in server.xml and getRealPath() is just for raw File I / O, it can't be used to read from a jar file... Thanks for the suggestion, nonetheless! Sincerely, James Dekker On Jan 15, 2007, at 4:54 AM, rob

Re: Help loading XML config file via Init Servlet

2007-01-15 Thread robert lazarski
On 1/14/07, James Dekker <[EMAIL PROTECTED]> wrote: Hello there, I am using the Apache Commons Digester to load an XML config file via a servlet with init params... I keep getting this error when I start Tomcat 5.5.9 and have deployed the war file via my build script: INFO: Deploying web appli

Help loading XML config file via Init Servlet

2007-01-14 Thread James Dekker
Hello there, I am using the Apache Commons Digester to load an XML config file via a servlet with init params... I keep getting this error when I start Tomcat 5.5.9 and have deployed the war file via my build script: INFO: Deploying web application archive coffeebreak.war 2007-01-14 03:10