Re: Symlinks inside WEB-INF/classes not working for me

2009-07-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 7/14/2009 5:25 PM, Mark Thomas wrote: > Christopher Schultz wrote: >> They are not implemented in StandardContext: they are implemented in >> FileDirContext and therefore should only affect content being served by >> the web server, not JAR f

Re: Symlinks inside WEB-INF/classes not working for me

2009-07-14 Thread John W
> Again, wrong. allowLinking applies to any web-app resources. Only internal > Tomcat file access (bin, lib, logs etc) goes directly to the file system. And for what it's worth, allowLinking appears to have fixed it :) It manifested itself really silently and I didn't see anything about it in Web

Re: Symlinks inside WEB-INF/classes not working for me

2009-07-14 Thread Mark Thomas
Christopher Schultz wrote: > Konstantin, > > On 7/13/2009 10:06 PM, Konstantin Kolinko wrote: >> See how allowLinking and caseSensitive options are implemented in >> StandardContext. > > They are not implemented in StandardContext: they are implemented in > FileDirContext and therefore should onl

Re: Symlinks inside WEB-INF/classes not working for me

2009-07-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 7/13/2009 10:06 PM, Konstantin Kolinko wrote: > See how allowLinking and caseSensitive options are implemented in > StandardContext. They are not implemented in StandardContext: they are implemented in FileDirContext and therefore shou

Re: Symlinks inside WEB-INF/classes not working for me

2009-07-13 Thread Bill Barker
"Christopher Schultz" wrote in message news:4a5be03c.7050...@christopherschultz.net... > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > David, > > On 7/13/2009 8:50 PM, David Smith wrote: >> If you look at all the third party repackages of tomcat that fail, >> you'll see a theme -- symlinks

Re: Symlinks inside WEB-INF/classes not working for me

2009-07-13 Thread Konstantin Kolinko
> While I agree with your recommendation for using a more sophisticated > build/deployment process, I disagree with your reasoning. Java and/or > Tomcat should not have any problem reading files via symlinks. As far as > I know, Java's I/O API does not have the ability to distinguish between > symb

Re: Symlinks inside WEB-INF/classes not working for me

2009-07-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 7/13/2009 8:50 PM, David Smith wrote: > If you look at all the third party repackages of tomcat that fail, > you'll see a theme -- symlinks cause problems in java. I would highly > recommend you find a way to maintain that config file via t

Re: Symlinks inside WEB-INF/classes not working for me

2009-07-13 Thread David Smith
David Smith wrote: > John Willemin wrote: > >> Tomcat 6.0.16 >> Linux 2.6.18 >> JDK 1.6.0_05 >> >> Imagine a webapp like this: >> /index.jsp >> /WEB-INF >> -web.xml (of course) >> -/classes >> --ConfigFile.txt >> -/lib >> --MyConfigLoader.class >> >> If I want to load ConfigFile.txt into an Inpu

Re: Symlinks inside WEB-INF/classes not working for me

2009-07-13 Thread David Smith
John Willemin wrote: > Tomcat 6.0.16 > Linux 2.6.18 > JDK 1.6.0_05 > > Imagine a webapp like this: > /index.jsp > /WEB-INF > -web.xml (of course) > -/classes > --ConfigFile.txt > -/lib > --MyConfigLoader.class > > If I want to load ConfigFile.txt into an InputStream from inside my > webapp, all I h

Re: Symlinks inside WEB-INF/classes not working for me

2009-07-13 Thread John W
> Tomcat 6.0.16 > Linux 2.6.18 > JDK 1.6.0_05 > > Imagine a webapp like this: > /index.jsp > /WEB-INF > -web.xml (of course) > -/classes > --ConfigFile.txt > -/lib > --MyConfigLoader.class ... and imagine that .class file is inside a .jar file :) Sorry about that. John --

Symlinks inside WEB-INF/classes not working for me

2009-07-13 Thread John Willemin
Tomcat 6.0.16 Linux 2.6.18 JDK 1.6.0_05 Imagine a webapp like this: /index.jsp /WEB-INF -web.xml (of course) -/classes --ConfigFile.txt -/lib --MyConfigLoader.class If I want to load ConfigFile.txt into an InputStream from inside my webapp, all I have to do is this: InputStream configStream = th