RE: WEB-INF

2010-09-10 Thread Leo Donahue - PLANDEVX
>From: Christopher Schultz [mailto:ch...@christopherschultz.net] >Subject: Re: WEB-INF > >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >Leo, > >I'll chime in. :) > >On 9/10/2010 10:13 AM, Leo Donahue - PLANDEVX wrote: >> I've read that you c

RE: WEB-INF

2010-09-10 Thread Leo Donahue - PLANDEVX
>From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >Subject: RE: WEB-INF > >> I want to understand why it is a good practice to place >> them in WEB-INF > >To avoid uncontrolled access to your code. For example, if the >resources were in a client-acces

Re: WEB-INF

2010-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, I'll chime in. :) On 9/10/2010 10:13 AM, Leo Donahue - PLANDEVX wrote: > I've read that you can secure direct access to a JSP by placing it in > the WEB-INF directory. I know you can also secure direct access to a > JSP by creating a security c

RE: WEB-INF

2010-09-10 Thread Caldarale, Charles R
From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] Subject: RE: WEB-INF > I want to understand why it is a good practice to place > them in WEB-INF To avoid uncontrolled access to your code. For example, if the resources were in a client-accessible area, the resource

RE: WEB-INF

2010-09-10 Thread Caldarale, Charles R
> From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] > Subject: RE: WEB-INF > This one? > http://jcp.org/aboutJava/communityprocess/final/jsr315/index.html That's the primary one for Tomcat 7. Unfortunately, I think the 3.0 spec took a step backwards in readab

RE: WEB-INF

2010-09-10 Thread Leo Donahue - PLANDEVX
>From: Wesley Acheson [mailto:wesley.ache...@gmail.com] >Subject: Re: WEB-INF > >Leo judging from the answers you've got. I think it may be better to >state what you want to achieve. I'm not clear if you want to prevent >access or allow access at the moment. Especially

RE: WEB-INF

2010-09-10 Thread Leo Donahue - PLANDEVX
>From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >Subject: RE: WEB-INF > > >> I'm trying to understand why there are so many of these kinds of >questions. > >I think mostly because people often do not read the actual specs. > > - Chuck

Re: WEB-INF

2010-09-10 Thread Wesley Acheson
From: "Caldarale, Charles R" > > To: "Tomcat Users List" > Sent: Friday, September 10, 2010 10:32 AM > Subject: RE: WEB-INF > > >> From: michel [mailto:compu...@videotron.ca] >> Subject: Re: WEB-INF > >> You get direct access to an

RE: WEB-INF

2010-09-10 Thread Caldarale, Charles R
> From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] > Subject: RE: WEB-INF > I'm trying to understand why there are so many of these kinds of questions. I think mostly because people often do not read the actual specs. - Chuck THIS COMMUNICATION MAY CONTAIN CO

RE: WEB-INF

2010-09-10 Thread Caldarale, Charles R
> From: michel [mailto:compu...@videotron.ca] > Subject: Re: WEB-INF > do you mean things like URL rewrites and such are > ignored if you puta JSP in WEB-INF? Redirects to anything in WEB-INF will fail, since the redirect is actually issued by the client. A forward to somethin

Re: WEB-INF

2010-09-10 Thread michel
- Original Message - From: "Caldarale, Charles R" To: "Tomcat Users List" Sent: Friday, September 10, 2010 10:32 AM Subject: RE: WEB-INF From: michel [mailto:compu...@videotron.ca] Subject: Re: WEB-INF You get direct access to any JSP if you specify the URL

RE: WEB-INF

2010-09-10 Thread Leo Donahue - PLANDEVX
>From: michel [mailto:compu...@videotron.ca] >Subject: Re: WEB-INF > > >- Original Message - >From: "Leo Donahue - PLANDEVX" >To: "'Tomcat Users List'" >Sent: Friday, September 10, 2010 10:13 AM >Subject: WEB-INF > > >I&#

RE: WEB-INF

2010-09-10 Thread Caldarale, Charles R
> From: michel [mailto:compu...@videotron.ca] > Subject: Re: WEB-INF > You get direct access to any JSP if you specify the URL. Not true. There is no direct client access to anything under WEB-INF. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

RE: WEB-INF

2010-09-10 Thread Leo Donahue - PLANDEVX
>From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >Subject: RE: WEB-INF > >> From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] >> Subject: WEB-INF > > >> Is there a difference between securing the URL and >> securing the &

Re: WEB-INF

2010-09-10 Thread michel
- Original Message - From: "Leo Donahue - PLANDEVX" To: "'Tomcat Users List'" Sent: Friday, September 10, 2010 10:13 AM Subject: WEB-INF I've read that you can secure direct access to a JSP by placing it in the WEB-INF directory. I know you can also secure direct access to a JSP b

RE: WEB-INF

2010-09-10 Thread Caldarale, Charles R
> From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] > Subject: WEB-INF > I've read that you can secure direct access to a JSP > by placing it in the WEB-INF directory. That's an appropriate thing to do, not just for JSPs. > I know you can also secure direct access to a JSP by

RE: /WEB-INF/lib

2009-02-27 Thread Caldarale, Charles R
> From: Mudit Garg [mailto:maxmu...@gmail.com] > Subject: Re: /WEB-INF/lib > > You could set an explicit classpath in tomcat startup script like: Don't ever, ever, ever set CLASSPATH for Tomcat; you will confound the classloader design and end up with all sorts of ClassNotFou

Re: /WEB-INF/lib

2009-02-27 Thread Mudit Garg
Hi, You could set an explicit classpath in tomcat startup script like: for el in $db_drivers_home/*.jar; do CLASSPATH=$el:$CLASSPATH done export CLASSPATH These jars would then be in classpath for all applications though Regards Mudit On Fri, Feb 27, 2009 at

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread André Warnier
Mikolaj Rydzewski wrote: André Warnier wrote: chown root/root /bin/ps chmod 700 /bin/ps User can build his own ps binary. Security by obscurity is not a good way to go. I was just kidding. ;-) I'd still like to make it work though. It looks like such a nice way to solve the problem, apart f

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread Mikolaj Rydzewski
André Warnier wrote: chown root/root /bin/ps chmod 700 /bin/ps User can build his own ps binary. Security by obscurity is not a good way to go. -- Mikolaj Rydzewski - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread André Warnier
Mikolaj Rydzewski wrote: André Warnier wrote: start) su - tomcatuser -c "/var/lib/jvm/java $CONFIDENTIAL_SETTINGS -jar " All of your 'confidential settings' will be visible to all users with one command: ps aux Ooops. chown root/root /bin/ps chmod 700 /bin/ps Damn! it sounded so

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread Gregor Schneider
How about md5sum? Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To unsubscribe, e-mail:

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread Mikolaj Rydzewski
André Warnier wrote: start) su - tomcatuser -c "/var/lib/jvm/java $CONFIDENTIAL_SETTINGS -jar " All of your 'confidential settings' will be visible to all users with one command: ps aux There're ways to restrict such listing to only your processes. But anyway, command line arguments

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread André Warnier
Bill Barker wrote: This is totally Tomcat specific, so won't necessarily port if you decide to change containers (but without looking probably still works for GlassFish and JBoss). Tomcat does Ant style variable replacement when parsing web.xml (both the one in conf and the one in WEB-INF).

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread Mikolaj Rydzewski
André Warnier wrote: In addition, it would avoid having to put some potentially sensible values in a web-xml file which has to be readable by the Tomcat user. Also some other, than web.xml, file with sensible values has to readable by Tomcat user ;-) -- Mikolaj Rydzewski ---

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread André Warnier
Bill Barker wrote: "André Warnier" wrote in message news:498ad66a.4080...@ice-sa.com... Mikolaj Rydzewski wrote: André Warnier wrote: if I have a webapp consistig of just a couple of classes and a WEB-INF/web.xml config file, but this web.xml file contains some parameters that are "each-clie

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-05 Thread Rusty Wright
Of course it will; no doubts about it! Any self-respecting maven fanatic can assure you of that!! ;-) epicwin...@hotmail.com wrote: Thanks for all the replies. Nice to know i can do this without any side effects. I think I will have to look into maven and see if that fits my deployment need

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-05 Thread Bill Barker
"André Warnier" wrote in message news:498ad66a.4080...@ice-sa.com... > Mikolaj Rydzewski wrote: >> André Warnier wrote: >>> if I have a webapp consistig of just a couple of classes and a >>> WEB-INF/web.xml config file, but this web.xml file contains some >>> parameters that are "each-client-d

RE: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-05 Thread epicwin...@hotmail.com
Thanks for all the replies. Nice to know i can do this without any side effects. I think I will have to look into maven and see if that fits my deployment needs. _ Windows Live™: E-mail. Chat. Share. Get more ways to connect. h

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-05 Thread David Smith
epicwin...@hotmail.com wrote: > Is there any advantage why I should not just jar all my class files and put > them in WEB-INF/lib rather than exploding the jar file to the classes > directory? > > > I like developing with the classes and I understand it is nice to let tomcat > deploy a .war fil

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-05 Thread André Warnier
Mikolaj Rydzewski wrote: André Warnier wrote: if I have a webapp consistig of just a couple of classes and a WEB-INF/web.xml config file, but this web.xml file contains some parameters that are "each-client-dependent", and some customers are insisting to receive the updates as a war file, how

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-05 Thread Mikolaj Rydzewski
André Warnier wrote: if I have a webapp consistig of just a couple of classes and a WEB-INF/web.xml config file, but this web.xml file contains some parameters that are "each-client-dependent", and some customers are insisting to receive the updates as a war file, how can I achieve that ? Som

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-05 Thread André Warnier
Bill Barker wrote: ignoring the maven fanatics, Tomcat's classloader searches the WEB-INF/classes directory before the WEB-INF/lib/*.jar. This means that it is sometimes nice to use WEB-INF/classes for a development server. But for a production server you won't see much difference. Sorry t

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-05 Thread Bill Barker
ignoring the maven fanatics, Tomcat's classloader searches the WEB-INF/classes directory before the WEB-INF/lib/*.jar. This means that it is sometimes nice to use WEB-INF/classes for a development server. But for a production server you won't see much difference. wrote in message news:blu1

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-05 Thread Mikolaj Rydzewski
epicwin...@hotmail.com wrote: Is there any advantage why I should not just jar all my class files and put them in WEB-INF/lib rather than exploding the jar file to the classes directory? I like developing with the classes and I understand it is nice to let tomcat deploy a .war file but it als

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-04 Thread Rusty Wright
If you build your war files with maven you can use maven's profiles and have it build war files that contain settings tailored for each server. http://www.sonatype.com/books/maven-book/ http://www.exist.com/better-build-maven epicwin...@hotmail.com wrote: Is there any advantage why I should n

Re: WEB-INF/lib ignored in Tomcat 6

2007-03-04 Thread Martin Gainty
Hi Ron-- .\META-INF\context.xml has a reloadable attribute which must be set to true to tell tomcat to monitor jars in .\WEB-INF\lib http://tomcat.apache.org/tomcat-5.5-doc/config/loader.html also take a look at the delegate attribute to specifically load classes via parent class loader before

RE: WEB-INF/lib ignored in Tomcat 6

2007-03-04 Thread Caldarale, Charles R
> From: Ron Wheeler [mailto:[EMAIL PROTECTED] > Subject: Re: WEB-INF/lib ignored in Tomcat 6 > > Should I add a doc base to the application context? No; docBase should only be used when the app is stored outside of the appBase directory. > > Tomcat auto detects the libs unde

Re: WEB-INF/lib ignored in Tomcat 6

2007-03-04 Thread Ron Wheeler
Rashmi Rubdi wrote: Did you set the environment variables correctly? CATALINA_HOME , should point to the root folder of Tomcat's installation, and JAVA_HOME to JDK's root folder. I screwed up CATALINA_HOME but after correcting it and rebooting the problem remains. Also specify the dire

Re: WEB-INF/lib ignored in Tomcat 6

2007-03-04 Thread Rashmi Rubdi
Did you set the environment variables correctly? CATALINA_HOME , should point to the root folder of Tomcat's installation, and JAVA_HOME to JDK's root folder. Also specify the directory of your project in the docBase attribute of Context definition. Tomcat auto detects the libs under WEB-INF/

Re: WEB-INF/lib/*.jar

2006-11-23 Thread compuin5y313
r 2006 11:16 am Betreff: Re: WEB-INF/lib/*.jar > [EMAIL PROTECTED] a écrit : > > thanks all for your reply. > > > > actually, I have this kind of directory hierarchy: > > myapp/build.properties > > myapp/build.xml > > myapp/web/*.jsp > >

Re: WEB-INF/lib/*.jar

2006-11-23 Thread compuin5y313
- Originalnachricht - Von: David Delbecq <[EMAIL PROTECTED]> Datum: Donnerstag, 23. November 2006 11:16 am Betreff: Re: WEB-INF/lib/*.jar > [EMAIL PROTECTED] a écrit : > > thanks all for your reply. > > > > actually, I have this kind of directory hierarchy:

Re: WEB-INF/lib/*.jar

2006-11-23 Thread David Delbecq
gt; > Gop > > > > ----- Originalnachricht - > Von: "Caldarale, Charles R" <[EMAIL PROTECTED]> > Datum: Mittwoch, 22. November 2006 5:19 pm > Betreff: RE: WEB-INF/lib/*.jar > > >>> From: [EMAIL PROTECTED] >>> &

Re: RE: WEB-INF/lib/*.jar

2006-11-23 Thread compuin5y313
directory. It is really at the correct place, isn't it? Or do I have to specify any path to find WEB-INF/lib/*.jar? thanks for your help. Cheers, Gop - Originalnachricht - Von: "Caldarale, Charles R" <[EMAIL PROTECTED]> Datum: Mittwoch, 22. November 2006 5:19 pm Bet

Re: WEB-INF/lib/*.jar

2006-11-22 Thread Gaurav Kushwaha
Moreover, you should never put your applicaiton jars to common/lib since then those will be loaded by Application classloader and not WebAppClassLoader. This results in serious problems when you are running multiple web apps or upgrading your application's version. On 11/22/06, Caldarale, Charles

RE: WEB-INF/lib/*.jar

2006-11-22 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: WEB-INF/lib/*.jar > > it seems to me that my lib packages which are located under > myapp/web/WEB-INF/lib can not be recognized by Tomcat. Read the servlet spec: WEB-INF must be at the first level of the app deployment directory (or

RE: WEB-INF/lib/*.jar

2006-11-22 Thread Elliott Murray
Should it be: myapp/WEB-INF/lib Sounds like that path may have been set up by an IDE but not mapped in your context. Check your docBase path in your context file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 22 November 2006 15:34 To: Tomcat Users List Subj