Re: request.getUserPrincipal() is null but StandardSession.principal is set

2015-01-26 Thread Konstantin Kolinko
2015-01-26 15:10 GMT+03:00 Thomas Strauß t.stra...@srs-management.de: -Ursprüngliche Nachricht- Von: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Gesendet: Montag, 26. Januar 2015 13:01 An: Tomcat Users List Betreff: Re: request.getUserPrincipal() is null but

Re: Multiple instances?

2015-01-26 Thread Billy Bones
Hi guys, thank for your informations regarding the Wiki, I've finally managed to create my account ^^ (later is better than never as we said over there :D) and as expected to add a new entry on the FAQ/HowTo I need to be whitelisted or granted to edit mode, so if a moderator could add me it would

RE: Tomcat 7.0.57 and application META-INF/context.xml

2015-01-26 Thread Caldarale, Charles R
From: Jose Monreal [mailto:jmonr...@gmail.com] Subject: Tomcat 7.0.57 and application META-INF/context.xml When I deploy my application myApp-1.2.war to Tomcat, instead of taking the context /my/app/context/1.2 that's specified in META-INF/context.xml under the path attribute of Context

Re: Tomcat 7.0.57 and application META-INF/context.xml

2015-01-26 Thread Jose Monreal
That's what we've been doing, I thought that there would be a plug-in or option to solve this issue. Best regards, José Saludos cordiales, José Ignacio Monreal Bailey | Ingeniero Civil en Computación *Cuidemos del medio ambiente. Por favor no imprimas este e-mail si no es necesario.* On

Re: Tomcat 7.0.57 and application META-INF/context.xml

2015-01-26 Thread Jose Monreal
Thanks Chuck. So from what you and documentation are saying, there's no way for tomcat to use the path described in the META-INF/context.xml of my application. Thanks! Saludos cordiales, José Ignacio Monreal Bailey | Ingeniero Civil en Computación *Cuidemos del medio ambiente. Por favor

Re: Multiple instances?

2015-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Billy, On 1/26/15 8:57 AM, Billy Bones wrote: PS: I've found something bizarre on the systemd init process regarding Tomcat, if I set the CONNECTOR_PORT variable to something (let said 8081) on the /etc/sysconfig/tomcat-${SERVICE_NAME} it is

RE: Tomcat 7.0.57 and application META-INF/context.xml

2015-01-26 Thread Caldarale, Charles R
From: Jose Monreal [mailto:jmonr...@gmail.com] Subject: Re: Tomcat 7.0.57 and application META-INF/context.xml So from what you and documentation are saying, there's no way for tomcat to use the path described in the META-INF/context.xml of my application. Correct. The simplest thing to do

Re: Mod_jk Configuration

2015-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/25/15 7:38 PM, Chris Arnold wrote: If you won't re-name the web application, I think redirects will be your best bet. If a client requests http(s)://share2.domain.tld/, you should redirect them to https://share2.domain.tld/share/

Re: Multiple instances?

2015-01-26 Thread Billy Bones
Hi Markt, my wiki alias username is ArKam and my Real username is GaelTherond, thank you very much. @Chris: Ok, thanks a lot for your explanations, it's crystal clear to me now, as you said, it should be something specific to systemd as it reside under the /etc/sysconfig/tomcat file which is use

Re: Multiple instances?

2015-01-26 Thread Mark Thomas
On 26/01/2015 13:57, Billy Bones wrote: Hi guys, thank for your informations regarding the Wiki, I've finally managed to create my account ^^ (later is better than never as we said over there :D) and as expected to add a new entry on the FAQ/HowTo I need to be whitelisted or granted to edit

Tomcat 7.0.57 and application META-INF/context.xml

2015-01-26 Thread Jose Monreal
Hi guys, I'm currently using Apache Tomcat 7.0.57 on GNU/Linux 32 bit and OpenJDK-7. I have made a few modifications to the CATALINA_HOME/conf/server.xml file ( fpaste.org/173572/23762142/). Under CATALINA_HOME/conf/Catalina/localhost/ there's only the manager.xml file. When I deploy my

Re: [OT] Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-26 Thread Terence M. Bandoian
On 1/25/2015 4:29 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/24/15 7:52 AM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, ... Morality : in web applications, always specify the

Re: JSp dynamic include in tomcat 8.0.15

2015-01-26 Thread Terence M. Bandoian
On 1/25/2015 4:23 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Srikanth, On 1/24/15 12:03 AM, Srikanth Hugar wrote: When i include jsp:include page=/WEB-INF//countries.jsp / It does not work in tomcat 8.0.15. I think there are too many dots in

RE: Mod_jk Configuration

2015-01-26 Thread Chris Arnold
The best possible setup here is to set up httpd with more than one VirtualHost (and SNI, since you are using HTTPS) with the correct hostnames, etc., and only use JkMount from the share2 VirtualHost. Then, re-name your application from share.war to ROOT.war and re-deploy it into Tomcat. Use

RE: Mod_jk Configuration

2015-01-26 Thread Chris Arnold
If the application can't handle that (try it!), you'll have to make other arrangements. According to: https://wiki.alfresco.com/wiki/Deploying_To_Server that is not even necessary. I understand that link is a years old and talks about tomcat 6 but the general idea is the same. I will try to

Re: Mod_jk Configuration

2015-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/26/15 4:52 PM, Chris Arnold wrote: The best possible setup here is to set up httpd with more than one VirtualHost (and SNI, since you are using HTTPS) with the correct hostnames, etc., and only use JkMount from the share2

Re: Unable to install tomcat on Window 7

2015-01-26 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/26/2015 1:41 PM, Frank Lugalla wrote: Hi Hi Guys I am trying to install Tomcat7 in my computer without success, I have tried to set up and go through every bit where it goes wrong as seen below without much success. After startup,

Unable to install tomcat on Window 7

2015-01-26 Thread Frank Lugalla
Hi Hi Guys I am trying to install Tomcat7 in my computer without success, I have tried to set up and go through every bit where it goes wrong as seen below without much success. After startup, the default web applications included with Tomcat will be available by visiting:

Re: Unable to install tomcat on Window 7

2015-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frank, On 1/26/15 4:41 PM, Frank Lugalla wrote: I am trying to install Tomcat 7 on my computer without success, I have tried to set up and go through every bit where it goes wrong as seen below without much success. Your screenshot was

RE: Unable to install tomcat on Window 7

2015-01-26 Thread Frank Lugalla
Thanks, Frank Lugalla 314-212-27086 (office) 858-366-5733 (mobile) AMDOCS | EMBRACE CHALLENGE  EXPERIENCE SUCCESS -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, January 26, 2015 4:05 PM To: Tomcat Users List Subject: Re: Unable to

RE: Mod_jk Configuration

2015-01-26 Thread Chris Arnold
Yeah, that document is evidently a pack of lies. Specifically, the path and docbase attributes in Context are ignored in META-INF/context.xml files, and you really shouldn't have your Context anywhere else (except in conf/[engine]/[host]/[appname].xml, which behaves almost the same way).

Application getting stopped with error code 610 038

2015-01-26 Thread Shruti-Prithvi
My tomcat web application stopped working after getting following error. janv. 09, 2015 9:57:16 AM org.apache.tomcat.util.net.AprEndpoint$Poller run Grave: Poller failed with error [610 038] : [APR does not understand this error code] Could you please help with what could be root cause of this

request.getUserPrincipal() is null but StandardSession.principal is set

2015-01-26 Thread Thomas Strauß
Hi, we have an issue with later and latest Tomcat versions, that prevent us from upgrading to a version later than something like 7.0.22. We use FormBasedAuthentication with a custom realm. This is tested with Tomcat 7.0.57 and JDK 7u76 on Windows. My setup has a login form calling the

Re: request.getUserPrincipal() is null but StandardSession.principal is set

2015-01-26 Thread Konstantin Kolinko
2015-01-26 11:54 GMT+03:00 Thomas Strauß t.stra...@srs-management.de: Hi, we have an issue with later and latest Tomcat versions, that prevent us from upgrading to a version later than something like 7.0.22. We use FormBasedAuthentication with a custom realm. This is tested with Tomcat

AW: request.getUserPrincipal() is null but StandardSession.principal is set

2015-01-26 Thread Thomas Strauß
Hi, thanks for replying, yes, this question is also posted on SO. You did actually help me understand the problem better, yet, I cannot resolve it for the moment. To summarize my findings: I have a principal set in the protected resource. If a request is triggered from the protected resource,

Re: request.getUserPrincipal() is null but StandardSession.principal is set

2015-01-26 Thread Konstantin Kolinko
2015-01-26 14:27 GMT+03:00 Thomas Strauß t.stra...@srs-management.de: Hi, thanks for replying, yes, this question is also posted on SO. You did actually help me understand the problem better, yet, I cannot resolve it for the moment. To summarize my findings: I have a principal set in the

AW: request.getUserPrincipal() is null but StandardSession.principal is set

2015-01-26 Thread Thomas Strauß
Hi, the problem is isolated in StandardHostValve Lines 165ff: boolean errorAtStart = response.isError(); 165:if (asyncAtStart || context.fireRequestInitEvent(request)) { // Ask this Context to process this request try { if (!asyncAtStart ||

AW: request.getUserPrincipal() is null but StandardSession.principal is set

2015-01-26 Thread Thomas Strauß
-Ursprüngliche Nachricht- Von: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Gesendet: Montag, 26. Januar 2015 13:01 An: Tomcat Users List Betreff: Re: request.getUserPrincipal() is null but StandardSession.principal is set In this mailing list the convention is to respond

Re: Mod_jk Configuration

2015-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/26/15 5:36 PM, Chris Arnold wrote: Yeah, that document is evidently a pack of lies. Specifically, the path and docbase attributes in Context are ignored in META-INF/context.xml files, and you really shouldn't have your Context

Re: Mod_jk Configuration

2015-01-26 Thread Chris Arnold
Yeah, that document is evidently a pack of lies. Specifically, the path and docbase attributes in Context are ignored in META-INF/context.xml files, and you really shouldn't have your Context anywhere else (except in conf/[engine]/[host]/[appname].xml, which behaves almost the same way).

Re: Unable to install tomcat on Window 7

2015-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frank, On 1/26/15 5:13 PM, Frank Lugalla wrote: -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, January 26, 2015 4:05 PM To: Tomcat Users List Subject: Re: Unable to install tomcat on