Thank you Chuck. OK, perhaps I can do with getResourceAsStream for all my needs inside the war. I prefer my war to be unpacked for the needs of other applications (non Java) to access the content of the war
But I think there is a bug in Tomcat. You agree ? If my Host parameters are : unpackWARS=true, autodeploy=true, deployOnStartup=true, deployXML=true, appBase=/usr2/web/myhost and my Context Parameters : docBase=/usr2/web/myhost/ROOT.war It is OK for TC < 5.5.12 but not for TC >= 5.5.12 To deploy in TC >= 5.5.12 (with a war unpacked) : Host parameters have to be : unpackWARS=false, autodeploy=false, deployOnStartup=true, deployXML=false, appBase=/usr2/web/myhost and Context Parameters : docBase=/usr2/web/myhost/ROOT.war BUT if I put unpackWARS=true, the tests are KO !!! >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Subject: Re: tomcat deployment changes since Tomcat 5.5.12 >> >> But the result is the same : >> - exceptions in Tomcat logs, >> - getServletContext().getRealPath(...) is null > >There's no guarantee that getRealPath() will return anything useful, >although it usually does with an unpacked war. Do you really need the >actual path? Would getResourceAsStream() suffice? Take a look at: >http://wiki.apache.org/tomcat/HowTo#head-45c3314139cb900ddd43dde2ff671532e6e844bc --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]