RE: [External] Re: Security Headers Implementation in Tomcat 6.x version

2017-05-31 Thread Shaik, Mohammad N.
Hi Chris, What should be name of the new JAR file that I would create for the Filter classes? There are multiple JAR files in lib folder. Does the name of these JAR files have any significance? My understanding is that as long as you have your code (.class files) is present in any of the JAR

tomcat 7, null tag attributes

2017-05-31 Thread Chris Cheshire
I am using tomcat 7 on CentOS 7 and I need to pass a null value to tag attributes of type Long/Integer/Float, however it is *always* coerced to zero. <%@attribute name="parentId" required="true" rtexprvalue="true" type="java.lang.Long" %> Changing required to false does nothing. I tried setting t

Re: Possible bug between Apache 2.4 and Tomcat 7 via AJP when POSTing

2017-05-31 Thread Mark Eggers
Nic, On 5/31/2017 5:42 AM, Nicholas Cottrell wrote: > Hi All! > > I'm having a problem setting up an existing webapp from Apache > 2.2/Tomcat6 on a new server running Centos 7, and the following > packages: > > httpd 2.4.6-45.el7.centos.4 tomcat.noarch > 7.0.69-11.el7_3 @updates

Re: Custom Webapp loading..

2017-05-31 Thread Hassan Khan
So the precise exception is Only a type can be imported. ABC resolves to a package.. Stacktrace is : at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:212) at org.apac

Re: Custom Webapp loading..

2017-05-31 Thread Hassan Khan
Hi, We have a main webapp (Tomcat\Webapp) that has many modular webapps ( (Tomcat\Webapp\app\) under it that can be removed and added by the user. The main webapp has the service and connectors , but the modular webapps do not need it. The problem is currently when the main webapp tries to access

Re: Custom Webapp loading..

2017-05-31 Thread Aurélien Terrestris
hi what are you trying to do exactly ? If you just need to start one webapp after another one in a precise order, you need as many Services (+Connector on a different port, + Host) as webapps. A.T. 2017-05-31 22:48 GMT+02:00 Hassan Khan : > Hi, > > We have the following structure for webap

Re: Custom Webapp loading..

2017-05-31 Thread Hassan Khan
Hi, We have the following structure for webapps in tomcat 6. Tomcat > Webapp > Application 1 >WEB-INF >lib Tomcat > Webapp > Application 1 > Application >WEB-INF> lib The Tomcat > Webapp > Application 1 >WEB-INF >lib gets loaded with addwebapp() function.. but for Tomcat > Webapp > Application

Re: Possible bug between Apache 2.4 and Tomcat 7 via AJP when POSTing

2017-05-31 Thread tomcat
On 31.05.2017 21:52, Nicholas Cottrell wrote: On 5/31/17 8:42 AM, Nicholas Cottrell wrote: Hi All! I'm having a problem setting up an existing webapp from Apache 2.2/Tomcat6 on a new server running Centos 7, and the following packages: httpd 2.4.6-45.el7.centos.4 tomcat.noarch 7.0.69-11.el7_

Custom Webapp loading..

2017-05-31 Thread Hassan Khan
Hi, We have the following structure for webapp in tomcat 6. Tomcat > Webapp > Application 1 > Application >WEB-INF> lib T he Alpp -- Hassan Khan

Re: Possible bug between Apache 2.4 and Tomcat 7 via AJP when POSTing

2017-05-31 Thread Nicholas Cottrell
> On 5/31/17 8:42 AM, Nicholas Cottrell wrote: >> Hi All! >> >> I'm having a problem setting up an existing webapp from Apache >> 2.2/Tomcat6 on a new server running Centos 7, and the following >> packages: >> >> httpd2.4.6-45.el7.centos.4 tomcat.noarch >> 7.0.69-11.el7_3

Re: Possible bug between Apache 2.4 and Tomcat 7 via AJP when POSTing

2017-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nic, On 5/31/17 8:42 AM, Nicholas Cottrell wrote: > Hi All! > > I'm having a problem setting up an existing webapp from Apache > 2.2/Tomcat6 on a new server running Centos 7, and the following > packages: > > httpd 2.4.6-45.el7.centos.4 tomcat.noa

Re: Apache Tomcat 7 (7.0.78) - Introduction

2017-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 付传淮, On 5/31/17 3:31 AM, 付传淮 wrote: > I am learning tomcat,I found such a title on the following page. > http://tomcat.apache.org/tomcat-7.0-doc/introduction.html at all > Introduction of the tomcat document,you can see: > > Context - In a nutshel

Re: Security Headers Implementation in Tomcat 6.x version

2017-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mohammad, On 5/31/17 6:37 AM, Shaik, Mohammad N. wrote: > Can I simply use the JAR files from Tomcat 7 that contains > executable code of filter classes (security headers), and put them > into corresponding location in Tomcat 6? Definitely don't

Re: Considering @serverEndPoint url for routing the request , if the request is of ws:// type

2017-05-31 Thread Bhuvan Gupta
Martin, > > according to the author of Guice 4.0 there are 2 COMPLETELY DIFFERENT > CONFIGURATIONS for WebServlet and WebSocket configurations WebServlet is used for configuring the routes/ scope from guice module. Where as extending ServerEndpointConfig.Configurator is not something Guice provi

Possible bug between Apache 2.4 and Tomcat 7 via AJP when POSTing

2017-05-31 Thread Nicholas Cottrell
Hi All! I'm having a problem setting up an existing webapp from Apache 2.2/Tomcat6 on a new server running Centos 7, and the following packages: httpd 2.4.6-45.el7.centos.4 tomcat.noarch7.0.69-11.el7_3 @updates tomcat-native.x86_64 1.1

Re: Security Headers Implementation in Tomcat 6.x version

2017-05-31 Thread Olaf Kock
Am 29.05.2017 um 13:34 schrieb Shaik, Mohammad N.: > Hello Olaf, > > Thanks for your response! > > Based on your inputs, we are thinking to put Apache httpd in front of Tomcat > 6 server, since our header configuration is going to be static. > > Can you please help us in identifying which version

Re: Security Headers Implementation in Tomcat 6.x version

2017-05-31 Thread Violeta Georgieva
Hi, 2017-05-31 13:37 GMT+03:00 Shaik, Mohammad N. < mohammad.n.sh...@accenture.com>: > > Hi Chris, > > Can I simply use the JAR files from Tomcat 7 that contains executable code of filter classes (security headers), and put them into corresponding location in Tomcat 6? I would not recommend that.

Re: Security Headers Implementation in Tomcat 6.x version

2017-05-31 Thread Violeta Georgieva
Hi, 2017-05-31 13:34 GMT+03:00 Shaik, Mohammad N. < mohammad.n.sh...@accenture.com>: > > Hi Chris, > > I got the source files (.java) of the filter classes that I was looking for. > > Should we compile the source file against the servlet jar file(s) present in "[Tomcat]\lib\" Yes. Compile them ag

RE: Security Headers Implementation in Tomcat 6.x version

2017-05-31 Thread Shaik, Mohammad N.
Hi Chris, Can I simply use the JAR files from Tomcat 7 that contains executable code of filter classes (security headers), and put them into corresponding location in Tomcat 6? Regards, Mohammad -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: 30

RE: Security Headers Implementation in Tomcat 6.x version

2017-05-31 Thread Shaik, Mohammad N.
Hi Chris, I got the source files (.java) of the filter classes that I was looking for. Should we compile the source file against the servlet jar file(s) present in "[Tomcat]\lib\" or "[Tomcat]\webapps\ApplicationName\WEB-INF\lib"? I see there are multiple JAR files in both these locations. How

Re: parallel deployment and websockets

2017-05-31 Thread Johan Compagner
On 31 May 2017 at 10:11, Mark Thomas wrote: > > >> > >> > > would a feature request be accepted for this that there can be a cookie > set > > where that "load balancer" would also look at? > > and that cookie always make sure that it goes to the context it started > > from as long as that contex

Re: parallel deployment and websockets

2017-05-31 Thread Mark Thomas
On 31/05/17 08:38, Johan Compagner wrote: >> >> >> It depends. If the URL in the HTTP UPGRADE request includes the session >> ID, and that session ID is still valid in ##1, then the WebSocket >> request will be handled by ##1. >> >> Mark >> >> > would a feature request be accepted for this that the

Re: Apache Tomcat 7 (7.0.78) - Introduction

2017-05-31 Thread Addy D
On Wed, May 31, 2017 at 1:01 PM, 付传淮 <337435...@qq.com> wrote: > I am learning tomcat,I found such a title on the following page. > http://tomcat.apache.org/tomcat-7.0-doc/introduction.html > at all Introduction of the tomcat document,you can see: > > Context - In a nutshell, a Context is a we

Re: parallel deployment and websockets

2017-05-31 Thread Johan Compagner
> > > It depends. If the URL in the HTTP UPGRADE request includes the session > ID, and that session ID is still valid in ##1, then the WebSocket > request will be handled by ##1. > > Mark > > would a feature request be accepted for this that there can be a cookie set where that "load balancer" wou

Apache Tomcat 7 (7.0.78) - Introduction

2017-05-31 Thread ??????
I am learning tomcat,I found such a title on the following page. http://tomcat.apache.org/tomcat-7.0-doc/introduction.html at all Introduction of the tomcat document,you can see: Context - In a nutshell, a Context is a web application. Term2 - This is it. Term3 - This is it! I do not unders