Re: global web.xml question

2025-04-30 Thread A Name
; >>>> issue... but for program reasons, at this time, the app code (or the > > >>>> META-INF/xml files) are not supposed to be touched on considering > this > > >>>> adventure. > > >>> > > >>> An app code change w

Re: global web.xml question

2025-04-29 Thread Christopher Schultz
rities from the customer, code changes for this are not on the table. I think your host/site context.xml file ideas are interesting. Would I be able to take the context info that I put here out of web.xml and put it in the conf/Catalina/localhost/site1app.xml and put another copy in conf/Ca

Re: global web.xml question

2025-04-29 Thread A Name
t;>> myappA and myappB) to our Tomcat 9. We currently have the app > > >>>>> installed at > > >>>>> a number of customer locations, we are looking at dropping 1 app > > >>>>> > > >>>>> Currently, our database con

Re: global web.xml question

2025-04-29 Thread Christopher Schultz
. We currently have the app installed at a number of customer locations, we are looking at dropping 1 app Currently, our database connections are established inside the GLOBAL web.xml in /conf/web.xml - and have been forever. This was a design decision made long ago - that way the app doesn't

Re: global web.xml question

2025-04-29 Thread A Name
erently -- > > >> myappA and myappB) to our Tomcat 9. We currently have the app > > >> installed at > > >> a number of customer locations, we are looking at dropping 1 app > > >> > > >> Currently, our database connections are establish

Re: global web.xml question

2025-04-28 Thread Mark Thomas
dropping 1 app Currently, our database connections are established inside the GLOBAL web.xml in /conf/web.xml - and have been forever.  This was a design decision made long ago - that way the app doesn't have a separate configuration for each location - it is the same app WAR file, and the connec

Re: global web.xml question

2025-04-28 Thread Christopher Schultz
are established inside the GLOBAL web.xml in /conf/web.xml - and have been forever. This was a design decision made long ago - that way the app doesn't have a separate configuration for each location - it is the same app WAR file, and the connections are established at the server. Our cus

Re: global web.xml question

2025-04-28 Thread A Name
gt; > a number of customer locations, we are looking at dropping 1 app > > > > > > Currently, our database connections are established inside the GLOBAL > > > web.xml in /conf/web.xml - and have been forever. This was a design > > > decision made long ago - tha

Re: global web.xml question

2025-04-28 Thread Mark Thomas
established inside the GLOBAL web.xml in /conf/web.xml - and have been forever. This was a design decision made long ago - that way the app doesn't have a separate configuration for each location - it is the same app WAR file, and the connections are established at the server. Our customer do

global web.xml question

2025-04-28 Thread A Name
We are looking at adding a second instance of our app (named differently -- myappA and myappB) to our Tomcat 9. We currently have the app installed at a number of customer locations, we are looking at dropping 1 app Currently, our database connections are established inside the GLOBAL web.xml in

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

2025-04-09 Thread Justin Chen
in-stuff /cgi-bin/update /cgi-bin/update/* admin ``` Full web.xml for reference: http://www.w3.org/2001/XMLSchema-instance"; xmlns="https://jakarta.ee/xml/ns/jakartaee"; xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/

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

2025-04-09 Thread Christopher Schultz
quot;/cgi-bin/updateOrder" //update order, required role="biz" In order to protect above endpoints via web.xml security-constraints mechanism, how shall I do? It should be as simple as this in your web.xml: Whether the below is correct depends on how the CGI Servlet is mapped. And

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
, required role="biz" In order to protect above endpoints via web.xml security-constraints mechanism, how shall I do? It should be as simple as this in your web.xml: Whether the below is correct depends on how the CGI Servlet is mapped. And the OP

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 orde

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 securit

Re: Web.xml file question

2023-11-21 Thread Christopher Schultz
Lance, On 11/21/23 11:33, Campbell, Lance wrote: Tomcat 10.1 Java migration from 8 to 11 Eclipse I am trying to migrate my thirteen tomcat web applications from java 8 to java 11. And from tomcat 9 to tomcat 10.1 . I have been using the web.xml file for years with Java 8 and tomcat 9

Web.xml file question

2023-11-21 Thread Campbell, Lance
Tomcat 10.1 Java migration from 8 to 11 Eclipse I am trying to migrate my thirteen tomcat web applications from java 8 to java 11. And from tomcat 9 to tomcat 10.1 . I have been using the web.xml file for years with Java 8 and tomcat 9. However, when I built my dynamic web application with

Re: Need Help : Tomcat 9.0.75 not honoring session timeout configured in tomcat web.xml for FORM Authentication

2023-10-27 Thread Christopher Schultz
Channa, On 10/27/23 00:07, Channa Puchakayala wrote: Tomcat Version : 9.0.75 Operating System: Windows and Linux Bits: 64 Tomcat 9.0.75 not honoring  session timeout configured in tomcat/conf/web.xml for FORM Authentication and it is effecting customers

RE: Tomcat 9.0.75 ignoring session timeout configured in tomcat conf web.xml

2023-10-27 Thread Channa Puchakayala
ignoring session timeout configured in tomcat conf web.xml 26 Oct 2023 05:01:49 Channa Puchakayala : > Hi All, > > > Tomcat Version : 9.0.75 > Operating System: Windows and Linux > Bits: 64 > > > Tomcat 9.0.75 ignoring session timeout configured in > tomcat/conf/web.

Re: Need Help : Tomcat 9.0.75 not honoring session timeout configured in tomcat web.xml for FORM Authentication

2023-10-26 Thread Mark Thomas
2023 05:07:20 Channa Puchakayala : Hi All,   Tomcat Version : 9.0.75 Operating System: Windows and Linux Bits: 64      Tomcat 9.0.75 not honoring  session timeout configured in tomcat/conf/web.xml for FORM Authentication and it is effecting customers. ==     

Re: Tomcat 9.0.75 ignoring session timeout configured in tomcat conf web.xml

2023-10-26 Thread Mark Thomas
26 Oct 2023 05:01:49 Channa Puchakayala : Hi All,   Tomcat Version : 9.0.75 Operating System: Windows and Linux Bits: 64      Tomcat 9.0.75 ignoring session timeout configured in tomcat/conf/web.xml, it is overriding previous session timeout setting and effecting existing customers

Need Help : Tomcat 9.0.75 not honoring session timeout configured in tomcat web.xml for FORM Authentication

2023-10-26 Thread Channa Puchakayala
Hi All, Tomcat Version : 9.0.75 Operating System: Windows and Linux Bits: 64 Tomcat 9.0.75 not honoring session timeout configured in tomcat/conf/web.xml for FORM Authentication and it is effecting customers. == 30 // 30 minutes

Tomcat 9.0.75 ignoring session timeout configured in tomcat conf web.xml

2023-10-25 Thread Channa Puchakayala
Hi All, Tomcat Version : 9.0.75 Operating System: Windows and Linux Bits: 64 Tomcat 9.0.75 ignoring session timeout configured in tomcat/conf/web.xml, it is overriding previous session timeout setting and effecting existing customers. == 30

Re: tomcat9 access denied /var/lib/tomcat9/conf/web.xml

2022-12-21 Thread Mark Thomas
I'm seeing in catalina logs the following stacktrace (full stacktrace provided in attachment): 37 21-Dec-2022 16:12:04.587 SEVERE [main] org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml Parse error in application web.xml file at [file:/var/lib/tomcat9/conf/web.xml] 38 j

tomcat9 access denied /var/lib/tomcat9/conf/web.xml

2022-12-21 Thread Alban Espié-Guillon
ace (full stacktrace provided in attachment): 37 21-Dec-2022 16:12:04.587 SEVERE [main] org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml Parse error in application web.xml file at [file:/var/lib/tomcat9/conf/web.xml] 38 java.security.AccessControlExce

RE: xsd version used for web.xml etc

2021-10-21 Thread S Abirami
Thanks a lot Mark. -Original Message- From: Mark Thomas Sent: Thursday, October 21, 2021 4:23 PM To: users@tomcat.apache.org Subject: Re: xsd version used for web.xml etc On 21/10/2021 10:37, S Abirami wrote: > Hi Thomas, > > How I can identify whether the schema validation e

Re: xsd version used for web.xml etc

2021-10-21 Thread Mark Thomas
On 21/10/2021 10:37, S Abirami wrote: Hi Thomas, How I can identify whether the schema validation enabled or not. I checked startup logs and other configuration. I am unable to find it. The quick test is to add an unknown element to web.xml and see what happens. If you get an error

RE: xsd version used for web.xml etc

2021-10-21 Thread S Abirami
: xsd version used for web.xml etc On 21/10/2021 09:45, S Abirami wrote: > Hi All, > > In web.xml, if we didn't define any xsd schema or dtd schema which version of > xsd will be loaded for Tomcat 9.0.45. By default none - whether a schema is defined or not. Schemas ar

RE: xsd version used for web.xml etc

2021-10-21 Thread S Abirami
Thanks Thomas. -Original Message- From: Mark Thomas Sent: Thursday, October 21, 2021 2:40 PM To: users@tomcat.apache.org Subject: Re: xsd version used for web.xml etc On 21/10/2021 09:45, S Abirami wrote: > Hi All, > > In web.xml, if we didn't define any xsd schema or dt

Re: xsd version used for web.xml etc

2021-10-21 Thread Mark Thomas
On 21/10/2021 09:45, S Abirami wrote: Hi All, In web.xml, if we didn't define any xsd schema or dtd schema which version of xsd will be loaded for Tomcat 9.0.45. By default none - whether a schema is defined or not. Schemas are only loaded if validation is enabled. With valid

RE: xsd version used for web.xml etc

2021-10-21 Thread S Abirami
Hi All, TOMCAT_BASE/conf/web.xml will be constructed by us during installation. So that web.xml also will not have xsd definition. Regards, Abirami.S -Original Message- From: Jean-Pierre Urkens Sent: Thursday, October 21, 2021 2:25 PM To: Tomcat Users List Subject: RE: xsd version

RE: xsd version used for web.xml etc

2021-10-21 Thread Jean-Pierre Urkens
My guess, the one that is specified in TOMCAT_BASE/conf/web.xml -Original Message- From: S Abirami Sent: donderdag 21 oktober 2021 10:46 To: Tomcat Users List Subject: xsd version used for web.xml etc Hi All, In web.xml, if we didn't define any xsd schema or dtd schema which ve

xsd version used for web.xml etc

2021-10-21 Thread S Abirami
Hi All, In web.xml, if we didn't define any xsd schema or dtd schema which version of xsd will be loaded for Tomcat 9.0.45. Regards, Abirami.S

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: Modify web.xml in production war file

2019-07-16 Thread Martynas Jusevičius
t accepts ENV variables and modifies > > server.xml using their values: > > https://github.com/AtomGraph/letsencrypt-tomcat > > > > I think you should be able to do the same with web.xml. > > I have not seen your solution. But a question comes to mind : does this > not

Re: Modify web.xml in production war file

2019-07-16 Thread Mark Eggers
ntainers way easier to share/deploy and more >> platform-independent than WAR files. >> >> I’ve created a Tomcat-based image that accepts ENV variables and modifies >> server.xml using their values: >> https://github.com/AtomGraph/letsencrypt-tomcat >> >>

Re: Modify web.xml in production war file

2019-07-16 Thread tomcat
variables and modifies server.xml using their values: https://github.com/AtomGraph/letsencrypt-tomcat I think you should be able to do the same with web.xml. I have not seen your solution. But a question comes to mind : does this not just move the problem, from tomcat to the Docker container then

Re: Modify web.xml in production war file

2019-07-16 Thread Martynas Jusevičius
: https://github.com/AtomGraph/letsencrypt-tomcat I think you should be able to do the same with web.xml. Martynas On Fri, 12 Jul 2019 at 21.44, Grigor Aleksanyan wrote: > Hi Everyone, > > We have been shipping web application with war packaging in our production > builds which contai

Re: Modify web.xml in production war file

2019-07-16 Thread Mark Thomas
On July 12, 2019 6:43:49 PM UTC, Grigor Aleksanyan wrote: >Hi Everyone, > >We have been shipping web application with war packaging in our >production >builds which contains a web.xml with few security sections. >This web.xml defines security constraints that are in most ca

Modify web.xml in production war file

2019-07-12 Thread Grigor Aleksanyan
Hi Everyone, We have been shipping web application with war packaging in our production builds which contains a web.xml with few security sections. This web.xml defines security constraints that are in most cases not what the final deployment uses. This means that to update the war we need to

Re: Tomcat 9 distributable tag from global conf/web.xml and DeltaManager not working

2019-06-23 Thread Leonid Rozenblyum
t; >>> About our upgrade: > >>> We've upgraded Tomcat > >>> Tomcat 8.0.30 -> Tomcat 9.0.16 > >>> (we are planning also the next update to Tomcat 9.0.21 to mitigate a > >> https > >>> issue but that's another story) >

Re: Tomcat 9 distributable tag from global conf/web.xml and DeltaManager not working

2019-06-21 Thread Mark Thomas
web fragments >>> without distributable accidentally) >>> >>> About our upgrade: >>> We've upgraded Tomcat >>> Tomcat 8.0.30 -> Tomcat 9.0.16 >>> (we are planning also the next update to Tomcat 9.0.21 to mitigate a >> https >>&g

Re: Tomcat 9 distributable tag from global conf/web.xml and DeltaManager not working

2019-06-21 Thread Leonid Rozenblyum
dependencies in classpath are actual web fragments > > without distributable accidentally) > > > > About our upgrade: > > We've upgraded Tomcat > > Tomcat 8.0.30 -> Tomcat 9.0.16 > > (we are planning also the next update to Tomcat 9.0.21 to mitigate a > http

Re: Tomcat 9 distributable tag from global conf/web.xml and DeltaManager not working

2019-06-21 Thread Mark Thomas
t; About our upgrade: > We've upgraded Tomcat > Tomcat 8.0.30 -> Tomcat 9.0.16 > (we are planning also the next update to Tomcat 9.0.21 to mitigate a https > issue but that's another story) > > In 8.0.30 just a in conf/web.xml has been enabled and > that caused DeltaM

Re: Tomcat 9 distributable tag from global conf/web.xml and DeltaManager not working

2019-06-21 Thread Leonid Rozenblyum
are planning also the next update to Tomcat 9.0.21 to mitigate a https issue but that's another story) In 8.0.30 just a in conf/web.xml has been enabled and that caused DeltaManager working (was able to check by catalina logs and by JMX manager and by the actual fact that session replication was

Re: Tomcat 9 distributable tag from global conf/web.xml and DeltaManager not working

2019-06-21 Thread Mark Thomas
On 21/06/2019 09:54, Leonid Rozenblyum wrote: > Hello. After recent Tomcat upgrade from 8.0 to 9.0 DeltaManager stopped > initializing. > StandardManager is used instead in cluster environment. Could you be more specific about version numbers please. > our global conf/web.xml contain

Tomcat 9 distributable tag from global conf/web.xml and DeltaManager not working

2019-06-21 Thread Leonid Rozenblyum
Hello. After recent Tomcat upgrade from 8.0 to 9.0 DeltaManager stopped initializing. StandardManager is used instead in cluster environment. our global conf/web.xml contains as before. I found a possible workaround: to copy the tag to the web.xml in the web applications itself. However

Re: web.xml mime-mappings

2018-11-01 Thread Luis Rodríguez Fernández
Hello Baron, There are no dumb questions, no worries :) Are you referring to the $CATALINA_BASE/conf/web.xml by chance? This is the default web.xml [1] that defines default values for all the webapps deployed in your tomcat server. Me personally I rarely modify it. Me, as a sample web.xml I

web.xml mime-mappings

2018-10-31 Thread Baron Fujimoto
Apologies in advance if this is a dumb question. I usually base our config files off of the sample config files as a starting point. The sample web.xml contains many mime-mapping elements (1000+ I think). Is there any good reason to include these if your application isn't going to use

Re: cors filter in WEB-INF/web.xml

2018-07-31 Thread Luis Rodríguez Fernández
went through > the documentation and added the code suggested but my web client still > complains. > > > This is the content of my web.xml file: > > > > > Archetype Created Web Application > > > > >

cors filter in WEB-INF/web.xml

2018-07-28 Thread masber masber
Dear Apache Tomcat community, I am learning Tomcat and would like to create a crosfilter, I went through the documentation and added the code suggested but my web client still complains. This is the content of my web.xml file: Archetype Created Web Application jersey

Re: SPENGO config in Tomcat's web.xml

2018-06-08 Thread Mark Thomas
y contraints to > Tomcat's web.xml instead of the application's web.xml. > > Unfortunately it doesn't seem like it is taking effect. The only change is > is adding the app's URI context to the url-pattern in Tomcat's web.xml. > > Is something misconfigured

SPENGO config in Tomcat's web.xml

2018-06-08 Thread Randy Oun
Hello Tomcat user group. I am setting update Tomcat 8.5.23 with Kerberos/SPNEGO. Since the Tomcat server will be only hosting one web application and we only want SPNEGO only on certain environments we were trying to add security contraints to Tomcat's web.xml instead of the applicat

Re: Deleting web.xml on tomcat exit

2018-06-07 Thread Olaf Kock
my experience especially of the ROOT app (in case of Liferay the default Tomcat ROOT app is replaced with the core Liferay app). After the last incident even the core config file ROOT/WEB-INF/web.xml was missing. And without it tomcat was not able to launch the portal properly. When you know what

Re: Deleting web.xml on tomcat exit

2018-06-06 Thread Mark Thomas
ent, usually JSP pages, to my > experience especially of the ROOT app (in case of Liferay the default Tomcat > ROOT app is replaced with the core Liferay app). > > After the last incident even the core config file ROOT/WEB-INF/web.xml was > missing. And without it tomcat was not ab

Deleting web.xml on tomcat exit

2018-06-06 Thread Jan Tosovsky
ROOT app is replaced with the core Liferay app). After the last incident even the core config file ROOT/WEB-INF/web.xml was missing. And without it tomcat was not able to launch the portal properly. When you know what has happened it is 'easy' to fix. But I am quite curious why anythi

Re: Modify JspServlet config in application web.xml?

2018-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Richárd, On 1/27/18 7:18 AM, Richárd Olivér Legéndi wrote: > Thanks a lot, Christopher and Mark! > > Wow, lot of knowledge and pointers to move forward. I've debugged a > bit around both ContextConfig and JspServlet, and it is exactly as > you desc

Re: Modify JspServlet config in application web.xml?

2018-01-27 Thread Richárd Olivér Legéndi
r the reference of the Servlet spec, I think it's time to go through it. Have a nice weekend, guys! Best, Richard On 25 January 2018 at 11:33, Mark Thomas wrote: > On 25/01/18 05:25, Christopher Schultz wrote: > > > > > You can also use in WEB-INF/web.xml for the JSP se

Re: Modify JspServlet config in application web.xml?

2018-01-25 Thread Mark Thomas
On 25/01/18 05:25, Christopher Schultz wrote: > You can also use in WEB-INF/web.xml for the JSP servlet. > You will probably have to copy those settings you want from the JSP > configuration in conf/web.xml because I don't think Tomcat will merge > init-param between the t

Re: Modify JspServlet config in application web.xml?

2018-01-24 Thread Christopher Schultz
which is global for Tomcat > (i.e., it can only be configured in Tomcat's *web.xml*). This is > something I am not allowed to do, because the Tomcat has other apps > too. > > I have made some experiments and for me it seems when I run the app > locally on my developer

Modify JspServlet config in application web.xml?

2018-01-24 Thread Richárd Olivér Legéndi
jsp org.apache.jasper.servlet.JspServlet mappedfile false trimSpaces true 3 So far I thought this is a setting which is global for Tomcat (i.e., it can only be configured in Tomcat's *web.xml*). This is something I am not allowed to do, beceause the Tomcat has

Re: Tomcat keeps changing my web.xml listener-class

2017-10-15 Thread Blake McBride
ackages. So, for > example, my startup listener was in a package named: > > com.abc.utils.StartupListner > > webapps/myapp/WEB-INF/web.xml reflected that with: > > com.abc.utils.StartupListener > > and it all worked. I change all my classes and

Tomcat keeps changing my web.xml listener-class

2017-10-15 Thread Blake McBride
Hi, I am running tomcat 8.5.16 with 64 bit Oracle Java 8.0.144 on a LinuxMint box. My Java REST app worked fine until I renamed my packages. So, for example, my startup listener was in a package named: com.abc.utils.StartupListner webapps/myapp/WEB-INF/web.xml reflected that with

Re: web.xml

2017-09-07 Thread Guang Chao
On Wed, Sep 6, 2017 at 6:16 AM, Alejandro Vargas M. < alejandro.var...@kymsolutions.com> wrote: > Good afternoon, > > I have a website on a client, and they ran a vulnerability test, and it > throws a vulnerability that any user can see web.xml from a web browser, > &g

Re: web.xml

2017-09-05 Thread M. Manna
a vulnerability test, and it throws a vulnerability that any user can see web.xml from a web browser, how can I hide to see web.xml or any other file from the browser? Thanks. -- Alejandro Vargas Mayorga *Gerente Desarrollo C.A. & C.* *Tel. 506- 7232-3366* *Email:**alejandro.var

Re: web.xml

2017-09-05 Thread tomcat
On 06.09.2017 00:16, Alejandro Vargas M. wrote: Good afternoon, I have a website on a client, and they ran a vulnerability test, and it throws a vulnerability that any user can see web.xml from a web browser, how can I hide to see web.xml or any other file from the browser? 1) if web.xml is

web.xml

2017-09-05 Thread Alejandro Vargas M.
Good afternoon, I have a website on a client, and they ran a vulnerability test, and it throws a vulnerability that any user can see web.xml from a web browser, how can I hide to see web.xml or any other file from the browser? Thanks. -- Alejandro Vargas Mayorga /*Gerente Desarrollo

RE: When do I actually need to add JNDI references to web.xml?

2017-03-14 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Tuesday, March 14, 2017 1:20 PM > To: Tomcat Users List > Subject: When do I actually need to add JNDI references to web.xml? > > I have a small CXF/REST/Spring/JDBC app that I've run on TomEE and > Tomc

When do I actually need to add JNDI references to web.xml?

2017-03-14 Thread KARR, DAVID
tting and using JNDI entries, even in applications running in Tomcat, it says that I also have to put resource reference elements into my application's "web.xml" file. I don't think I've EVER added those elements to a web.xml file, and I've defined and used JNDI resour

Re: web.xml and @WebServlet priority when more rules match

2016-10-12 Thread Mark Thomas
On 12/10/2016 08:02, Mladen Adamović wrote: > Lets assume that web.xml has a rule > > > One > /something/e* > > > While class Two.class has an annotation: > > @WebServlet(name = "Two", urlPatterns = {&quo

web.xml and @WebServlet priority when more rules match

2016-10-12 Thread Mladen Adamović
Lets assume that web.xml has a rule One /something/e* While class Two.class has an annotation: @WebServlet(name = "Two", urlPatterns = {"/something/er*"}) >From the Servlet 3.0 specification 8.2.3. (point 4). `The web.xml of the

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/

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

Re: Using server Web.xml Mime Types Data

2016-09-08 Thread Mark Thomas
On 8 September 2016 17:06:13 BST, George Sexton wrote: > > >On 9/7/2016 11:44 AM, Mark Thomas wrote: >> On 07/09/2016 00:58, George Sexton wrote: >>> Is there any easy way that I can use the mime types in the Tomcat >server >>> level web.xml file? >>>

Re: Using server Web.xml Mime Types Data

2016-09-08 Thread George Sexton
On 9/7/2016 11:44 AM, Mark Thomas wrote: On 07/09/2016 00:58, George Sexton wrote: Is there any easy way that I can use the mime types in the Tomcat server level web.xml file? I know I can parse the XML myself, I was just wondering if there's a way to get the data already de

Re: java.lang.ClassNotFoundException: org.apache.catalina.filters.HttpHeaderSecurityFilter for app specific web.xml under Tomcat 8.0.9 (bundled with Netbeans)

2016-09-08 Thread Violeta Georgieva
Hi Mladen, 2016-09-08 13:04 GMT+03:00 Mladen Adamović : > > Hi Mark, > > It seems that in Tomcat 8 it was added in > Tomcat 8.0.23 (merged from Tomcat 7 I guess) Typically we back port features to previous versions and not vice versa. That feature was first developed in Tomcat 9 branch and then

Re: java.lang.ClassNotFoundException: org.apache.catalina.filters.HttpHeaderSecurityFilter for app specific web.xml under Tomcat 8.0.9 (bundled with Netbeans)

2016-09-08 Thread Mladen Adamović
Hi Mark, It seems that in Tomcat 8 it was added in Tomcat 8.0.23 (merged from Tomcat 7 I guess) - [image: Add:] 54618 : Add a new HttpHeaderSecurityFilter that adds the Strict-Transport-Security, X-Frame-Options and X-Content-Type-O

Re: java.lang.ClassNotFoundException: org.apache.catalina.filters.HttpHeaderSecurityFilter for app specific web.xml under Tomcat 8.0.9 (bundled with Netbeans)

2016-09-08 Thread Mark Thomas
On 08/09/2016 10:12, Mladen Adamović wrote: > I want in some specific apps to enable HttpHeaderSecurityFilter (I might > have some insecure applications at the same server). > But I've got the error message when running from Tomcat 8.0.9.0. This > happened in a development environment, this Tomc

java.lang.ClassNotFoundException: org.apache.catalina.filters.HttpHeaderSecurityFilter for app specific web.xml under Tomcat 8.0.9 (bundled with Netbeans)

2016-09-08 Thread Mladen Adamović
I want in some specific apps to enable HttpHeaderSecurityFilter (I might have some insecure applications at the same server). I've edited web.xml of one application (not the tomcat/conf/web.xml file to add this filter): httpHeaderSec

Re: Using server Web.xml Mime Types Data

2016-09-07 Thread Mark Thomas
On 07/09/2016 00:58, George Sexton wrote: > Is there any easy way that I can use the mime types in the Tomcat server > level web.xml file? > > I know I can parse the XML myself, I was just wondering if there's a way > to get the data already defined. ServletContext.getMime

RE: Using server Web.xml Mime Types Data

2016-09-07 Thread Jeffrey Janner
George, As I recall, anything in the server's web.xml is merged with the application's web.xml unless overridden by the applications own settings, i.e. if not defined in the app web.xml file. Was there something specific you were asking that didn't come across in your

Using server Web.xml Mime Types Data

2016-09-06 Thread George Sexton
Is there any easy way that I can use the mime types in the Tomcat server level web.xml file? I know I can parse the XML myself, I was just wondering if there's a way to get the data already defined. -- George Sexton *MH Software, Inc.* Voice: 303 438 9585 http://www.connectdaily.com

Re: using filter on web.xml

2016-05-15 Thread Francesco Viscomi
Thanks Andrè. the login page indeed has nothing inside, i just want to activate the filter, because inside the filter there is the logic to authenticate the user; Anyway i really appreciate your suggestion. Francesco 2016-05-15 14:09 GMT+02:00 André Warnier (tomcat) : > On 15.05.2016 13:58, Fran

Re: using filter on web.xml

2016-05-15 Thread tomcat
On 15.05.2016 13:58, Francesco Viscomi wrote: Hi all, I've declared a filter in web.xm as: ShibbolethHeaderReaderFilter ShibbolethHeaderReaderFilter IdPC it.loset.idpcp.ri.filters.ShibbolethHeaderReaderFilterIdpc configura

using filter on web.xml

2016-05-15 Thread Francesco Viscomi
Hi all, I've declared a filter in web.xm as: ShibbolethHeaderReaderFilter ShibbolethHeaderReaderFilter IdPC it.loset.idpcp.ri.filters.ShibbolethHeaderReaderFilterIdpc configurationFile resources/shibboleth-spp-config.xml

RE: Tomcat can not locate the folders of CSS files inside a web app, if the url-pattern of a servlet is set to / inside web.xml

2016-03-07 Thread Caldarale, Charles R
> From: Junqiang Zhang [mailto:junqiangzh...@gmail.com] > Subject: Re: Tomcat can not locate the folders of CSS files inside a web app, > if the url-pattern of a servlet is set to / inside web.xml Don't top-post. See item 6 under http://tomcat.apache.org/lists.html#tomcat-users

Re: Tomcat can not locate the folders of CSS files inside a web app, if the url-pattern of a servlet is set to / inside web.xml

2016-03-07 Thread Junqiang Zhang
Does Jetty work the same way as Tomcat regarding this problem? I have tried putting the webapp content in either ROOT directory or mywebapp directory inside Tomcat/webapps. Web browsers could not find the css file. I copied the content of web.xml below. http://xmlns.jcp.org/xml/ns/javaee&quo

Re: Tomcat can not locate the folders of CSS files inside a web app, if the url-pattern of a servlet is set to / inside web.xml

2016-03-07 Thread Chris Gamache
ide a web > app, > > if the url-pattern of a servlet is set to / inside web.xml > > > /mywebapp/css/style.css is where that file should be located if exists in > > the spot indicated in the tree diagram. > > > I don't think the default servlet plays in to this...

RE: Tomcat can not locate the folders of CSS files inside a web app, if the url-pattern of a servlet is set to / inside web.xml

2016-03-07 Thread Caldarale, Charles R
> From: Chris Gamache [mailto:cgama...@gmail.com] > Subject: Re: Tomcat can not locate the folders of CSS files inside a web app, > if the url-pattern of a servlet is set to / inside web.xml > /mywebapp/css/style.css is where that file should be located if exists in > the spot i

Re: Tomcat can not locate the folders of CSS files inside a web app, if the url-pattern of a servlet is set to / inside web.xml

2016-03-07 Thread Chris Gamache
Junqiang Zhang has the expectation of the paths to the files correct. /mywebapp/css/style.css is where that file should be located if exists in the spot indicated in the tree diagram. I don't think the default servlet plays in to this... Can you post your web.xml ? I think perhaps one of

Re: Tomcat can not locate the folders of CSS files inside a web app, if the url-pattern of a servlet is set to / inside web.xml

2016-03-07 Thread Violeta Georgieva
---src > ---someservlet.java > ---web.xml > > > If the url-pattern of someservlet.class is set to / inside web.xml, Tomcat's "default" servlet [1] is mapped to "/". The "default" servl

Tomcat can not locate the folders of CSS files inside a web app, if the url-pattern of a servlet is set to / inside web.xml

2016-03-07 Thread Junqiang Zhang
---WEB-INF ---classes ---someservlet.class ---lib ---src ---someservlet.java ---web.xml If the url-pattern of someservlet.class is set t

Re: property replacement in WEB-INF/web.xml

2016-01-13 Thread Christopher Schultz
André, On 1/13/16 9:36 AM, André Warnier (tomcat) wrote: > Hi gurus. > > Under tomcat 8 and Linux, I am deploying an externally-provided web > application, which in its web.xml configuration file, has a parameter > like this : > > > logroot > /var/l

property replacement in WEB-INF/web.xml

2016-01-13 Thread tomcat
Hi gurus. Under tomcat 8 and Linux, I am deploying an externally-provided web application, which in its web.xml configuration file, has a parameter like this : logroot /var/log/tomcat8 This works, but I would like to make this more "generic",

Multiple authentication-methods in single a web-app/web.xml

2015-09-17 Thread Torsten Rieger
-methods in a single /web.xml or exists a workaround to use two auth-methods? Regards, Torsten

Re: org.apache.jasper.JasperException: The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application

2015-03-26 Thread Thusitha Thilina Dayaratne
; >> > >> Now it is not throwing the NPE. but instead of that I'm getting > >> following exception > >> > >> org.apache.jasper.JasperException: The absolute uri: > >> http://tiles.apache.org/tags-tiles cannot be resolved in either > >> web.xml or the ja

  1   2   3   4   5   6   7   8   >