Re: HOWTO: the right way to configure security constraints to protect CGI scripts in web.xml

2025-04-09 Thread Justin Chen
From: Christopher Schultz Sent: Thursday, April 10, 2025 2:22 To: users@tomcat.apache.org Subject: Re: HOWTO: the right way to configure security constraints to protect CGI scripts in web.xml Mark, On 4/8/25 5:40 PM, Mark Thomas wrote: > 8 Apr 2025 21:45:50 Ch

Re: HOWTO: the right way to configure security constraints to protect CGI scripts in web.xml

2025-04-09 Thread Christopher Schultz
Mark, On 4/8/25 5:40 PM, Mark Thomas wrote: 8 Apr 2025 21:45:50 Christopher Schultz : Justin, On 4/8/25 3:16 AM, Justin Chen wrote: Dear users and supporters, Currently I have two CGI scripts: 1. "/cgi-bin/update" //an administrative command, required role="admin" 2. "/cgi-bin/updateOrder" /

Re: HOWTO: the right way to configure security constraints to protect CGI scripts in web.xml

2025-04-08 Thread Rémy Maucherat
r security mapping would be open to second guesses. It is the same with any servlet that is using its path info liberally. Rémy > Chenjp > > From: Mark Thomas > Sent: Wednesday, April 9, 2025 5:40 > To: Tomcat Users List > Subject: Re: HOWTO: the right way to configure

Re: HOWTO: the right way to configure security constraints to protect CGI scripts in web.xml

2025-04-08 Thread Justin Chen
Sent: Wednesday, April 9, 2025 5:40 To: Tomcat Users List Subject: Re: HOWTO: the right way to configure security constraints to protect CGI scripts in web.xml 8 Apr 2025 21:45:50 Christopher Schultz : > Justin, > > On 4/8/25 3:16 AM, Justin Chen wrote: >> Dear users and supporters,

Re: HOWTO: the right way to configure security constraints to protect CGI scripts in web.xml

2025-04-08 Thread Mark Thomas
8 Apr 2025 21:45:50 Christopher Schultz : Justin, On 4/8/25 3:16 AM, Justin Chen wrote: Dear users and supporters, Currently I have two CGI scripts: 1. "/cgi-bin/update" //an administrative command, required role="admin" 2. "/cgi-bin/updateOrder" //update order, required role="biz" In order

Re: HOWTO: the right way to configure security constraints to protect CGI scripts in web.xml

2025-04-08 Thread Christopher Schultz
Justin, On 4/8/25 3:16 AM, Justin Chen wrote: Dear users and supporters, Currently I have two CGI scripts: 1. "/cgi-bin/update" //an administrative command, required role="admin" 2. "/cgi-bin/updateOrder" //update order, required role="biz" In order to protect above endpoints via web.xml secur

HOWTO: the right way to configure security constraints to protect CGI scripts in web.xml

2025-04-08 Thread Justin Chen
Dear users and supporters, Currently I have two CGI scripts: 1. "/cgi-bin/update" //an administrative command, required role="admin" 2. "/cgi-bin/updateOrder" //update order, required role="biz" In order to protect above endpoints via web.xml security-constraints mechanism, how shall I do? Rega

Re: How to write a filter in web.xml to accept partially a URL ?

2020-04-26 Thread Christopher Schultz
> rest of the URL when the 1st fitler does not match. I hope to > reject all the IP in this case > > Here are the filters, in the order that I add them in web.xml : > > Accept All > org.apache.catalina.filters.RemoteAddrFilter > > > allow > \d+\.\d+\.\d+\.\d+ &

Re: How to write a filter in web.xml to accept partially a URL ?

2020-04-25 Thread Frank Tornack
t; > 2) Block All : this one is more general and should match the > rest of > the URL when the 1st fitler does not match. I hope to reject all the > IP in > this case > > Here are the filters, in the order that I add them in web.xml : > > > Accep

How to write a filter in web.xml to accept partially a URL ?

2020-04-25 Thread Gilbert Soucy
accept all IP addresses 2) Block All : this one is more general and should match the rest of the URL when the 1st fitler does not match. I hope to reject all the IP in this case Here are the filters, in the order that I add them in web.xml : Accept All

Re: add mapping for jsp servlet in web.xml?

2016-10-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rob, On 10/1/16 8:59 AM, Rob Nikander wrote: > Hi, > > I’m upgrading from Tomcat 6 to Tomcat 8. The web.xml has a mapping > like this, to use the jsp servlet for all files in a certain > directory: > > jsp > /some-stuff/* > > In Tomcat 6 this

add mapping for jsp servlet in web.xml?

2016-10-01 Thread Rob Nikander
Hi, I’m upgrading from Tomcat 6 to Tomcat 8. The web.xml has a mapping like this, to use the jsp servlet for all files in a certain directory: jsp /some-stuff/* In Tomcat 6 this worked, but in 8, this *replaces* the existing mapping from the default web.xml (so .jsp fi

Re: Why does 'absolute-ordering' in web.xml without 'others' kill classpath scanning?

2015-02-15 Thread Mark Thomas
On 15/02/2015 17:42, Ryan Scharer wrote: > Thanks! That comment was an enormous help. I was able to achieve what I > wanted just by setting metadata-complete to true. I had previously assumed > that that would disable jar scanning. Instead it simply disables > web-fragment scanning. > > What still

Re: Why does 'absolute-ordering' in web.xml without 'others' kill classpath scanning?

2015-02-15 Thread Ryan Scharer
Thanks! That comment was an enormous help. I was able to achieve what I wanted just by setting metadata-complete to true. I had previously assumed that that would disable jar scanning. Instead it simply disables web-fragment scanning. What still confuses me is why the only mechanism provided by th

Re: Why does 'absolute-ordering' in web.xml without 'others' kill classpath scanning?

2015-02-13 Thread Mark Thomas
On 13/02/2015 18:49, Ryan Scharer wrote: > Chris, > > I share your misgivings about magic, though if it exhibits well-documented > and predictable behavior I usually just shrug and go along with it. Sadly > that doesn't seem to be the case here. It is documented but I'd agree it could be better d

Re: Why does 'absolute-ordering' in web.xml without 'others' kill classpath scanning?

2015-02-13 Thread Mark Thomas
On 13/02/2015 17:59, Ryan Scharer wrote: > Hey folks, > > I'm not sure if this is a bug or not, but I can't find any relevant > information in the spec to suggest the behavior is expected. > > There's a web-fragment in my classpath that I'd like to skip. The only way > to accomplish this that I k

Re: Why does 'absolute-ordering' in web.xml without 'others' kill classpath scanning?

2015-02-13 Thread Ryan Scharer
Chris, I share your misgivings about magic, though if it exhibits well-documented and predictable behavior I usually just shrug and go along with it. Sadly that doesn't seem to be the case here. I'll set aside some time to step through the Tomcat code to try to figure this out, though in the meant

Re: Why does 'absolute-ordering' in web.xml without 'others' kill classpath scanning?

2015-02-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ryan, On 2/13/15 12:59 PM, Ryan Scharer wrote: > I'm not sure if this is a bug or not, but I can't find any relevant > information in the spec to suggest the behavior is expected. > > There's a web-fragment in my classpath that I'd like to skip. T

Why does 'absolute-ordering' in web.xml without 'others' kill classpath scanning?

2015-02-13 Thread Ryan Scharer
Hey folks, I'm not sure if this is a bug or not, but I can't find any relevant information in the spec to suggest the behavior is expected. There's a web-fragment in my classpath that I'd like to skip. The only way to accomplish this that I know of is to put an stanza in my web.xml and omit an .

Re: External entities in web.xml

2014-03-26 Thread Konstantin Kolinko
2014-03-26 17:34 GMT+04:00 Robert Olofsson : > Hi! > > I just started an upgrade of our tomcat, 7.0.47, to 7.0.52 and got into a > problem. Tomcat did not want to start our webapp. Looking in the log > I see: > > Mar 26, 2014 2:10:42 PM org.apache.catalina.startup.ContextConfig > parseWebXml > SEVE

External entities in web.xml

2014-03-26 Thread Robert Olofsson
Hi! I just started an upgrade of our tomcat, 7.0.47, to 7.0.52 and got into a problem. Tomcat did not want to start our webapp. Looking in the log I see: Mar 26, 2014 2:10:42 PM org.apache.catalina.startup.ContextConfig parseWebXml SEVERE: Parse error in application web.xml file at jndi:/local

Re: PropertyNotFoundException does not work with custom error in web.xml

2014-01-14 Thread Tomcat Random
Sorry for the late reply, it works, just a dumb mistake on my part. I wasn't handling GETs in my custom error servlet. Thanks again, Alec On Thu, Jan 9, 2014 at 5:11 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Alec, > >

Re: PropertyNotFoundException does not work with custom error in web.xml

2014-01-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alec, On 1/9/14, 2:28 PM, Tomcat Random wrote: > I have a custom error servlet set up in my webapps web.xml file > like so: > > > java.lang.RuntimeException > /runtimeExceptionHandler > > In JSTL if a property is spelled incorrectly or doesn't

PropertyNotFoundException does not work with custom error in web.xml

2014-01-09 Thread Tomcat Random
I have a custom error servlet set up in my webapps web.xml file like so: java.lang.RuntimeException /runtimeExceptionHandler In JSTL if a property is spelled incorrectly or doesn't exist, the PropertyNotFoundException will not trigger the error servlet, even though PNFEs extend

Re: Dynamic auth-constraint in web.xml ?

2013-05-03 Thread Cédric Couralet
y to define >> auth-constraint dynamically in web.xml? >> >> For instance I'd like to have the following >> >> >> >> /something/(.*)/someotherthing >> PUT POST >> DELETE >> \1_something >> >> *_something >> >

Re: Dynamic auth-constraint in web.xml ?

2013-05-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Cédric, On 5/3/13 3:09 AM, Cédric Couralet wrote: > More of a servlet spec question than a tomcat one, and, from what > I read, a rather long shot, but is there a way to define > auth-constraint dynamically in web.xml? > > For insta

Dynamic auth-constraint in web.xml ?

2013-05-03 Thread Cédric Couralet
Hello, More of a servlet spec question than a tomcat one, and, from what I read, a rather long shot, but is there a way to define auth-constraint dynamically in web.xml? For instance I'd like to have the following /something/(.*)/someother

RE: in web.xml

2013-04-24 Thread Jeffrey Janner
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Wednesday, April 24, 2013 3:28 PM > To: Tomcat Users List > Subject: Re: in web.xml > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Jeff, > >

Re: in web.xml

2013-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 4/24/13 2:22 PM, Jeffrey Janner wrote: >> -Original Message- From: Jeffrey Janner >> [mailto:jeffrey.jan...@polydyne.com] Sent: Wednesday, April 24, >> 2013 1:12 PM To: Tomcat Users List Subject:

RE: in web.xml

2013-04-24 Thread Jeffrey Janner
> -Original Message- > From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] > Sent: Wednesday, April 24, 2013 1:12 PM > To: Tomcat Users List > Subject: RE: in web.xml > > > -Original Message- > > From: Christopher Schultz [mailto:ch...@ch

RE: in web.xml

2013-04-24 Thread Jeffrey Janner
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Wednesday, April 24, 2013 12:28 PM > To: Tomcat Users List > Subject: Re: in web.xml > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Jeff, > >

Re: in web.xml

2013-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 4/23/13 11:40 AM, Jeffrey Janner wrote: >> -Original Message- From: Christopher Schultz >> [mailto:ch...@christopherschultz.net] Sent: Thursday, April 18, >> 2013 5:01 PM To: Tomcat Users List Subject:

RE: in web.xml

2013-04-23 Thread Jeffrey Janner
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Thursday, April 18, 2013 5:01 PM > To: Tomcat Users List > Subject: Re: in web.xml > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Jakub, > >

Re: in web.xml

2013-04-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jakub, On 4/17/13 9:22 PM, Jakub 1983 wrote: > can I define database connection only in web.xml, without using > context.xml files ? > > can I pass database url, login and password into ? > > when I define database conn in con

Re: explanation of resource-ref in web.xml

2013-04-18 Thread Jakub 1983
Konstantin, thx for your reply. Do you know name of such a tool and application server which offers configuration of database connection on basis of web.xml.resource-ref ? regards Jakub On Thu, Apr 18, 2013 at 11:05 AM, Konstantin Kolinko wrote: > 2013/4/18 Jakub 1983 : > > I have tried googl

Re: explanation of resource-ref in web.xml

2013-04-18 Thread Konstantin Kolinko
2013/4/18 Jakub 1983 : > I have tried google, but this links don't explain me, eg 4 states > > > jdbc/primaryDB > jdbc/PrimaryDBInTheContainer > > I have already tried it, and it doesn't work. > > In my opinion is useless under tomcat, > > or better said, it has only informative value, at lea

Re: explanation of resource-ref in web.xml

2013-04-18 Thread Jakub 1983
kub 1983 [jjaku...@gmail.com] > > Sent: Wednesday, April 17, 2013 7:26 PM > > To: Tomcat Users List > > Subject: explanation of resource-ref in web.xml > > > > What the hell is in web.xml used for ? > > > > >

Re: explanation of resource-ref in web.xml

2013-04-17 Thread Howard W. Smith, Jr.
On Wed, Apr 17, 2013 at 10:38 PM, Leo Donahue - RDSA IT < leodona...@mail.maricopa.gov> wrote: > > > From: Jakub 1983 [jjaku...@gmail.com] > Sent: Wednesday, April 17, 2013 7:26 PM > To: Tomcat Users List > Subject: explanation of

Re: explanation of resource-ref in web.xml

2013-04-17 Thread Jakub 1983
I have tried, and definig only in context.xml is sufficient, in web.xml was commented, but I still could acces database connection from jndi. On Thu, Apr 18, 2013 at 4:38 AM, Leo Donahue - RDSA IT < leodona...@mail.maricopa.gov> wrote: > > ___

RE: in web.xml

2013-04-17 Thread Leo Donahue - RDSA IT
From: Jakub 1983 [jjaku...@gmail.com] Subject: in web.xml when I define database conn in context.xml, resource-ref is not needed at all, so what is it actually for ? ** You need something to

RE: explanation of resource-ref in web.xml

2013-04-17 Thread Leo Donahue - RDSA IT
From: Jakub 1983 [jjaku...@gmail.com] Sent: Wednesday, April 17, 2013 7:26 PM To: Tomcat Users List Subject: explanation of resource-ref in web.xml What the hell is in web.xml used for ? I use it in a context

explanation of resource-ref in web.xml

2013-04-17 Thread Jakub 1983
What the hell is in web.xml used for ? My imagination is as follows, please confirm or deny it. is part of servlet spec, not tomcat spec. context.xml and it's resource declaration is private concept of tomcat, not described by any external specificatin, jsr, etc. says, that in your w

in web.xml

2013-04-17 Thread Jakub 1983
can I define database connection only in web.xml, without using context.xml files ? can I pass database url, login and password into ? when I define database conn in context.xml, resource-ref is not needed at all, so what is it actually for ? regards Jakub

Re: Getting an absolute path into a servlet's context-param value w/o hardcoding in web.xml

2011-07-29 Thread chris derham
> In our environments, "/path/to/directory" will be different for different > deployments, and so we don't want to hardcode this into the web.xml else the > WAR is non-portable. > > Put the following on /conf/context.xml and it will override the value in web.xml -

Getting an absolute path into a servlet's context-param value w/o hardcoding in web.xml

2011-07-29 Thread Jason Pringle
Hi all, We have a 3rd party application that is deployed into our environment. As it is 3rd party we have no control over changing the servlet code itself. As part of the "configuration" of the servlet to be deployed into an environment, it wants a directory path passed as a servlet context pa

Re: RE: Static resource mapping in web.xml

2011-06-09 Thread Terence M. Bandoian
ent will be the easiest for them to see). Of course for this matter to succeed the creation of a fully automated web.xml building script will be required. Thanks for the help. Best regards, Federico. -Mensaje original- De: Christopher Schultz [mailto:ch...@christopherschultz.net

RE: Static resource mapping in web.xml

2011-06-09 Thread falvarez
). Of course for this matter to succeed the creation of a fully automated web.xml building script will be required. Thanks for the help. Best regards, Federico. -Mensaje original- De: Christopher Schultz [mailto:ch...@christopherschultz.net] Enviado el: jueves, 09 de juni

Re: Static resource mapping in web.xml

2011-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Federico, On 6/8/2011 2:04 PM, falva...@geocom.com.uy wrote: > If this is the case I could make it weight-in in the matter of building a > well formed web.xml. > > Although it could take some time. How many servlets do you have? > Mapping each serv

Re: Static resource mapping in web.xml

2011-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Federico, On 6/8/2011 10:17 AM, falva...@geocom.com.uy wrote: > > invoker > /* > Why not map the invoker to "/servlet/*"? Seems like that would fix your problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment:

Re: Static resource mapping in web.xml

2011-06-09 Thread Pid
On 08/06/2011 17:48, falva...@geocom.com.uy wrote: > Currently we do not have this kind of attacks because the app runs in an > intranet. But I know that in this closed scenario we should beware of the > users. But if your network is penetrated, your server will be vulnerable and therefore a resou

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
nd keep images under "/images". Thanks a lot Tim and thanks to all. Regards, Federico. -Mensaje original- De: Tim Funk [mailto:funk...@apache.org] Enviado el: miércoles, 08 de junio de 2011 14:53 Para: Tomcat Users List Asunto: Re: Static resource mapping in web.xml yes -

Re: Static resource mapping in web.xml

2011-06-08 Thread Tim Funk
yes - that would be a problem. The invoker doesn't know how to serve static resources. -Tim On Wed, Jun 8, 2011 at 1:44 PM, wrote: > I agree with you. > > The static resources where never a problem to me, but since I messed with > the web.xml they started to behave oddly. > > Maybe this line i

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
be interfering with the requests to resources? -Mensaje original- De: Tim Funk [mailto:funk...@apache.org] Enviado el: miércoles, 08 de junio de 2011 14:09 Para: Tomcat Users List Asunto: Re: Static resource mapping in web.xml If your images are in the correct directory then tomcat will

Re: Static resource mapping in web.xml

2011-06-08 Thread Tim Funk
If your images are in the correct directory then tomcat will serve them for you with its DefaultServlet. There should be nothing to do. Then to serve resources via the invoker - this is where the filter is handy. You declare the invoker servlet - but you do not map it. The servlet api allows you t

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
Thanks a lot André for taking the time in explaining. Currently we do not have this kind of attacks because the app runs in an intranet. But I know that in this closed scenario we should beware of the users. Hopefully, someday, we will be able to properly map this application in web.xml and

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
2011 12:44 Para: Tomcat Users List Asunto: Re: Static resource mapping in web.xml No - images will be served by the default servlet so nothing needs to be done for images. The filter is used as a way to let the invoker work and be a tiny bit more secure. So the filter is mapped to /* and will forw

Re: Static resource mapping in web.xml

2011-06-08 Thread André Warnier
. No, unless it is specifically mapped to a URL in web.xml. If invoker is not enabled, unless this class is mapped there is no possible harm. Your example made clear the damage potential in using invoker. But: unless there are JARs with this capabilities in Tomcats distribution or

Re: Static resource mapping in web.xml

2011-06-08 Thread Tim Funk
No - images will be served by the default servlet so nothing needs to be done for images. The filter is used as a way to let the invoker work and be a tiny bit more secure. So the filter is mapped to /* and will forward anything to the invoker serllet if the requested path *looks like one of your

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
resource mapping in web.xml falva...@geocom.com.uy wrote: ... > > Invoker: I know it is bad (even more than the overlord), probably don't know > how bad or the impact it has in usage, but for now it works. > > I've read some about it, but never could really understand

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
mcat Users List Asunto: Re: Static resource mapping in web.xml Your "easiest" workaround is to use a filter. So 1) have the default servlet map to /* (which is the default) 2) keep the invoker declared 3) And make your filter do this ... doFilter(..) { if (request.getServletPath(

Re: Static resource mapping in web.xml

2011-06-08 Thread André Warnier
falva...@geocom.com.uy wrote: ... Invoker: I know it is bad (even more than the overlord), probably don't know how bad or the impact it has in usage, but for now it works. I've read some about it, but never could really understand the problems it brings. http://wiki.apache.org/tomcat/FAQ/Mis

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
List Asunto: Re: Static resource mapping in web.xml On 08/06/2011 15:17, falva...@geocom.com.uy wrote: > I have a WEBAPP which uses the "invoker" servlet (i know how > bad it is, but for now it gets the job done). That is such a monumentally bad idea I'm not at al

Re: Static resource mapping in web.xml

2011-06-08 Thread Tim Funk
path. So a tipical URL was like"http://host:8080/webapp/servlet/home"; <http://host:8080/webapp/servlet/home>. To avoid the "servlet" part of the URL I layed hands in "web.xml". This

Re: Static resource mapping in web.xml

2011-06-08 Thread Mark Thomas
On 08/06/2011 15:17, falva...@geocom.com.uy wrote: > I have a WEBAPP which uses the "invoker" servlet (i know how > bad it is, but for now it gets the job done). That is such a monumentally bad idea I'm not at all sure you really do understand just how bad it is. >

Static resource mapping in web.xml

2011-06-08 Thread falvarez
static content is under "/images/" path. So a tipical URL was like "http://host:8080/webapp/servlet/home";. To avoid the "servlet" part of the URL I layed hands in "web.xml"

Re: StartUpServlet in web.xml is not executed

2010-12-14 Thread Pid *
On 14 Dec 2010, at 14:13, dfsdf fsdfsd wrote: > Hi > I am using Tomcat 5.5.4 under Unix Sun Solaris. > I have a servlet that should be executed on web.xml > > http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.c

Re: StartUpServlet in web.xml is not executed

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sandy, On 12/14/2010 9:13 AM, dfsdf fsdfsd wrote: Please change your "name" to reflect your real name. Or a fake name if you wish. "dfsdf fsdfsd" means you're just not trying hard enough. > I am using Tomcat 5.5.4 under Unix Sun Solaris. As Chuck s

RE: StartUpServlet in web.xml is not executed

2010-12-14 Thread Caldarale, Charles R
> From: dfsdf fsdfsd [mailto:budihartono...@yahoo.com] > Subject: StartUpServlet in web.xml is not executed > I am using Tomcat 5.5.4 under Unix Sun Solaris. What happens if you try it on a version of Tomcat that isn't older than dirt (measured in Internet years)? 5.5.4 cam

StartUpServlet in web.xml is not executed

2010-12-14 Thread dfsdf fsdfsd
Hi I am using Tomcat 5.5.4 under Unix Sun Solaris. I have a servlet that should be executed on web.xml http://java.sun.com/xml/ns/j2ee";     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.

Re: Spring security configuration in web.xml results in 403 error

2010-07-23 Thread André Warnier
Ashish Jain wrote: any takers for this Q??? On Thu, Jul 15, 2010 at 1:38 PM, Ashish Jain wrote: Hi, I have an application which uses non interactive login and hence utilizes NONLogin Authenticator in tomcat. Here is a snippet from web.xml. contextConfigLocation /WEB-INF/app

Re: Spring security configuration in web.xml results in 403 error

2010-07-22 Thread Ashish Jain
any takers for this Q??? On Thu, Jul 15, 2010 at 1:38 PM, Ashish Jain wrote: > Hi, > > I have an application which uses non interactive login and hence utilizes > NONLogin Authenticator in tomcat. Here is a snippet from web.xml. > > > contextConfigLocation > /WEB-INF/application

Spring security configuration in web.xml results in 403 error

2010-07-15 Thread Ashish Jain
Hi, I have an application which uses non interactive login and hence utilizes NONLogin Authenticator in tomcat. Here is a snippet from web.xml. contextConfigLocation /WEB-INF/applicationContext-security.xml springSecurityFilterChain org.springframework.web.fil

RE: security-constraint in web.xml - order/priority

2010-03-10 Thread Caldarale, Charles R
> From: Mats Eklund [mailto:mats.ekl...@yahoo.com] > Subject: security-constraint in web.xml - order/priority > > If I have more than one security-constraint tags in my web.xml (some > with, some without auth-constraints), which one takes precedence for a > specific reques

security-constraint in web.xml - order/priority

2010-03-10 Thread Mats Eklund
Hi, If I have more than one security-constraint tags in my web.xml (some with, some without auth-constraints), which one takes precedence for a specific request? Thanks, Mats

Re: Help with security-constraint in web.xml

2010-01-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 1/4/2010 6:45 PM, Joe Hansen wrote: > I just forgot to enable the HTTPS Connector! Login form is working now > over https. > > redirectPort="8443" /> > > maxThreads="150" scheme="https" secure="true" > clientAuth="false" sslProtocol

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
e: Help with security-constraint in web.xml >> >> However, when I enter the login credentials and submit the >> form, nothing happens. Somehow changing the redirectPort >> seems to have broken the login form. > > Turn on the AccessLogValve to see what's reaching Tomc

RE: Help with security-constraint in web.xml

2010-01-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Help with security-constraint in web.xml > > However, when I enter the login credentials and submit the > form, nothing happens. Somehow changing the redirectPort > seems to have broken the login form. Turn on

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
the login form. I'm sure there must be a simple explanation. Chuck, please help me out!! Thank you, Joe On Mon, Jan 4, 2010 at 3:25 PM, Caldarale, Charles R wrote: >> From: Joe Hansen [mailto:joe.hansen...@gmail.com] >> Subject: Re: Help with security-constraint in web.xml &g

RE: Help with security-constraint in web.xml

2010-01-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Help with security-constraint in web.xml > > Only a couple of pages need to be served on HTTPS on our website. All > the remaining pages could be accessed using just HTTP. Then I'd use what you've got and

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
Chuck, >> No, I said you could handle the SSL encryption/decryption in httpd; the >> redirection still has to occur by Tomcat recognizing a reference to a >> confidential resource. I did configure the SSL on the httpd end (c:\Apache\conf\extra\httpd-ssl.conf) file. >> As far as how to do so, y

RE: Help with security-constraint in web.xml

2010-01-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Help with security-constraint in web.xml > > You were saying that I should handle the forced HTTPS redirection of > certain pages on the httpd end, right? No, I said you could handle the SSL encryption/decryptio

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
es on the httpd end, right? Can you please elaborate on how to do it or give me pointers on how it could be done? Thank you!! Joe On Mon, Jan 4, 2010 at 2:57 PM, Caldarale, Charles R wrote: >> From: Joe Hansen [mailto:joe.hansen...@gmail.com] >> Subject: Help with security-cons

RE: Help with security-constraint in web.xml

2010-01-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Help with security-constraint in web.xml > > What do I need to do so that the user is directed to > https://ourwebsite.com/spring_security_login instead Fix the redirectPort attribute in your elements in conf/server.x

Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
Hey all, We are using Tomcat 6.0 / Apache 2.2. We would like the user to login over HTTPS rather than plain HTTP. So, I have defined the following security-constraint in the web.xml file of our web application: Login Login

Re: Version in web.xml

2009-09-07 Thread Mark Thomas
David Balažic wrote: > Hi! > > Is the version mismatch in the web-app tag, like this: > > http://java.sun.com/xml/ns/javaee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_

Version in web.xml

2009-09-07 Thread David Balažic
Hi! Is the version mismatch in the web-app tag, like this: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";> an error? Or is it vali

Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/24/2009 3:27 AM, André Warnier wrote: > Sriganesh Ananth wrote: > What also still smells fishy is the line >> Alias /test /var/www/testapp/ > > Why is it there ? What does it achieve, that the following 2 lines do not ? >> JkMount /*.do a

Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-24 Thread André Warnier
Sriganesh Ananth wrote: Hi Andre, I got Forbidden - You don't have permission to access /test/WEB-INF/web.xml on this server. Under httpd.conf, just before VirtualHost I have following to deny all from accessing WEB-INF folder. Httpd.conf configuration: # Globally deny access to the WEB-INF d

Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Sriganesh Ananth
Hi Andre, I got Forbidden - You don't have permission to access /test/WEB-INF/web.xml on this server. Under httpd.conf, just before VirtualHost I have following to deny all from accessing WEB-INF folder. Httpd.conf configuration: # Globally deny access to the WEB-INF directory deny from

Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread André Warnier
Sriganesh Ananth wrote: Chuck, you rock!!! That part, I tend to agree. I changed the appBase to "/var/www" for Host, added "testapp" in the Context docBase and restarted the tomcat and it worked!!! But this part, and what follows : Httpd.conf configuration: DocumentRoot /var/www/testapp

Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Sriganesh Ananth
in file system and reporting 404 error rather mapping in >> web.xml > >>       > unpackWARs="true"> > > The above is wrong; the appBase should be "/var/www". > >>         >                  directory="logs"  prefix="oss.com_

RE: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Caldarale, Charles R
> From: Sriganesh Ananth [mailto:sriganesh.anant...@gmail.com] > Subject: Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching > servlet file in file system and reporting 404 error rather mapping in > web.xml >unpackWARs="true"> The above is wrong; the

Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Sriganesh Ananth
gt; file in file system and reporting 404 error rather mapping in web.xml >> >> The issue is Tomcat 5.5.x looks for a servlet file under server's >> physical file system and reporting HTTP 404 error rather than going to >> the servlet mapping in web.xml. > > Post you

RE: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Caldarale, Charles R
> From: Sriganesh Ananth [mailto:sriganesh.anant...@gmail.com] > Subject: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet > file in file system and reporting 404 error rather mapping in web.xml > > The issue is Tomcat 5.5.x looks for a servlet file under server&#x

Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet file in file system and reporting 404 error rather mapping in web.xml

2009-04-23 Thread Sriganesh Ananth
mapping in web.xml. Tomcat 4.1.x doesn’t have this problem. I am searching all support group from past many weeks and still not able to resolve this issue. Application Structure: ROOT --testapp ---test index.html WEB-INF

Re: Is there a configurable parameter in web.xml for....

2009-03-10 Thread Kees Jan Koster
Dear Paul, ... the time period that tomcat spends honouring current requests when the server is shutdown? We have a web app used for secure file transfers and occasionally we need to take it down, however some requests for downloads can take more than an hour as the system allows very la

Is there a configurable parameter in web.xml for....

2009-03-05 Thread paul.ockleford
... the time period that tomcat spends honouring current requests when the server is shutdown? We have a web app used for secure file transfers and occasionally we need to take it down, however some requests for downloads can take more than an hour as the system allows very large files to be uploa

Re: relative paths in web.xml [solved]

2008-09-10 Thread Jordan Michaels
Just so folks are aware, this has been solved. Apparently is was the servlet that was resolving the location of the XML file based off the Context Docbase, and there was a trick to getting it to realize that the file path you were passing to it was a full file path and not a relative file path. In

Re: relative paths in web.xml

2008-09-09 Thread Jordan Michaels
Hmm... I tried this, and it looks as though Tomcat still pre-pends the "/home/myuser/public_html/" to my XML file. My servlet throws the error: java.io.FileNotFoundException: /home/myuser/public_html/path/to/tomcat/conf/myservlet/myxmlfile.xml and my file is really located at: /path/to/tomcat/co

Re: relative paths in web.xml

2008-09-09 Thread Bill Barker
"Jordan Michaels" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to set up a "init-param" in Tomcat's main web.xml file (the > one in $CATALINA_HOME/conf/web.xml) that looks similar to the following: > > >myServlet >path.to.my.Servlet > >

  1   2   >