Re: META-INF/context.xml and deploy issue (web.xml removed?)

2014-12-04 Thread Mark Thomas
the existing webapps/xwiki/WEB-INF/web.xml accordingly. update of web.xml triggered the app reload which is expected. At this point I wanted to adjust the database configuration, ie by modifying webapps/xwiki/META-INF/context.xml. When I do this the changes are not taken into account because the file

The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

2014-10-02 Thread Gibran Castillo
this are welcome. HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application *type* Exception report *message* *The absolute uri: http://java.sun.com/jsp/jstl/core http://java.sun.com/jsp/jstl/core cannot

Re: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

2014-10-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gibran, On 10/2/14 3:59 PM, Gibran Castillo wrote: I deployed donow62 Spring MVC app into Tomcat by placing donow62.xml file in $CATALINA_HOME/conf/Catalina/localhost The contents of donow62.xml are as follow: Context

Re: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

2014-10-02 Thread Gibran Castillo
To fix the problem I put the .jar files in tomcat's lib directory and it works best way to do this is like you said to put the *.jar files in the WEB-INF/lib directory, build the project as WAR and deploy the war file in Tomcat Where do I place the .war file in Tomcat? in the

Re: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

2014-10-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gibran, On 10/2/14 5:04 PM, Gibran Castillo wrote: To fix the problem I put the .jar files in tomcat's lib directory and it works best way to do this is like you said to put the *.jar files in the WEB-INF/lib directory, build the project as

Re: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

2014-10-02 Thread Gibran Castillo
Ok, thanks On Thu, Oct 2, 2014 at 5:14 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gibran, On 10/2/14 5:04 PM, Gibran Castillo wrote: To fix the problem I put the .jar files in tomcat's lib directory and it works best

Re: web.xml authentication and Tomcat Realm

2014-09-08 Thread Ja kub
...@internetallee.de] Sent: Thursday, 4 September 2014 3:29 PM To: Tomcat Users List Subject: Re: web.xml authentication and Tomcat Realm On 4. September 2014 05:35:42 MESZ, Dalecki, Janusz jdale...@tycoint.com wrote: Hi, I am just wondering whether somehow I can use web.xml login-config

RE: web.xml authentication and Tomcat Realm

2014-09-07 Thread Dalecki, Janusz
-Original Message- From: Neven Cvetkovic [mailto:neven.cvetko...@gmail.com] Sent: Friday, 5 September 2014 11:40 PM To: Tomcat Users List Subject: Re: web.xml authentication and Tomcat Realm Hey Janusz, On Thu, Sep 4, 2014 at 8:02 PM, Dalecki, Janusz jdale...@tycoint.com wrote: Follow

Re: web.xml authentication and Tomcat Realm

2014-09-05 Thread Daniel Mikusa
On Thu, Sep 4, 2014 at 8:02 PM, Dalecki, Janusz jdale...@tycoint.com wrote: -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, 5 September 2014 12:03 AM To: Tomcat Users List Subject: Re: web.xml authentication and Tomcat Realm

Re: web.xml authentication and Tomcat Realm

2014-09-05 Thread Neven Cvetkovic
in the database. In my web.xml I have login-config element and security constraint as follows: security-constraint web-resource-collection web-resource-nameAdmin/web-resource-name url-pattern/auth/*/url-pattern /web

RE: web.xml authentication and Tomcat Realm

2014-09-04 Thread Dalecki, Janusz
-Original Message- From: Felix Schumacher [mailto:felix.schumac...@internetallee.de] Sent: Thursday, 4 September 2014 3:29 PM To: Tomcat Users List Subject: Re: web.xml authentication and Tomcat Realm On 4. September 2014 05:35:42 MESZ, Dalecki, Janusz jdale...@tycoint.com wrote: Hi

Re: web.xml authentication and Tomcat Realm

2014-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Janusz, On 9/4/14 2:30 AM, Dalecki, Janusz wrote: -Original Message- From: Felix Schumacher [mailto:felix.schumac...@internetallee.de] Sent: Thursday, 4 September 2014 3:29 PM To: Tomcat Users List Subject: Re: web.xml authentication

RE: web.xml authentication and Tomcat Realm

2014-09-04 Thread Dalecki, Janusz
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, 5 September 2014 12:03 AM To: Tomcat Users List Subject: Re: web.xml authentication and Tomcat Realm -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Janusz, On 9/4/14 2:30 AM, Dalecki

web.xml authentication and Tomcat Realm

2014-09-03 Thread Dalecki, Janusz
Hi, I am just wondering whether somehow I can use web.xml login-config/ to point to the Tomcat JDBC Realm that I am using. Are those two completely disjoint or I can link them together. Regards, Janusz This e-mail contains privileged and confidential information

Re: web.xml authentication and Tomcat Realm

2014-09-03 Thread Felix Schumacher
On 4. September 2014 05:35:42 MESZ, Dalecki, Janusz jdale...@tycoint.com wrote: Hi, I am just wondering whether somehow I can use web.xml login-config/ to point to the Tomcat JDBC Realm that I am using. Are those two completely disjoint or I can link them together. They are disjoint. web.xml

Re: web.xml processing order of directives - filter vs security-constraint

2014-07-06 Thread Falco Schwarz
Konstantin, On Sat, Jul 5, 2014 at 3:26 PM, Konstantin Kolinko knst.koli...@gmail.com wrote: You can either perform IP filtering in a Valve (that will be in the pipeline before an Authenticator), or you can remove security-constraint and implement authentication and authorization in a filter

Re: web.xml processing order of directives - filter vs security-constraint

2014-07-06 Thread Felix Schumacher
On 5. Juli 2014 19:04:26 MESZ, Falco Schwarz hid...@falco.me wrote: On Sat, Jul 5, 2014 at 6:17 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: (Sorry, late to the thread but ...) if you just want to restrict access to a resource to localhost, why not os-level e.g. an iptables rule?

Re: web.xml processing order of directives - filter vs security-constraint

2014-07-06 Thread Konstantin Kolinko
2014-07-06 13:45 GMT+04:00 Falco Schwarz hid...@falco.me: Konstantin, On Sat, Jul 5, 2014 at 3:26 PM, Konstantin Kolinko knst.koli...@gmail.com wrote: You can either perform IP filtering in a Valve (that will be in the pipeline before an Authenticator), or you can remove security-constraint

Re: web.xml processing order of directives - filter vs security-constraint

2014-07-06 Thread Konstantin Kolinko
(that is if you do not want to configure it separately in web.xml), http://docs.spring.io/spring-security/site/docs/3.2.4.RELEASE/reference/htmlsingle/#ns-custom-filters From a systems administrator perspective there is no way I would present a login form first and then deny via ip filters, but I guess

Re: web.xml processing order of directives - filter vs security-constraint

2014-07-06 Thread Falco Schwarz
On Sun, Jul 6, 2014 at 1:35 PM, Konstantin Kolinko knst.koli...@gmail.com wrote: I think you can inject RemoteAddrFilter into Spring Security filter chain (that is if you do not want to configure it separately in web.xml), You are right, I did not think of that. FWIW this is easily doable

Re: web.xml processing order of directives - filter vs security-constraint

2014-07-05 Thread Falco Schwarz
step 2 and 3? Relevant parts of web.xml, webapp is called infra: servlet servlet-nameJMXProxy/servlet-name servlet-classorg.apache.catalina.manager.JMXProxyServlet/servlet-class /servlet servlet-mapping servlet-nameJMXProxy/servlet-name url-pattern/jmx/*/url-pattern

Re: web.xml processing order of directives - filter vs security-constraint

2014-07-05 Thread Mark Thomas
, though in the wrong order. This is how the request is being processed right now: 1) user accesses /infra/jmx 2) user has to authenticate 3) user is being denied Is it possible to switch step 2 and 3? Relevant parts of web.xml, webapp is called infra: servlet servlet-nameJMXProxy

Re: web.xml processing order of directives - filter vs security-constraint

2014-07-05 Thread Konstantin Kolinko
2014-07-05 11:41 GMT+04:00 Falco Schwarz hid...@falco.me: I should add that the IP restriction is applied via filter, not with a tomcat Valve. Essentially the question breaks down to this: Is it possible in any way for a filter to be applied before the evaluation of the security-constraint?

Re: web.xml processing order of directives - filter vs security-constraint

2014-07-05 Thread Falco Schwarz
On Sat, Jul 5, 2014 at 12:39 PM, Mark Thomas m...@homeinbox.net wrote: Maybe look at a third party security plugin like Spring Security? Not sure if this is supported but worth a look. Mark Thanks Mark and Konstantin for your quick replies. I tried to accomplish this only using Spring

Re: web.xml processing order of directives - filter vs security-constraint

2014-07-05 Thread Hassan Schroeder
On Sat, Jul 5, 2014 at 9:00 AM, Falco Schwarz hid...@falco.me wrote: In the end I found a solution which suits my needs: combining the RemoteAddrFilter with Spring Security. This way the RemoteAddrFilter always prevents access if the client is not localhost. (Sorry, late to the thread but

Re: web.xml processing order of directives - filter vs security-constraint

2014-07-05 Thread Falco Schwarz
On Sat, Jul 5, 2014 at 6:17 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: (Sorry, late to the thread but ...) if you just want to restrict access to a resource to localhost, why not os-level e.g. an iptables rule? Well, the reason behind the restriction is that I would like to use

web.xml processing order of directives - filter vs security-constraint

2014-07-04 Thread Falco Schwarz
accesses /infra/jmx 2) user has to authenticate 3) user is being denied Is it possible to switch step 2 and 3? Relevant parts of web.xml, webapp is called infra: servlet servlet-nameJMXProxy/servlet-name servlet-classorg.apache.catalina.manager.JMXProxyServlet/servlet-class /servlet servlet

RE: Deploying JerseyWS 2.8 w/o web.xml

2014-06-02 Thread Cuneo, Nicholas
[mailto:ch...@christopherschultz.net] Sent: Friday, May 30, 2014 4:55 PM To: Tomcat Users List Subject: Re: Deploying JerseyWS 2.8 w/o web.xml -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nick On 5/30/14, 5:03 PM, Cuneo, Nicholas wrote: We are trying to deploy a webservice to tomcat 8.0.5 using

RE: Deploying JerseyWS 2.8 w/o web.xml

2014-06-02 Thread Cuneo, Nicholas
: RE: Deploying JerseyWS 2.8 w/o web.xml We are using Ivy for our dependency manager, but I'm not exactly following what you mean. Are you suggesting I'm supplying a jar file in my war that doesn't need to be there because Tomcat has its own version of it? Thanks, Nick -Original Message

Re: Deploying JerseyWS 2.8 w/o web.xml

2014-06-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicholas, On 6/2/14, 12:38 PM, Cuneo, Nicholas wrote: I think you are correct, maybe I need to exclude some jars from my bundle? find . -name *.jar | xargs grep ServletContainerInitializer.class Binary file ./servlet-api.jar matches find

RE: Deploying JerseyWS 2.8 w/o web.xml

2014-06-02 Thread Cuneo, Nicholas
: Re: Deploying JerseyWS 2.8 w/o web.xml -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicholas, On 6/2/14, 12:38 PM, Cuneo, Nicholas wrote: I think you are correct, maybe I need to exclude some jars from my bundle? find . -name *.jar | xargs grep ServletContainerInitializer.class Binary file

Deploying JerseyWS 2.8 w/o web.xml

2014-05-30 Thread Cuneo, Nicholas
Hi, We are trying to deploy a webservice to tomcat 8.0.5 using Jersey WS 2.8. In the Jersey documentation it mentions deploying without the need for a web.xml in your war file using annotations, so I thought I'd give that a try. However, when I go to deploy my webservice Tomcat is throwing

Re: Deploying JerseyWS 2.8 w/o web.xml

2014-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nick On 5/30/14, 5:03 PM, Cuneo, Nicholas wrote: We are trying to deploy a webservice to tomcat 8.0.5 using Jersey WS 2.8. In the Jersey documentation it mentions deploying without the need for a web.xml in your war file using annotations, so I

Same web app, two web.xml descriptors

2014-05-04 Thread Gary Briggs
, to that one directive]. Is there some easy way to manage one web application with two different web.xml files? What I really want is, say, context.xml to create two contexts with two paths, with different web.xml files. One solution I can imagine is something like: ?xml version=1.0 encoding=UTF-8? Context

Include of external entity to web.xml is stopped working on 7.0.52

2014-04-22 Thread Viktor Gamov
Hello tomcat users, Before I can submit formal bug to the issue tracker, I want to ask here. I have web.xml and I include some text file in it using !ENTITY tag: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http

Re: Include of external entity to web.xml is stopped working on 7.0.52

2014-04-22 Thread Mark Thomas
On 22/04/2014 16:42, Viktor Gamov wrote: snip/ It worked fine until version 7.0.52. With 7.0.52, I'm getting following error during application deployment Read this: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html Look for this: xmlBlockExternal The default changed in 7.0.52.

Re: Include of external entity to web.xml is stopped working on 7.0.52

2014-04-22 Thread Konstantin Kolinko
2014-04-22 19:42 GMT+04:00 Viktor Gamov viktor.ga...@gmail.com: Hello tomcat users, Before I can submit formal bug to the issue tracker, I want to ask here. I have web.xml and I include some text file in it using !ENTITY tag: As I already answered about a week a go, you have to enable

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

Re: External entities in web.xml

2014-03-26 Thread Konstantin Kolinko
parseWebXml SEVERE: Parse error in application web.xml file at jndi:/localhost/bios/WEB-INF/web.xml java.io.FileNotFoundException: Could not resolve XML resource [null] with public ID [null], system ID [dpservices.xml] and base URI [jndi:/localhost/bios/WEB-INF/web.xml] to a known, local

Adding another schema to the web.xml

2014-01-16 Thread Blaise Gervais
Hello, I have a webapp named portal who gather informations about other webapps (modules) running on the same Tomcat instance. The portal use JMX to list all the webapps and then parse the web.xml to extract the module 's name and description. So I can create a page with a link to all those

Re: Adding another schema to the web.xml

2014-01-16 Thread André Warnier
Blaise Gervais wrote: Hello, I have a webapp named portal who gather informations about other webapps (modules) running on the same Tomcat instance. The portal use JMX to list all the webapps and then parse the web.xml to extract the module 's name and description. So I can create a page

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

2014-01-14 Thread Tomcat Random
/14, 2:28 PM, Tomcat Random wrote: I have a custom error servlet set up in my webapps web.xml file like so: error-page exception-typejava.lang.RuntimeException/exception-type location/runtimeExceptionHandler/location /error-page 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: error-page exception-typejava.lang.RuntimeException/exception-type location/runtimeExceptionHandler/location /error-page In JSTL if a property is spelled incorrectly or doesn't exist

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: error-page exception-typejava.lang.RuntimeException/exception-type location/runtimeExceptionHandler/location /error

Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
Hi, Is it possible to have a default web.xml that will be loaded for all applications inside a Host? The doc states this is possible for context.xml which is computed from:  - $CATALINA_BASE/conf/context.xml  - $CATALINA_BASE/conf/[enginename]/[hostname]/context.xml.default  - /META-INF

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
On 16/05/2013 09:40, Xavier Dury wrote: Hi, Is it possible to have a default web.xml that will be loaded for all applications inside a Host? The doc states this is possible for context.xml which is computed from: - $CATALINA_BASE/conf/context.xml - $CATALINA_BASE/conf/[enginename

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
Thanks, I didn't find any reference to web.xml.default in the doc. Maybe, I wasn't looking at the right place. Regards, Xavier Date: Thu, 16 May 2013 09:49:34 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Default web.xml

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
Regards, Xavier Date: Thu, 16 May 2013 09:49:34 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Default web.xml for all webapps of a specific Host On 16/05/2013 09:40, Xavier Dury wrote: Hi, Is it possible to have a default

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
I tried adding a $CATALINA_BASE/conf/[enginename]/[hostname]/web.xml.default and checked what was the resulting web.xml with logEffectiveWebXml=true. I noticed that the order of the various elements (filter, servlets...) appeared as:  1. conf/web.xml  2. WEB-INF/web.xml  3. $CATALINA_BASE/conf

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
On 16/05/2013 14:47, Xavier Dury wrote: I tried adding a $CATALINA_BASE/conf/[enginename]/[hostname]/web.xml.default and checked what was the resulting web.xml with logEffectiveWebXml=true. I noticed that the order of the various elements (filter, servlets...) appeared as: 1. conf

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
Ok, I checked with only listeners and filter-mappings (whose order matters) and the resulting order is the following (from top to bottom in effective web.xml): 1: main web.xml 2: global web.xml 3: host web.xml.default So is it possible to have them in order (2, 3, 1)... I guess not but there's

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
On 16/05/2013 15:55, Xavier Dury wrote: Ok, I checked with only listeners and filter-mappings (whose order matters) and the resulting order is the following (from top to bottom in effective web.xml): 1: main web.xml 2: global web.xml 3: host web.xml.default So is it possible to have

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
Well, I tried to declare the per-host web.xml as a web-fragment like this but it does not work: web-fragment ordering before others / /before /ordering ... /web-frament Tomcat is expecting a web-app which can only contain absolute-ordering which must reference other fragments. I wanted

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
Nevermind my last mail, you responded while I was typing. I will look into ServletContextInitializer. Thanks, Xavier From: kal...@hotmail.com To: users@tomcat.apache.org Subject: RE: Default web.xml for all webapps of a specific Host Date: Thu, 16

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 security-constraint display-name/display-name web-resource

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 instance I'd like to have

Re: Dynamic auth-constraint in web.xml ?

2013-05-03 Thread Cédric Couralet
-constraint dynamically in web.xml? For instance I'd like to have the following security-constraint display-name/display-name web-resource-collection web-resource-name/web-resource-name url-pattern/something/(.*)/someotherthing/url-pattern http-methodPUT/http-method http-methodPOST/http-method

Re: resource-ref 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: resource-ref in web.xml

RE: resource-ref 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: resource-ref in web.xml -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 4/23/13 11:40 AM, Jeffrey Janner

RE: resource-ref 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: resource-ref in web.xml -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent

Re: resource-ref 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: resource-ref in web.xml

RE: resource-ref 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: resource-ref in web.xml -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 4/24/13 2:22 PM, Jeffrey Janner

RE: resource-ref 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: resource-ref in web.xml -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jakub, On 4/17/13 9:22 PM, Jakub 1983 wrote

Re: explanation of resource-ref in web.xml

2013-04-18 Thread Jakub 1983
: 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 resource-ref in web.xml used for ? I use it in a context

Re: explanation of resource-ref in web.xml

2013-04-18 Thread Konstantin Kolinko
, this element says that your application needs a database connection. Thus the tool will offer you to configure one. Configuration of connection itself is always server-specific. Thus it is in context.xml, not web.xml

Re: explanation of resource-ref in web.xml

2013-04-18 Thread Jakub 1983
, this element says that your application needs a database connection. Thus the tool will offer you to configure one. Configuration of connection itself is always server-specific. Thus it is in context.xml, not web.xml

Re: resource-ref 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 resource-ref ? when I define database conn in context.xml

resource-ref 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 resource-ref ? when I define database conn in context.xml, resource-ref is not needed at all, so what is it actually for ? regards Jakub

explanation of resource-ref in web.xml

2013-04-17 Thread Jakub 1983
What the hell is resource-ref in web.xml used for ? My imagination is as follows, please confirm or deny it. resource-ref 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

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 resource-ref in web.xml used for ? I use

RE: resource-ref in web.xml

2013-04-17 Thread Leo Donahue - RDSA IT
From: Jakub 1983 [jjaku...@gmail.com] Subject: resource-ref 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

Re: explanation of resource-ref in web.xml

2013-04-17 Thread Jakub 1983
I have tried, and definig only Resource in context.xml is sufficient, resource-ref 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: 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 resource-ref in web.xml What

Re: Offline generation of effective web.xml

2012-09-12 Thread Violeta Georgieva
in my context.xml then the effective web.xml will be logged in the log files during application start. Is there a way (library etc.) that I can use to generated effective web.xml offline i.e. without starting the application. Thanks in advance. Violeta No, although I am

Re: Offline generation of effective web.xml

2012-09-11 Thread Mark Thomas
Violeta Georgieva violet...@apache.org wrote: Hi, I do know that if I provide logEffectiveWebXml=true in my context.xml then the effective web.xml will be logged in the log files during application start. Is there a way (library etc.) that I can use to generated effective web.xml offline i.e

Re: Offline generation of effective web.xml

2012-09-11 Thread Violeta Georgieva
that if I provide logEffectiveWebXml=true in my context.xml then the effective web.xml will be logged in the log files during application start. Is there a way (library etc.) that I can use to generated effective web.xml offline i.e. without starting the application. Thanks in advance

Re: Offline generation of effective web.xml

2012-09-11 Thread Mark Thomas
to be done: - the end result needs to be useable by both Jasper and Catalina - that pretty much means a new package and JAR under o.a.tomcat - Jasper cannot depend on Catalina (hence why everything needs to move packages) - the things that need to move to this new package - the web.xml parsing (i.e.the

Re: Offline generation of effective web.xml

2012-09-11 Thread Konstantin Kolinko
Georgieva violet...@apache.org wrote: Hi, I do know that if I provide logEffectiveWebXml=true in my context.xml then the effective web.xml will be logged in the log files during application start. Is there a way (library etc.) that I can use to generated effective web.xml offline i.e. without

Re: Exclude url from authorized access-web.xml

2012-07-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rahul, On 7/12/12 2:55 AM, Rahul R wrote: How can I add an email id to auth instead of adding a whole group? You can't. Is that possible? Not when using the servlet-spec-defined authorization features. You can certainly implement anything you

Re: Exclude url from authorized access-web.xml

2012-07-12 Thread Rahul R
How can I add an email id to auth instead of adding a whole group? Is that possible? I don't want to give the access to all the members of the groups in the AD. Following is the web.xml of my tomcat. security-constraint web-resource-collection web-resource

Exclude url from authorized access-web.xml

2012-06-14 Thread Rahul R
Hi All, I have an issue with allowing access to a page which is secured using active directory authentication. I want some pages/content to be excluded from this. Following is my web.xml file under conf of tomcat. [code=java] security-constraint web-resource-collection

Re: Exclude url from authorized access-web.xml

2012-06-14 Thread Pid
On 14/06/2012 15:06, Rahul R wrote: Hi All, I have an issue with allowing access to a page which is secured using active directory authentication. I want some pages/content to be excluded from this. Following is my web.xml file under conf of tomcat. [code=java] security-constraint

Re: Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-06-01 Thread maria petrova
Hi, As the Servlet 3.0 expert group shed some lighthttp://java.net/projects/servlet-spec/lists/users/archive/2012-05/message/1upon this question I would like to raise it here again. So do you plan revising the current processing of annotations (based on the web.xml version) as it contradicts

Re: Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-06-01 Thread Mark Thomas
(based on the web.xml version) as it contradicts the clarification from the expert group saying: *“If you are using a Java EE 6 compatible implementation and use the Servlet 3.0 feature / annotation, it should work independent of the version of the descriptor.”* May be the default behavior

Live changes to web.xml

2012-05-07 Thread David kerber
When TC 5.5.25 reloads due to a web.xml change, do the context listeners fire? Whenever I get a tc reload/restart without stopping and starting the TC service, my db connection gets messed up, and if the contextlistener fires, ISTM that would be a good place for me to reset the connection

Re: Live changes to web.xml

2012-05-07 Thread Konstantin Kolinko
2012/5/7 David kerber dcker...@verizon.net: When TC 5.5.25 reloads due to a web.xml change, do the context listeners fire? Whenever I get a tc reload/restart without stopping and starting the TC service, my db connection gets messed up, and if the contextlistener fires, ISTM that would

Re: Live changes to web.xml

2012-05-07 Thread David kerber
On 5/7/2012 11:41 AM, Konstantin Kolinko wrote: 2012/5/7 David kerberdcker...@verizon.net: When TC 5.5.25 reloads due to a web.xml change, do the context listeners fire? Whenever I get a tc reload/restart without stopping and starting the TC service, my db connection gets messed up

Re: web.xml and schema location

2012-04-19 Thread Pid *
anything and I can leave by web.xml as is. It is a fair question though and I wonder if Oracle's reduction in support for sun.com domains is producing a large number of DNS failres and 404s for some server admin somewhere. p Thanks! -Original Message- From: Konstantin Kolinko

Re: Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-04-18 Thread maria petrova
are responded with 404 Not Found. When I change the version of the web.xml to 3.0 everything works just fine. In Chapter /“*1.6.2 Regarding Processing annotations*”/ in the Servlet 3.0 Specification it is said that: /“The version of the descriptor MUST not affect which annotations you scan

Re: Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-04-18 Thread Pid
the Servlet 3.0 CTS. I know that Tomcat 7.x regularly covers the complete Servlet 3.0 CTS and probably there is a hidden property that I’m missing? Set 3.0 as the version in web.xml for apps using Servlet 3.0 features? Alternatively you could, of course, set the hidden system property

Re: Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-04-18 Thread Konstantin Kolinko
18 апреля 2012 г. 12:15 пользователь maria petrova mims8...@googlemail.com написал: Hi, Thanks for the clarification. I agree that the specification is not absolutely clear on this matter in the given extract. Anyway, I simply would like to ask you, as Tomcat experts, for hints or ideas how

web.xml and schema location

2012-04-18 Thread Mark Claassen
Back in Tomcat 5, we had the problem with tomcat trying to access java.sun.com. Lots of our servers are behind firewalls, so this caused an error in the log. We realized one way to fix this was just to remove the schemaLocation attribute from the web.xml files. Below is the top of the main

Re: web.xml and schema location

2012-04-18 Thread Konstantin Kolinko
the web.xml files. Below is the top of the main web.xml in Tomcat 7.  I did a snoop, and it didn't seem to try to access java.sun.com this time.  Has this been changed at some point?  Or did I just have some error in my snoop? 1. Do you have validation enabled? E.g

RE: web.xml and schema location

2012-04-18 Thread Mark Claassen
1. Do you have validation enabled? E.g. with org.apache.catalina.STRICT_SERVLET_COMPLIANCE=true I don't think so (but that was a long time ago). Anyway, I am glad to know that the default config does not try to contact anything and I can leave by web.xml as is. Thanks! -Original

Re: Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-04-18 Thread Pid
On 18/04/2012 11:27, Konstantin Kolinko wrote: 18 апреля 2012 г. 12:15 пользователь maria petrova mims8...@googlemail.com написал: Hi, Thanks for the clarification. I agree that the specification is not absolutely clear on this matter in the given extract. Anyway, I simply would like to ask

Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-04-17 Thread maria petrova
with *@WebServlet *annotation and requests to this servlet are responded with 404 Not Found. When I change the version of the web.xml to 3.0 everything works just fine. In Chapter *“1.6.2 Regarding Processing annotations”* in the Servlet 3.0 Specification it is said that: *“The version of the descriptor

Re: Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-04-17 Thread Daniel Mikusa
application is 2.5, there is a servlet annotated with @WebServlet annotation and requests to this servlet are responded with 404 Not Found. When I change the version of the web.xml to 3.0 everything works just fine. In Chapter “ 1.6.2 Regarding Processing annotations ” in the Servlet

Re: Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-04-17 Thread Pid
application is 2.5, there is a servlet annotated with *@WebServlet *annotation and requests to this servlet are responded with 404 Not Found. When I change the version of the web.xml to 3.0 everything works just fine. In Chapter /“*1.6.2 Regarding Processing annotations*”/ in the Servlet 3.0

Re: info regarding automatic restart of webapps when modifying $CATALINA_HOME/conf/web.xml

2012-03-16 Thread André Warnier
Mark DeSpain wrote: Greetings! Just trying to do some research regarding a behavior my team observed today. We're using some revision of Tomcat 7.0... I don't recall the specific version, but I can look it up if it is relevant. Apparently when someone modifies $CATALINA_HOME/conf/web.xml

Re: info regarding automatic restart of webapps when modifying $CATALINA_HOME/conf/web.xml

2012-03-16 Thread Mark Thomas
$CATALINA_HOME/conf/web.xml, Tomcat will reload all web applications in the container. Unfortunately for us, this wreaks havoc on our set of web applications since we've allowed them to express initialization dependencies between each other that are honored on startup (and other scenarios) but not this scenario

<    1   2   3   4   5   6   7   >