RE: filter question

2014-03-13 Thread Caldarale, Charles R
> From: Tim Watts [mailto:t...@cliftonfarm.org] > Subject: Re: filter question > Doing this in a Filter, while intuitively sensible, will always be a > highly fragile solution. You would have to set a buffer large enough to > accommodate the largest conceivable response size. Once a response is

Re: filter question

2014-03-13 Thread Tim Watts
On Thu, 2014-03-13 at 23:16 -0400, Tim Watts wrote: > On Thu, 2014-03-13 at 19:11 -0700, Brendan Miller wrote: > > To be clear, I'm trying to modify the response that comes back from the > > service. I have a header that I may or may not need to set based on the > > response code. I believe the ser

Re: filter question

2014-03-13 Thread Tim Watts
On Thu, 2014-03-13 at 19:11 -0700, Brendan Miller wrote: > I'm confused by what you mean by that. Are you saying I need to somehow > rewrite the class of the FilterChain object passed to my filter? > I think you're somewhat new to the list. Mr. Gainty is notorious here and seems to pride himself

RE: filter question

2014-03-13 Thread Caldarale, Charles R
> From: Brendan Miller [mailto:catph...@catphive.net] > Subject: Re: filter question > On Thu, Mar 13, 2014 at 6:20 PM, Martin Gainty wrote: > > you'll need to pass your modified response to service method of servlet > > which is *in* the filterChain > I'm confused by what you mean by that. As

Re: filter question

2014-03-13 Thread Brendan Miller
I'm confused by what you mean by that. Are you saying I need to somehow rewrite the class of the FilterChain object passed to my filter? To be clear, I'm trying to modify the response that comes back from the service. I have a header that I may or may not need to set based on the response code. I

RE: filter question

2014-03-13 Thread Tim Watts
On Thu, 2014-03-13 at 21:20 -0400, Martin Gainty wrote: > you'll need to pass your modified response to service method of > servlet which is *in* the filterChain Utter nonsense. > ApplicationFilterChain::internalDoFilter(ServletRequest request, > ServletResponse response) > throws IOExcep

Re: filter question

2014-03-13 Thread Tim Watts
On Thu, 2014-03-13 at 17:51 -0700, Brendan Miller wrote: > I have a filter with doFilter method like this: > > public void doFilter(ServletRequest request, > ServletResponse response, > FilterChain chain) > throws IOException, ServletEx

RE: filter question

2014-03-13 Thread Martin Gainty
you'll need to pass your modified response to service method of servlet which is *in* the filterChain ApplicationFilterChain::internalDoFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException { servlet.service(request, response); ...

filter question

2014-03-13 Thread Brendan Miller
I have a filter with doFilter method like this: public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) reque

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Felipe, On 3/13/14, 3:33 PM, Felipe Jaekel wrote: > Hmm I didn't looked at the server status yesterday, but the times I > faced OOEM in the past nothing responded, page rendering didn't > even started. And today problem is happening again with half

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Felipe, On 3/13/14, 3:15 PM, Felipe Jaekel wrote: > Thanks for the replies. I'll answer to all soon. > > Problem is happening again. It's on its "initial phase", where > icons and other images from the application are missing, but its > functional.

Re: Site down for maintenance senario

2014-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 3/13/14, 3:08 PM, Jeffrey Janner wrote: >> -Original Message- From: Christopher Schultz >> [mailto:ch...@christopherschultz.net] Sent: Thursday, March 13, >> 2014 10:40 AM To: Tomcat Users List Subject: Re: Site down for >> maintena

Re: old versions with parallel deployments

2014-03-13 Thread Toby Lazar
Thanks Mark for confirming and Chris for the reminder about HTML anchors. Any chance something like this may be implemented in the future? AppEngine provides this function via 1.appname.appspot.com, 2.appname.appspot.com, etc. Though relying on DNS names wouldn't be practical here, perhaps somet

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread Felipe Jaekel
Hmm I didn't looked at the server status yesterday, but the times I faced OOEM in the past nothing responded, page rendering didn't even started. And today problem is happening again with half the memory free. My best guess for the PermGen issue problem is Hibernate. I read a lot of forum threads

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread Felipe Jaekel
Thanks for the replies. I'll answer to all soon. Problem is happening again. It's on its "initial phase", where icons and other images from the application are missing, but its functional. No deployment made today. My server runs with 2GB heap and 2GB PermGen. Current server status: https://dl.

RE: Site down for maintenance senario

2014-03-13 Thread Jeffrey Janner
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Thursday, March 13, 2014 10:40 AM > To: Tomcat Users List > Subject: Re: Site down for maintenance senario > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > John, > > On 3/12/14, 2:28 P

Re: JNDIRealm - Active Directory Roles

2014-03-13 Thread Leo Donahue
On Thu, Mar 13, 2014 at 10:15 AM, wrote: > Hello, > > server.xml: > connectionName="CN=SVC,OU=Service > Accounts,OU=SITES,OU=\#KONFIGURATION,DC=DOM,DC=de" > connectionPassword="_2VK!WHzybn1SJ8P" > > connectionURL="ldap://server:389/OU=SITES,OU=\#KONFIGURAT

JNDIRealm - Active Directory Roles

2014-03-13 Thread Bjoern.Becker
Hello, I try to implement the authentification for the tomcat manager application against active directory. Unfortunately I don't understand the role concept. I like to give the users permissions to open the manager when they're in this group: > memberOf: CN=Tomcat Admins,OU=Roles,OU=Speziell

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread Howard W. Smith, Jr.
On Thu, Mar 13, 2014 at 11:47 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Felipe, > > On 3/13/14, 10:57 AM, Felipe Jaekel wrote: > > There are lots of this in catalina log: *12-Mar-2014 08:41:43.828 > > WARNING [http-nio-80

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Felipe, On 3/13/14, 10:57 AM, Felipe Jaekel wrote: > There are lots of this in catalina log: *12-Mar-2014 08:41:43.828 > WARNING [http-nio-80-exec-28] > com.sun.faces.application.resource.ResourceHandlerImpl.logMissingResource > > JSF1064: Unable

Re: old versions with parallel deployments

2014-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Toby, On 3/12/14, 11:03 PM, Toby Lazar wrote: > If I deployed multiple versions of a single application using > parallel deployments, is there a way I can access old versions of > the app? Is there a way to go to version 001 using something > like:

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, On 3/13/14, 8:06 AM, Daniel Mikusa wrote: > On Mar 13, 2014, at 7:44 AM, Felipe Jaekel > wrote: > >> Yestarday my PrimeFaces applications started to crash. They >> didn't render correctly and nothing worked. >> >> Chrome console output: >

Re: Site down for maintenance senario

2014-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 John, On 3/12/14, 2:28 PM, John Smith wrote: > Is there a straightforward way to toggle or add something in > Tomcat, in the event a webapp is intentionally taken 'offline for > maintenance"? The user would receive the same single notification > pag

Re: AW: AW: request.getRemoteAddr() sometimes returning IP address from the previous request

2014-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Clemens, On 3/13/14, 3:24 AM, Clemens Wyss DEV wrote: > Dear Christopher, >> But you also don't know what you are doing If you don't help us > again I appreciate your help and you definitely know more about > tomcat than I do. IMHO, I do help and

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread Felipe Jaekel
There are lots of this in catalina log: *12-Mar-2014 08:41:43.828 WARNING [http-nio-80-exec-28] com.sun.faces.application.resource.ResourceHandlerImpl.logMissingResource JSF1064: Unable to find or serve resource, primefaces.js, from library, primefaces.* *12-Mar-2014 08:41:43.829 WARNING [http-nio-

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread Howard W. Smith, Jr.
On Thu, Mar 13, 2014 at 9:33 AM, burghard.britzke < b...@charmides.in-berlin.de> wrote: > may be restarting the context would even be sufficient? May be the > FacesServlet has an issue which implementation are you using? which > version? which version of PrimeFaces? > > earlier, in the thread, he

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread burghard.britzke
may be restarting the context would even be sufficient? May be the FacesServlet has an issue which implementation are you using? which version? which version of PrimeFaces? sincerely burghard. Am 13.03.2014 um 12:44 schrieb Felipe Jaekel : > Yestarday my PrimeFaces applications started to cras

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread André Warnier
Daniel Mikusa wrote: On Mar 13, 2014, at 7:44 AM, Felipe Jaekel wrote: Yestarday my PrimeFaces applications started to crash. They didn't render correctly and nothing worked. Chrome console output: Resource interpreted as Stylesheet but transferred with MIME type text/plain: " http://spdata

Re: Possible Tomcat 8.0.3 issue

2014-03-13 Thread Daniel Mikusa
On Mar 13, 2014, at 7:44 AM, Felipe Jaekel wrote: > Yestarday my PrimeFaces applications started to crash. They didn't render > correctly and nothing worked. > > Chrome console output: > >> Resource interpreted as Stylesheet but transferred with MIME type >> text/plain: " >> http://spdata-apps.

Possible Tomcat 8.0.3 issue

2014-03-13 Thread Felipe Jaekel
Yestarday my PrimeFaces applications started to crash. They didn't render correctly and nothing worked. Chrome console output: > Resource interpreted as Stylesheet but transferred with MIME type > text/plain: " > http://spdata-apps.net/cliente/javax.faces.resource/theme.css.jsf?ln=primefaces-redm

Re: Apache Version 2.4 MSI for Windows

2014-03-13 Thread Daniel Mikusa
On Mar 13, 2014, at 6:57 AM, Savio Chrysostom wrote: > Hi, > > I would like to know if MSI is available for Apache 2.4. If yes, please send > me the link where I can download it. Wrong mailing list. Try... http://httpd.apache.org/lists.html Dan > > > Best regards, > Savio Chrysostom >

Re: Files created by a Tomcat webapp and owner, owner group, permissions for this file

2014-03-13 Thread André Warnier
Lmhelp1 wrote: Hello and thank you for your answer. On 2014-03-12 11:49 PM, Neven Cvetkovic [via Tomcat] wrote: How about setting up umask 002 on tomcat6 user? All newly created files would be have 775 permission. Yes, well, how shall I do that? Personally, I don't think you should. The sc

Re: Files created by a Tomcat webapp and owner, owner group, permissions for this file

2014-03-13 Thread André Warnier
Lmhelp1 wrote: On 2014-03-12 11:32 PM, André Warnier [via Tomcat] wrote: Ok, I understand : the target directory is not created by you, it is created by Tomcat, so Tomcat sets these permissions, and they do not fit what you want to be able to do. That's it, I only miss the write permission for

RE: Apache Version 2.4 MSI for Windows

2014-03-13 Thread Savio Chrysostom
Hi, I would like to know if MSI is available for Apache 2.4. If yes, please send me the link where I can download it. Best regards, Savio Chrysostom Middleware GLD IT UBS Statoil ASA MIddleware Mobile: +91 9731

Re: Files created by a Tomcat webapp and owner, owner group, permissions for this file

2014-03-13 Thread Lmhelp1
Hello and thank you for your answer. On 2014-03-12 11:49 PM, Neven Cvetkovic [via Tomcat] wrote: How about setting up umask 002 on tomcat6 user? All newly created files would be have 775 permission. Yes, well, how shall I do that? Who is placing these files into the webapp folder? I am man

Re: Files created by a Tomcat webapp and owner, owner group, permissions for this file

2014-03-13 Thread Lmhelp1
On 2014-03-12 11:32 PM, André Warnier [via Tomcat] wrote: Ok, I understand : the target directory is not created by you, it is created by Tomcat, so Tomcat sets these permissions, and they do not fit what you want to be able to do. That's it, I only miss the write permission for the owner group

Re: old versions with parallel deployments

2014-03-13 Thread Mark Thomas
On 13/03/2014 03:03, Toby Lazar wrote: > If I deployed multiple versions of a single application using parallel > deployments, is there a way I can access old versions of the app? Is there a > way to go to version 001 using something like: > > /application##001 > > after version 002 is alrea

AW: AW: request.getRemoteAddr() sometimes returning IP address from the previous request

2014-03-13 Thread Clemens Wyss DEV
Dear Christopher, > But you also don't know what you are doing >If you don't help us again I appreciate your help and you definitely know more about tomcat than I do. IMHO, I do help and I try to focus on what is relevant. It doesn't make sense to put our million lines-of-code and log entries onl