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
8
votes
1 answer

How to disable Tomcat's html error pages when my REST API returns 500 HTTP Status

I'm using @ControllerAdvice, @ErrorHandler and @ResponseStatus annotations to return some error informations. I'm sure that handler method is executed (I've checked it under debuger.) But my ErrorInfo object is overriden by Tomcat HTML error page.…
Michał Mielec
  • 1,582
  • 1
  • 14
  • 38
8
votes
1 answer

Why does servletContext.getRealPath returns null on tomcat 8?

I have the following code line: servletContext.getRealPath("resources/images/video_icon.png") Wen I run application using jetty(using maven plugin) this code line return corect value. When I run application using tomcat 8(on tomcat 7 it works) -…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
8
votes
4 answers

Spring Boot: remove jsessionid from url

How can I remove the jsessionid from my urls? I'm using Spring Boot MVC (without Spring Security; tomcat embedded). I've read that It could be done by setting the disableUrlRewriting to "true". But this looks like a Spring Security solution, which I…
Kian
  • 695
  • 2
  • 11
  • 23
8
votes
4 answers

How to convert a subdomain to a path with Embedded Tomcat 8 and Spring boot

How to rewrite subdomains to paths? Example: foo.bar .example.com --> example.com /foo/bar Or better would be (reverse folders): foo.bar .example.com --> example.com /bar/foo Requesting foo.bar .example.com should ship a file in…
d0x
  • 11,040
  • 17
  • 69
  • 104
7
votes
1 answer

Session JDBCStore fails to java.lang.Class.forName NullPointerException after Tomcat restart - but only for a minute or so, then works

So, I have had a working Tomcat JDBC session storage solution for some time. I deployed what I consider to be an unrelated change (and I rolled back to previous war and the new issue still exists). The problem I can reproduce the problem like…
Esko Piirainen
  • 1,296
  • 2
  • 14
  • 28
7
votes
4 answers

Why would changing directory order of jar files in WEB-INF/lib cause a NoClassDefFoundError in Tomcat 8?

We have a web app that we run in Tomcat 8, and recently we've observed that the artifacts (.war files) built by some developers on our team throw a NoClassDefFoundError, while the same code built by others functions as expected. From…
Chris Finley
  • 3,901
  • 5
  • 24
  • 32
7
votes
0 answers

Can we deploy python REST API application on Apache tomcat Server

I developed REST API in PYTHON. I want to deploy it on Apache Tomcat Server, Is it possible to deploy it on Tomcat server?
Sanjay
  • 71
  • 1
  • 5
7
votes
1 answer

NoClassDefFoundError: JavacProcessingEnvironment at runtime after tomcat 8 upgrade

After upgrading a project to spring boot 1.5.9 (spring 4.3 & tomcat 8.5.24) a service that makes use of queryDSL is failing at runtime because it can't find a class from a jdk lib (tools.jar). /Q_742623943_01321512155_128635432.java:1: warning:…
miklesw
  • 724
  • 1
  • 9
  • 25
7
votes
1 answer

Strange requests in access logs lead to IllegalArgumentException

I am using tomcat8.0.43 as my server. When reviewing my logs, occasionally I see: [...]INFO[...] org.apache.coyote.http11.AbstractHttp11Processor.process Error parsing HTTP request header Note: further occurrences of HTTP header parsing…
theyuv
  • 1,556
  • 4
  • 26
  • 55
7
votes
1 answer

Returning Json From Jersey on Linux Throws Exception

I've developed a Jersey API which returns either XML or JSON (depending on the request header). When deployed on my Windows 2012 server (Tomcat), it works no problem. When I deploy (after compiling it on Ubuntu) to an Ubuntu machine in AWS…
onefootswill
  • 3,707
  • 6
  • 47
  • 101
7
votes
1 answer

Maven project configuration required for module not available

I have a Java/Maven/JSP runs with the Tomcat 8 server. The project structure is as following, I have this pom.xml file provided below,
Arefe
  • 11,321
  • 18
  • 114
  • 168
7
votes
1 answer

springSecurityService.principal returns Null when deployed as a WAR in tomcat 8.5

Preamble I'm designing an API gateway for a Grails microservice federation. This issue seems related to a bunch of issues already filed in this repository but nothing provides a solution. Versions and Configurations Grails: 3.2.2 Tomcat: 8.5 Plugin…
Saqib Ahmed
  • 1,056
  • 14
  • 33
7
votes
0 answers

Logging Tomcat 8's own logs through slf4j/logback

I try to manage the internal logs of Tomcat (commons-daemon.log, localhost_access_log, localhost, catalina,...) through slf4j/logback mainly to be able to have a rolling file policy on it. I put the needed jars in Tomcat lib directory…
7
votes
1 answer

Setting User Environment Variables for tomcat on Windows

I am running tomcat 8 on Windows Server 2012. I have a web app that needs an user environment variable to be set in order to run. I can start tomcat and retrieve the variable successfully like this: set JAVA_HOME=C:\Program…
Be Kind To New Users
  • 9,672
  • 13
  • 78
  • 125
7
votes
2 answers

Tomcat memory leak issue of log4j2 thread

I'm using log4j2 for logging, tomcat8 and java8 version. I used attribute "monitorInterval" to periodically check my log4j2.xml. During shutdown my tomcat i'm facing issue of memory leak.How to resolve this memory leak issue? Below are the catalina…
Reetika
  • 1,227
  • 2
  • 17
  • 24