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
282
votes
17 answers

Tomcat: java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens

I am getting below stack trace when I am deploying my application in a multi-server Apache Tomcat 8 environment. I am getting this error frequently, and it seems it is blocking the tomcat thread: INFO [http-nio-80-exec-4461]…
user2016012
  • 2,929
  • 2
  • 13
  • 4
140
votes
5 answers

Tomcat 8 throwing - org.apache.catalina.webresources.Cache.getResource Unable to add the resource

I have just upgraded Tomcat from version 7.0.52 to 8.0.14. I am getting this for lots of static image files: org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/base/1325/WA6144-150x112.jpg] to the cache because…
iainmac999
  • 1,569
  • 2
  • 13
  • 12
81
votes
6 answers

Tomcat 8 Maven Plugin for Java 8

Is the tomcat7-maven-plugin working with a tomcat 8 server and java 8? I can't find any tomcat8-maven-plugin.
myborobudur
  • 4,385
  • 8
  • 40
  • 61
74
votes
7 answers

Tomcat 8 is not able to handle get request with '|' in query parameters?

I am using Tomcat 8. In one case I need to handle external request coming from external source where the request has a parameters where it is separated by |. Request is looks like this: http://localhost:8080/app/handleResponse?msg=name|id| In this…
ajm
  • 12,863
  • 58
  • 163
  • 234
67
votes
17 answers

403 Access Denied on Tomcat 8 Manager App without prompting for user/password

I have set up tomcat 8 according to this, and I have the following tomcat-users.xml file:
Hodossy Szabolcs
  • 1,598
  • 3
  • 18
  • 34
58
votes
25 answers

More than one fragment with the name [spring_web] was found. This is not legal with relative ordering

I have a spring boot application that works fine when I run it using the embedded server from Intellj. However, when I package it into .war file and deploy it on tomcat I get the following error: org.apache.catalina.LifecycleException: Failed to…
user2054833
  • 2,115
  • 7
  • 24
  • 39
46
votes
3 answers

Tomcat support for HTTP/2.0?

Does anyone know what is the lowest version of Tomcat that supports HTTP/2.0? I've been looking everywhere on their site and I cannot find any details regarding this.
Asher Johnson
  • 751
  • 1
  • 7
  • 10
41
votes
10 answers

Getting NoSuchMethodError:javax.servlet.ServletContext.getVirtualServerName()

I am facing an issue during deployment of a service in Tomcat 8. Getting following error : Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String; at…
Rahman
  • 3,755
  • 3
  • 26
  • 43
31
votes
5 answers

The valid characters are defined in RFC 7230 and RFC 3986

My program throws this exception online,I know the reason why it is wrong. My question is how do I find the wrong place,The Java cannot catch the location of this exception. How do I get additional information about this exception,For example, the…
Leandy
  • 595
  • 1
  • 5
  • 14
31
votes
2 answers

org.apache.catalina.connector.ClientAbortException: java.io.IOException: APR error: -32

At my Spring Boot + Tomcat 8 project I have configured @ControllerAdvice which looks like: @ControllerAdvice public class GlobalControllerExceptionHandler { final static Logger logger =…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
27
votes
3 answers

Should I upgrade to Tomcat8 from Tomcat 7

My project is currently running on Tomcat 7. Should I go for upgrade to Tomcat 8? What are the pros and cons of doing that? is tomcat 8 better in terms of performance, memory utilization?
somaniA
  • 614
  • 2
  • 7
  • 30
27
votes
2 answers

How do you enable TLS 1.2 on Spring-boot?

I am trying to enable TLS 1.2 on Tomcat on Spring-boot 1.2.1. Android 5.0 is failing to connect to the default SSL settings, due to an SSL handshake failure. Android 4.4, iOS, Firefox, and Chrome all connect to the default version. I think this is…
mattm
  • 5,851
  • 11
  • 47
  • 77
27
votes
3 answers

Adding external resources to class-path in Tomcat 8

I have a Tomcat application which needs to reference some properties files that are external to the app. Generally these are stored on a local machine at a specific place like C:\PROJECT_NAME\conf\. In Tomcat 7 this was achievable by placing a…
Michael Landes
  • 969
  • 1
  • 8
  • 13
26
votes
6 answers

How to change Cookie Processor to LegacyCookieProcessor in tomcat 8

My code is working on tomcat 8 version 8.0.33 but on 8.5.4 i get : An invalid domain [.mydomain] was specified for this cookie. I have found that Rfc6265CookieProcessor is introduced in tomcat 8 latest versions. It says on official doc that this can…
Sachin Sharma
  • 1,446
  • 4
  • 18
  • 37
24
votes
6 answers

Spring Boot Programmatically setting profiles

How to set active profile in spring boot Application. This application will be deployed in stand alone Tomcat. I have 2 property files application-{profile}.properties. My Application class @SpringBootApplication public class…
Mukun
  • 1,756
  • 10
  • 30
  • 57
1
2 3
99 100