Re: Troubleshooting Web Services Calls/Duplicate Headers

2018-04-26 Thread Randy Oun
Thanks for the quick reply Mark. I expected your answers but wasn't sure if they were capabilities unware to me that could help. Randy On Thu, Apr 26, 2018, 1:18 PM Mark Thomas wrote: > On 26/04/18 18:30, Randy Oun wrote: > > > Questions: > > -Are there any known Tomcat issues that could contr

Re: Troubleshooting Web Services Calls/Duplicate Headers

2018-04-26 Thread Mark Thomas
On 26/04/18 18:30, Randy Oun wrote: > Questions: > -Are there any known Tomcat issues that could contribute to this behavior? No. Outgoing HTTP connections are nothing to do with Tomcat. > -Are there troubleshooting methods for Tomcat itself that can help debug > the issue? We've increased logg

Troubleshooting Web Services Calls/Duplicate Headers

2018-04-26 Thread Randy Oun
Hello Tomcat Users community, currently I have an application hosted in Tomcat 8.5.23 that is getting connect resets when calling a web service. Network traces show that duplicate headers in the web service request (see below) and probable cause. The application devs are not seeing where their co

Re: tomcat connection pool not closing properly

2018-04-26 Thread Chris Cheshire
On Thu, Apr 26, 2018 at 10:23 AM, Chris Cheshire wrote: [snip] I've done some more testing with older and newer versions of tomcat, and also swapping to use commons dbcp. All of them exhibit the same behaviour. So the question becomes is this expected behaviour (previous connection pool instance

Re: Socket accept failed: The specified network name is no longer available.

2018-04-26 Thread Mark Thomas
On 26 April 2018 15:18:59 BST, Igor wrote: >I'm trying to find the reason for this problem- >I've installed Wireshark on the instance and have captured the packets >in >the moments that we see a problem. >Tomcat's error log has millisecond precision (.000), but Wireshark's >log has >microsecond pr

Re: Tomcat 9 ;jsessionid

2018-04-26 Thread Greg Huber
Chris, >As for your image URLs failing due to those path parameters... why are >they failing? Which component is generating those HTTP 500 responses? ​I did some more investigation and my app would not display the image with the ; http://www.myapp.co.uk/images/image_32x32.png;jsessionid=52FC7E2

tomcat connection pool not closing properly

2018-04-26 Thread Chris Cheshire
[ tomcat 8.5.30, mysql server 5.7.22, connector/j 5.1.46, centos 6, debian 8. ] I recently upgraded my sandboxes from 8.5.24 to 8.5.28 and now .30 and I have noticed that when a webapp is reloaded via the host manager, the associated connection pool is not getting closed down properly in the datab

Re: Socket accept failed: The specified network name is no longer available.

2018-04-26 Thread Igor
I'm trying to find the reason for this problem- I've installed Wireshark on the instance and have captured the packets in the moments that we see a problem. Tomcat's error log has millisecond precision (.000), but Wireshark's log has microsecond precision (.00). Tomcat's error log has no additi

Re: DefaultServlet subclass behavior change TC6 to 8

2018-04-26 Thread Daryl Stultz
> If you look at doGet() and follow the code you should be able to figure out what you need to change to get things working in 8.5.x. Thanks Mark, that did the trick, serveResource calls getRelativePath(request, true) now where we were overriding getRelativePath(request) Chris, the Filter idea

Re: Tomcat 9 ;jsessionid

2018-04-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Greg, On 4/26/18 4:53 AM, Greg Huber wrote: > Hello, > > One thing I have noticed with Tomcat 9.0.x I get alot > ;jsessionid=xxx appended to my urls. This did not happen with > 8.5.x. > > /images/image_32x32.png;jsessionid=BF27C604B287CCF6DF3DBDB

Re: How to coustomize error 404 apache tomcat 9.0.6

2018-04-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alexandre, >>> On Apr 25, 2018, at 7:06 PM, Christopher Schultz >>> wrote: >>> >> Anexandre, >> > On 4/25/18 6:23 PM, Alexandre Adao wrote: What will be the > easiest way to customize page error 404 running Apache > Tomcat 9.0.6?

Re: x-forwarded-X stuff and websockets

2018-04-26 Thread Johan Compagner
> > > > Are you sure the L7 load balancer can handle HTTP upgrade? Looking at > the Amazon docs you want an "Application load balancer" rather than a > "Classic load balancer" > > My guess is that the load balancer is removing one or more of the > headers Tomcat depends on to identify the request a

Re: Tomcat 9 ;jsessionid

2018-04-26 Thread Mark Thomas
On 26/04/18 09:53, Greg Huber wrote: > Hello, > > One thing I have noticed with Tomcat 9.0.x I get alot ;jsessionid=xxx > appended to my urls. This did not happen with 8.5.x. > > /images/image_32x32.png;jsessionid=BF27C604B287CCF6DF3DBDB180C2CBEB > > 500 Internal Server Error >/image

Re: x-forwarded-X stuff and websockets

2018-04-26 Thread Mark Thomas
On 26/04/18 08:54, Johan Compagner wrote: > Hi, > > We have a tomcat on an amazon service with for now a ELB L4 (tcp > loadbalancer, with ssl offloading) before it > > That works for the most part just fine, except we don't know that we are in > ssl mode or not > Our application have support for

Re: converting 8.0.x ssl Connector to 8.5.x sslHostConfig

2018-04-26 Thread Mark Thomas
On 26/04/18 02:37, Baron Fujimoto wrote: > We're working on upgrading from 8.0.x to 8.5.x in preparation for 8.0's > impending EOL. > Our initial 8.5 deployment which essentially uses our legacy server.xml SSL > connectors from 8.0 seems to work as expected. The HTTP Connector > documentation su

Re: APR/native error on tomcat 8.5.16

2018-04-26 Thread Mark Thomas
On 25/04/18 13:34, M. Manna wrote: > I needed to mask out certain information before I could send you the full > stack trace. Here is the full version: OK. That looks like a normal ClientAbortException. This doesn't look like Tomcat's logging. It looks like application logging. I think you need t

Tomcat 9 ;jsessionid

2018-04-26 Thread Greg Huber
Hello, One thing I have noticed with Tomcat 9.0.x I get alot ;jsessionid=xxx appended to my urls. This did not happen with 8.5.x. /images/image_32x32.png;jsessionid=BF27C604B287CCF6DF3DBDB180C2CBEB 500 Internal Server Error /images/image_32x32.png;jsessionid= ... 23784378307846F: 1 Ti

x-forwarded-X stuff and websockets

2018-04-26 Thread Johan Compagner
Hi, We have a tomcat on an amazon service with for now a ELB L4 (tcp loadbalancer, with ssl offloading) before it That works for the most part just fine, except we don't know that we are in ssl mode or not Our application have support for that to look at the x-forwarded-proto header (and some oth

Re: tomcat 7 and 8 version memory setting

2018-04-26 Thread Suvendu Sekhar Mondal
Ramesh, On Thu, Apr 26, 2018 at 11:45 AM, Naga Ramesh wrote: > Team, > > > > I have configured the tomcat7 & 8 versions on our AWS environment, but how > much memory need to give min and max for each tomcat. ( max to max how much > need to give the max vlaue) > > > > Server: AWS linux > > RAM: