Questions tagged [embedded-tomcat-8]

Embedded Apache Tomcat 8

Apache Tomcat 8 implements new versions of the Servlet, JSP and EL specifications as well as adding support for the new WebSocket specification.

It requires Java 7 or later.

Tomcat 8 supports the Java Servlet 3.1, JavaServer Pages 2.3, Java Unified Expression Language 3.0 and Java WebSocket 1.0 specifications

Tomcat 8 embeds a packaged renamed version of Commons DBCP 2.x.

Reference :

http://tomcat.apache.org/tomcat-8.0-doc/changelog.html

213 questions
0
votes
0 answers

Embedded tomcat slow process the requests - Spring Boot

I'm using Spring boot 1.5.8 with Embedded tomcat and Thymeleaf for the view. The problem is that from time to time when some request is sent, the tomcat is blocked and process the request too long time ~10 -~15 sec. From the log file, i saw that…
ROZZ
  • 1,334
  • 3
  • 20
  • 36
0
votes
0 answers

Executable War File Does Start - only for my user id

I have an executable war Spring Boot war file, built from IntelliJ, that I have started like this on Linux for a number of previous versions: java -jar app.war However, when I try to run the war file in the latest app version, it just hangs for me…
BrianV
  • 1
  • 2
0
votes
2 answers

org.atmosphere.cpr.AtmosphereMappingException in Spring Boot executable war file

I have a Spring Boot Application into which I have integrated the Atmosphere Framework. This is the Application.java file: package com.myproject.something; import org.springframework.boot.SpringApplication; import…
kiltek
  • 3,183
  • 6
  • 47
  • 70
0
votes
1 answer

stop embeddable Tomcat from java code

This might be a newbie question, but still, I need help!! I have a java class that succesfully starts embeddable Tomcat like this: public class Main { private static Tomcat tomcat; public static void main(String[] args) throws…
Sergio
  • 658
  • 1
  • 9
  • 22
0
votes
1 answer

How to enable directory listing in Spring Boot with Thymeleaf or JSP

I created the following main class in my Spring Boot application: import org.apache.catalina.servlets.DefaultServlet; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import…
Kohei TAMURA
  • 4,970
  • 7
  • 25
  • 49
0
votes
0 answers

Spring boot + security + angular2 served from embedded tomcat

I have rest service protected by spring security oauth2. Angular2 app is served from src/main/resources/static and it all works well. Basically all i need is tomcat to fire up initial index.html page and then angular2 kicks in and does his job. Up…
SeaBiscuit
  • 2,553
  • 4
  • 25
  • 40
0
votes
0 answers

Unable to restart embedded Tomcat with Spring boot without restart JVM

I observed an issue when I stop my Spring Application, it did shutdown Tomcat gracefully and close application context. There is no more thread related with my Spring Application in the JVM. However I cannot start my Spring Application after that.…
yochentt
  • 1
  • 2
0
votes
1 answer

EmbeddedTomcat and startStopThreads attribute

I've been looking all around and cannot find any good explanations or examples of using Spring 4.x (Springboot) with an EmbdeddedTomcat container and manually setting the startStopThreads attribute described here I've noticed our application's…
Dan
  • 979
  • 1
  • 8
  • 29
0
votes
0 answers

Can I define the minimum number of executer threads always kept alive for an embedded tomcat 8?

My tomcat server creates one executor thread per request until it gets to 10 executor threads (after the first 10 requests). Is there any way I can customize this in order to start the 10 executors at the same time? The main goal is to minimise…
Abel ANEIROS
  • 6,029
  • 2
  • 25
  • 19
0
votes
0 answers

Spring Boot with embedded Tomcat uses loads of CPU after startup

I have a Spring Boot application that works with an embedded Tomcat web server. The application uses a H2 db over JPA. The front end is a single page application that communicates over a REST interface with the Spring back end, that only contains a…
Herr Derb
  • 4,977
  • 5
  • 34
  • 62
0
votes
0 answers

Using intelliJ community edition for spring boot application, error :EmbeddedServletContainerException: Unable to start embedded Tomcat

This question seems to be duplicate. But i have duly checked all the configuration and solutions over stackoverflow/other, but none of them worked for me. When I'm executing this project from command line mvn spring-boot:run , then it's working…
0
votes
1 answer

Resource locking in embedded tomcat

How can I set antiResourceLocking="true" for embedded tomcat 8? I don't find any method for this. I use embedded tomcat 8.5.8.
Jorj
  • 1,291
  • 1
  • 11
  • 32
0
votes
0 answers

Apache Tomcat/8.0.8.5.4 - possible looping process with tomcat java process

I setup Tomcat 8.5.4 on linux and deployed my war. I made changes to catalina.sh for JAVA_OPTS and running fine until last week. I got to know: $top -p 10120 cpu time: 95% PID 10120 running under the ID root executing the command java has consumed…
nivas
  • 53
  • 1
  • 5
0
votes
1 answer

Running two Tomcat servers in the same application fails on MBean registration

I'm trying to run two embedded Tomcat servers within the same application but I keep getting an exception that the "Tomcat" name has already been registered as an MBean. Running two Tomcat servers in two different processes works just fine. It's…
StFS
  • 1,639
  • 2
  • 15
  • 31
0
votes
0 answers

Tomcat embedded fail to start after upgrade - setDigest is missing

in the release of 8.0.x of tomcat embedded I worked with setDigest("SHA-1") , and in the 8.5 they removed this method and replaced it by CredentialHandler ,I used it like this: MessageDigestCredentialHandler handler = new…