Re: Multiple instances?

2014-12-11 Thread Billy Bones
Ok, then I'll completly wright another systemd unit derivated from the one provided by CentOS. Yup, that what I thought about the CATALINA_HOME and BASE, so as you suggested, I'll test to run individual units and saw how it's going on. Many thanks guys. 2014-12-10 18:10 GMT+01:00 Daniel Mikusa

unit testing on tomcat with java

2014-12-11 Thread Jason Ricles
I am currently using tomcat 7.0.57 to host a website for the purpose of having a websocket serverdeployed with the page for the purpose of communicating between an external java program and the webpage. I would like to write some unit test to test that the integration between the external java

Re: Multiple instances?

2014-12-11 Thread Daniel Mikusa
On Thu, Dec 11, 2014 at 3:45 AM, Billy Bones gael.ther...@gmail.com wrote: Ok, then I'll completly wright another systemd unit derivated from the one provided by CentOS. Yup, that what I thought about the CATALINA_HOME and BASE, so as you suggested, I'll test to run individual units and saw

Re: Deploy message FAIL but app deployed

2014-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 12/10/14 2:03 PM, Jose Monreal wrote: I'm deploying my app as, curl --upload-file filename.war http://localhost:8180/manager/text/deploy?path=my#new#app#1.0 and the META-INF/context.xml has this context /my/new/app/1.0 What is

Re: unit testing on tomcat with java

2014-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jason, On 12/11/14 9:07 AM, Jason Ricles wrote: I am currently using tomcat 7.0.57 to host a website for the purpose of having a websocket serverdeployed with the page for the purpose of communicating between an external java program and the

Re: unit testing on tomcat with java

2014-12-11 Thread Jason Ricles
To the question, the external program is sending messages to the webpage through the websocket server on the page. Where as the webpage is the gui and the external java program is the guts of the gui which does what you want when a button is pressed on the gui. On Thu, Dec 11, 2014 at 9:35 AM,

Re: unit testing on tomcat with java

2014-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jason, On 12/11/14 10:03 AM, Jason Ricles wrote: To the question, the external program is sending messages to the webpage through the websocket server on the page. Where as the webpage is the gui and the external java program is the guts of the

tomcat on windows 2012 weirdness

2014-12-11 Thread Cris Berneburg - US
Hi Folks I'm having trouble with my JSP web app using Tomcat 6 and 7 on Windows Server 2012. The issue is that no matter what file I request in the browser URL, it always returns the app welcome file, that is, the login page. Even when requesting an image. The one exception is that after

Re: Multiple instances?

2014-12-11 Thread Billy Bones
No problems, I'll keep you updated ;-) Thanks for your answers. 2014-12-11 15:24 GMT+01:00 Daniel Mikusa dmik...@pivotal.io: On Thu, Dec 11, 2014 at 3:45 AM, Billy Bones gael.ther...@gmail.com wrote: Ok, then I'll completly wright another systemd unit derivated from the one provided by

Re: unit testing on tomcat with java

2014-12-11 Thread Jason Ricles
No no, it goes Website (GUI) ws server -- external java program On Thu, Dec 11, 2014 at 11:25 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jason, On 12/11/14 10:03 AM, Jason Ricles wrote: To the question, the external

Re: unit testing on tomcat with java

2014-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jason, On 12/11/14 12:16 PM, Jason Ricles wrote: No no, it goes Website (GUI) ws server -- external java program Okay, and your unit test is going to test which interaction? From GUI to ws server, or from ws server (really a servlet) to

Re: tomcat on windows 2012 weirdness

2014-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Cris, On 12/11/14 11:28 AM, Cris Berneburg - US wrote: I'm having trouble with my JSP web app using Tomcat 6 and 7 on Windows Server 2012. The issue is that no matter what file I request in the browser URL, it always returns the app welcome

Re: unit testing on tomcat with java

2014-12-11 Thread Jason Ricles
To test GUI to external progam so when I say hey send this request to the program the program sets the request flags to true. On Thu, Dec 11, 2014 at 12:39 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jason, On 12/11/14 12:16

Re: tomcat on windows 2012 weirdness

2014-12-11 Thread André Warnier
Cris Berneburg - US wrote: Hi Folks I'm having trouble with my JSP web app using Tomcat 6 and 7 on Windows Server 2012. The issue is that no matter what file I request in the browser URL, it always returns the app welcome file, that is, the login page. Even when requesting an image. The

Re: tomcat on windows 2012 weirdness

2014-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Cris, On 12/11/14 12:41 PM, Christopher Schultz wrote: Cris, On 12/11/14 11:28 AM, Cris Berneburg - US wrote: I'm having trouble with my JSP web app using Tomcat 6 and 7 on Windows Server 2012. The issue is that no matter what file I

Reverse proxy with ARR and HTTPS

2014-12-11 Thread Jesse Barnum
I have IIS 7 running with an SSL certificate. It receives HTTPS requests, and using ARR, it proxies them over HTTP to Tomcat. This works fine. The problem is that when we call HttpServletRequest.isSecure(), it returns false. This makes sense, since the request to tomcat is HTTP, but it’s not

Tomcat 7 with APR connector: connection fails when client uses SSLv2Hello

2014-12-11 Thread Sacilowski, Tadeusz
Hello, I'm in the process of upgrading our Tomcat servers to Tomcat 7 (7.0.57). I'm also trying to use the APR connector (TC-Native 1.1.32) for SSL. The servers sit behind an F5 load balancer (LTM 10.2.1) that uses an HTTP health monitor to mark nodes up/down. Prior to updating to the APR

Re: Reverse proxy with ARR and HTTPS

2014-12-11 Thread Mark Thomas
On 11/12/2014 19:12, Jesse Barnum wrote: I have IIS 7 running with an SSL certificate. It receives HTTPS requests, and using ARR, it proxies them over HTTP to Tomcat. This works fine. The problem is that when we call HttpServletRequest.isSecure(), it returns false. This makes sense, since

Re: Reverse proxy with ARR and HTTPS

2014-12-11 Thread Jesse Barnum
I should have mentioned in my original post - IIS receives both HTTP as well as HTTPS requests. Both types of requests are proxied to a single HTTP connector in Tomcat. Is the only option to create two separate HTTP connectors on two different ports, set the secure attribute to true on one of

Re: Reverse proxy with ARR and HTTPS

2014-12-11 Thread Mark Thomas
On 11/12/2014 19:42, Jesse Barnum wrote: I should have mentioned in my original post - IIS receives both HTTP as well as HTTPS requests. Both types of requests are proxied to a single HTTP connector in Tomcat. Is the only option to create two separate HTTP connectors on two different ports,

RE: tomcat on windows 2012 weirdness

2014-12-11 Thread Jeffrey Janner
I noticed the ridiculous number of session issue on one of my servers, but it wasn't Windows 2012, but 2008 R2. Don't think the windows version has anything to do with it, but something about the Tomcat version. Looking at the manager, I had a couple hundred really old sessions, several hours

Re: tomcat on windows 2012 weirdness

2014-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeffrey, On 12/11/14 4:00 PM, Jeffrey Janner wrote: I noticed the ridiculous number of session issue on one of my servers, but it wasn't Windows 2012, but 2008 R2. Don't think the windows version has anything to do with it, but something about

Re: Reverse proxy with ARR and HTTPS

2014-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jesse, On 12/11/14 2:42 PM, Jesse Barnum wrote: I should have mentioned in my original post - IIS receives both HTTP as well as HTTPS requests. Both types of requests are proxied to a single HTTP connector in Tomcat. Is the only option to

Re: Tomcat 7 with APR connector: connection fails when client uses SSLv2Hello

2014-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tadeusz, On 12/11/14 2:15 PM, Sacilowski, Tadeusz wrote: I'm in the process of upgrading our Tomcat servers to Tomcat 7 (7.0.57). I'm also trying to use the APR connector (TC-Native 1.1.32) for SSL. The servers sit behind an F5 load balancer

RE: tomcat on windows 2012 weirdness

2014-12-11 Thread Jeffrey Janner
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, December 11, 2014 3:10 PM To: Tomcat Users List Subject: Re: tomcat on windows 2012 weirdness -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeffrey, On 12/11/14 4:00 PM,

Re: Reverse proxy with ARR and HTTPS

2014-12-11 Thread Jesse Barnum
On Dec 11, 2014, at 3:14 PM, Mark Thomas ma...@apache.org wrote: Could we instead configure ARR to include some header that Tomcat would recognize? Yes. Look into the RemoteIp[Filter|Valve] Thanks Mark, I’ll look into that --Jesse Barnum, President, 360Works

Re: Reverse proxy with ARR and HTTPS

2014-12-11 Thread Jesse Barnum
On Dec 11, 2014, at 4:46 PM, Christopher Schultz ch...@christopherschultz.net wrote: On 12/11/14 2:42 PM, Jesse Barnum wrote: I should have mentioned in my original post - IIS receives both HTTP as well as HTTPS requests. Both types of requests are proxied to a single HTTP connector in