Questions tagged [tomcat8]

Version 8.x (August 2013 onwards) of the Apache Tomcat servlet container. Use only if your question is specifically related to features of this version.

Version 8.x (August 2013 onwards) of the Apache Tomcat servlet container.

Apache Tomcat is an open source servlet container developed by the Apache Software Foundation (ASF). It supports the 3.1, 2.3, 3.0, and 1.0 specifications1. Questions here should relate only to Tomcat Version 8.x.

Use only if your question is specifically related to features of this version. Just because you are using this version, doesn't mean you need this tag. Use in addition to or instead of this tag.

See for more information.

2687 questions
9
votes
2 answers

Parallel stream doesn't set Thread.contextClassLoader after tomcat upgrade

After tomcat upgrade from 8.5.6 to 8.5.28 parallel stream stopped supplying Threads with contextClassLoader: Because of it Warmer::run can't load classes in it. warmers.parallelStream().forEach(Warmer::run); Do you have any ideas what Tomcat was…
oneat
  • 10,778
  • 16
  • 52
  • 70
9
votes
4 answers

incompatible version [1.1.34] of the APR based Apache Tomcat Native library

On my openSUSE Leap 42.3 server during Spring Boot 2.0.0.M6 application startup on Embedded Tomcat server I'm seeing the following error in the logs: ERROR 30471 --- [main] o.a.catalina.core.AprLifecycleListener: An incompatible version [1.1.34] of…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
9
votes
3 answers

Embedded tomcat giving failed to scan jars from classloader hierarchy

I am newly trying out Embedded tomcat version 8.0.15. Downloaded the maven dependency into my project. Create the necessary context and instances. Tomcat server is coming up fine. But I am getting the below warnings Jun 17, 2017 9:50:44 PM…
user3592502
  • 325
  • 1
  • 5
  • 18
9
votes
2 answers

Tomcat 8 change catalina.out permissions to be readable by all

The catalina.out file is getting created with "-rw-r-----" permissions (i.e 640 permissions). I want to give read permission to "others" too but that is not happening. Tried setting umask as 022 in setenv.sh and in other places but this did not…
janeshs
  • 793
  • 2
  • 12
  • 26
9
votes
1 answer

Specifying a nested context path in Tomcat using autodeploy inside webapps/

I know that in a default Tomcat 8 configuration I can drop a file foo.war file into the webapps/ directory, and Tomcat will autodeploy my web app with a context path of /foo/. Bu what WAR filename would I use if I wanted the context path to be…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
9
votes
4 answers

Service tomcat8 failed to start by using service tomcat8 start

I'm using Vagrant to deploy to Ubuntu Linux and try to start a tomcat8 service. Tomcat 8 was installed by apt-get install tomcat8. When using the service tomcat8 start command, I got the following error: Job for tomcat8.service failed. See…
Liky
  • 91
  • 1
  • 1
  • 3
9
votes
2 answers

Missing Tomcat8 conf directory

I've just installed Tomcat8 version 8.0.24-1 from Debian 8 repository by aptitude install tomcat8. I tried to play around with Tomcat, starting and stopping it. When I tried to shut it down by running ./bin/shutdown.sh, I noticed that shutdown…
patryk.beza
  • 4,876
  • 5
  • 37
  • 56
9
votes
1 answer

Tomcat connector relationship between connectionTimeout and keepAliveTimeout

I would like to know what the relationship between the connectionTimeout and keepAliveTimeout properties of the tomcat connectors is. Should they be set to the same value (as it's the default)? What is the effect of keepAliveTimeout being less than…
Radi Radichev
  • 562
  • 6
  • 13
9
votes
4 answers

Should I add both JAVA_HOME and JRE_HOME in environmental variable, PATH?

I ran into this error while setting up my Tomcat and Java environmental path: Neither the JAVA_HOME nor the JRE_HOME environmental variables is defined. At least one of the 2 environmental variables is needed to run this program. In the user…
Reagan Ochora
  • 1,642
  • 1
  • 19
  • 22
9
votes
4 answers

How to disable Tomcat JARScanner

How: To disable Tomcat JARScanner? Why: To stop Tomcat scan every .jar in my LIB folder. According to documentation it says that it is possible to disable it within context.xml. But it seems to not be working. (May be I am missing something) I made…
Gonzalo Gallotti
  • 2,413
  • 3
  • 23
  • 28
8
votes
3 answers

Tomcat Service gets installed with "Local Service" account

Post Tomcat 8.0.53, when I install Tomcat (9.0.30 or 8.5.50) and install it as service (Using service.bat), it gets installed but with "Log on" as "Local Service" instead of "Local System account". This can be seen under services in…
pullCommitRun
  • 373
  • 6
  • 18
8
votes
3 answers

How do I add Tomcat rewrite valve to Spring Boot 2.0 application

I am trying to make use of Tomcat's rewrite valve in my Spring Boot app however cannot determine where to put the rewrite.conf in order to be loaded successfully. I am using Spring Boot 2.0.3.RELEASE with Tomcat 8.5.31 and packaging the application…
dapperwaterbuffalo
  • 2,672
  • 5
  • 35
  • 48
8
votes
4 answers

Deploying a war file to Tomcat on a VPS

I am being having a lot of issues deploying my war file on my VPS. I have java-8 and tomcat-8. My server is an Apache/2.2.22 (Debian) and my HTTP is on port 80 and tomcat on 8080. Currently if you go to www.sdfasdfasdf.com you get an empty directory…
Mike3355
  • 11,305
  • 24
  • 96
  • 184
8
votes
1 answer

Accessing file resources in SoapUI Mock Service Deployed in tomcat

Problem in short : Accessing local file in SCRIPT Dispatcher with respect to project path i.e., def file = new File(groovyUtils.projectPath+"/${responseFileName}.xml"). This is working fine when the test is run from SoapUI as Mock Service. But…
Rao
  • 20,781
  • 11
  • 57
  • 77
8
votes
0 answers

spring websocket - session closing after 60 sec

We are using websockets with apache-tomcat (8.0.15). The tomcat runs behind a HAProxy which has a timeout server 60s. We are using spring-websocket (4.1.4.RELEASE). Problem we are facing is that the sessions keep getting closed very frequently. We…
Amit Dalal
  • 642
  • 8
  • 20