RE: [JBoss-user] ResourceAsStream file placement (more info)

2002-01-17 Thread Coetmeur, Alain
> -Message d'origine- > It might eventually be possible to add a library/resource jar > in a WAR manifest Class-Path directive if it is supported, but > I've not idea if WAR specification allow that, and if catalina > accept it. I've found that note on http://www.jboss.org/developers/jb

RE: [JBoss-user] ResourceAsStream file placement (more info)

2002-01-17 Thread Coetmeur, Alain
finding resource should be the same as finding classes... at fires you couldput it in a subdirectory of a classpath entry (ie: in a package! ). you can even put them beside a class in a package directory and find then there, with Class.getResourceAsStream() instead of the ClassLoader.getResource

RE: [JBoss-user] ResourceAsStream file placement (more info)

2002-01-16 Thread John Moore
Title: RE: [JBoss-user] ResourceAsStream file placement (more info) Correction, this does work as an env-entry; just not when you make a stupid mistake.   So the original question stands, is there a better place than the root of the jar to put the files to be referenced as resources?   John

RE: [JBoss-user] ResourceAsStream file placement (more info)

2002-01-16 Thread John Moore
Title: RE: [JBoss-user] ResourceAsStream file placement (more info) FYI: This doesn't work for files referenced in env-entry statements.  Am working on that next. John -Original Message- From: John Moore [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 1:31

[JBoss-user] ResourceAsStream file placement

2002-01-16 Thread John Moore
Title: ResourceAsStream file placement I have files that are being loaded on both the web and ejb tier.  I have moved all of the references in the web tier to WEB-INF/classes and am using getResourceAsStream() to get an InputStream for the parser.  Now, on the ejb side, I currently have the f