Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Aaron Gray
Honestly, thank you for your replies and helping me step through this. I was at my wits end with no known place to go. I appreciate it, truly. I have to leave now to be somewhere in like 15 minutes, so I cant really get in to all this now, but I read it. and I will dedicate time to it tomorrow a

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread tomcat
On 21.02.2017 23:28, Aaron Gray wrote: Antonio: The Tomcat server has no knowledge of the F5, or that it is being fronted by an Apache HTTP Server. I do SSL termination in Apache HTTP Server, and clear-text from HTTP to Tomcat. My redirect port for the normal HTTP listen in Tomcat is commented

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Aaron Gray
Antonio: The Tomcat server has no knowledge of the F5, or that it is being fronted by an Apache HTTP Server. I do SSL termination in Apache HTTP Server, and clear-text from HTTP to Tomcat. My redirect port for the normal HTTP listen in Tomcat is commented out. Andre: The URL I am

Re: Deploy app by JMX

2017-02-21 Thread tomcat
On 21.02.2017 22:51, Roque Alexander Lozano Lozano wrote: Hello I am trying to create application deployment using JMX through MBeanFactory.. The methods used were: 1. createStandardServiceEngine 2. createStandardHost 3 In the service I invoke addConnector to listen via http port. When enteri

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread André Warnier
On 21.02.2017 20:45, Aaron Gray wrote: I have an application server from a vendor that comes bundled with an additional Apache Tomcat server. The webapp SelfService.war is vendor supplied too. Here's my problem (IP's replaced to protect the innocent): networks: DMZ=172.x.x.x INTERNAL=10.x.x.x

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Antonio S. Cofino
Aaron, on tomcat instances change the redirectPort attributte on the http conectó to the loabbalancer's port 443 My guess is that your webapp has restriction rule requesting SSL con fidntial channel. Therefore the non-confidential to the 18080 port from the balancer are redirected to the 23270 por

Deploy app by JMX

2017-02-21 Thread Roque Alexander Lozano Lozano
Hello I am trying to create application deployment using JMX through MBeanFactory. The methods used were: 1. createStandardServiceEngine 2. createStandardHost 3 In the service I invoke addConnector to listen via http port. When entering through the url http://191.168.0.1:8091/myapp it generates

Re: websocket thread safe send??

2017-02-21 Thread Mark Thomas
On 21/02/2017 14:17, Cristian Lorenzetto wrote: > i have a question. > > I have multiple threads sending a message in a unique connection. > > Send api is thread safe? What does the documentation say? Hint: read the specification and the relevant JavaDoc. Mark > > if it is not thread safe it

Re: Getting application root path before servlet is initialized?

2017-02-21 Thread Mark Thomas
On 21/02/2017 13:31, Martin Knoblauch wrote: > Hi, > > is there a way to find the absolute path of the application root before > the servlet is initialized? > > Alternatively: is there a way to defer the initialization of a datasource > until the servlet is initialized? > > Background: I have e

Re: Jsp character encoding configuration

2017-02-21 Thread Mark Thomas
On 18/02/2017 16:32, Lazar Kirchev wrote: > I noticed something else strange. If in an jspx file I declare one and > the same encoding (in my case Windows-1252) in both the XML prolog and > the page directive pageEncoding property, on Tomcat 8.5.11 I get the > error message: > "Page-encoding specif

Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Aaron Gray
I have an application server from a vendor that comes bundled with an additional Apache Tomcat server. The webapp SelfService.war is vendor supplied too. Here's my problem (IP's replaced to protect the innocent): networks: DMZ=172.x.x.x INTERNAL=10.x.x.x server1 https listen = 172.1.1.1:23270 s

determining how to set jarsToScan

2017-02-21 Thread Ty
Given no prior familiarity with a set of JAR files, how would one determine which of them should be included in the jarsToScan list? Given the performance impact (e.g. startup time), I'm interested in keeping the jarsToScan list as small as possible. Whether or not a JAR has TLDs seems pretty str

websocket thread safe send??

2017-02-21 Thread Cristian Lorenzetto
i have a question. I have multiple threads sending a message in a unique connection. Send api is thread safe? if it is not thread safe it is better to use synchronize or a queue?

Getting application root path before servlet is initialized?

2017-02-21 Thread Martin Knoblauch
Hi, is there a way to find the absolute path of the application root before the servlet is initialized? Alternatively: is there a way to defer the initialization of a datasource until the servlet is initialized? Background: I have extended "org.apache.tomcat.jdbc.pool.DataSourceFactory" to auto

Re: tomcat thread BLOCKED when loading class

2017-02-21 Thread xming
sorry for the bothering, it is caused by incorrect mybatis config. > 在 2017年2月21日,15:27,xming 写道: > > > Any clue would be appreciated. > > > Server version: Apache Tomcat/8.5.8 > Server built: Nov 3 2016 21:14:13 UTC > Server number: 8.5.8.0 > OS Name:Linux > OS Version: 2.6.3