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
4
votes
2 answers

Tomcat 8 embedded - ERROR {org.apache.catalina.core.ContainerBase} - A child container failed during start

I'm using tomcat embedded and when I try to star the server following error get occurred. I'm using tomcat 8.0.20 and jdk8 ERROR {org.apache.catalina.core.ContainerBase} - A child container failed during…
4
votes
2 answers

Configure Spring Boot + tomcat 8 to run on a non priviledged port

I am have a working spring boot + tomcat8 embedded application that bind to ports 8080 (http) and 8888 (https). Now I am looking for a way to configure the application to run a) on a privileged port i.e. port that is lower then 1024 i.e. port 80…
Tito
  • 2,234
  • 6
  • 31
  • 65
3
votes
2 answers

Enable Observability (Logging/Metrics) of TLS Handshakes on Embedded Tomcat 8.5 with Java 8

We are running Spring Boot APIs where we terminate TLS in the API itself. Several times we have observed excessive CPU usage after extensive searches were caused by someone creating many connections (legitimately or erroneously because of rejected…
Alessandro Vermeulen
  • 1,321
  • 1
  • 9
  • 28
3
votes
2 answers

In springboot, i can't exclude embedded tomcat

I have exclude the embedded dependency, but it always starts with tomcat instead of undertow. I have been crazy on this question. Hope someone could help me, thanks very much. I have tried many methods , but they didn't work. Does it the reason of…
treeliked
  • 383
  • 1
  • 4
  • 15
3
votes
1 answer

Adding request scope in Spring results in java.lang.IllegalStateException: No Scope registered for scope name 'request'

I have an issue where I am not able to add request beans in spring with Embedded Tomcat 9.0.5 methode Which Would Launch The Application public static void main(final String[] args) { srv = new Tomcat(); srv.getConnector().setPort(port); …
F.BOU
  • 327
  • 3
  • 5
  • 17
3
votes
2 answers

Set jvmRoute in spring boot 2.0.0

For sticky session i need to set the jvmRoute of the embedded tomcat. Actually only a System.setProperty("jvmRoute", "node1"); is required, but i want to set a via application.properties configurable property. I don't know how and when to set this…
davey
  • 1,666
  • 17
  • 24
3
votes
2 answers

Tomcat 8 with CompletableFutures in Java 8

I want to parallelise my application. I am using Tomcat8 to deploy my web application. I am using Tomcat Default settings(HTTP Connector Thread count 200 and Default JVM settings). I want to use CompletableFuture in Java to complete the task in…
Nandeesh
  • 43
  • 5
3
votes
0 answers

Configuring JNDI URL resources in embedded Tomcat Spring Boot application

I am having a Spring Boot application with embedded Tomcat server. My application does JNDI look up of datasource and config file URL. I am able to configure JNDI datasource but i am unable to configure JNDI URL in embedded Tomcat. Same application…
Goro
  • 516
  • 4
  • 15
3
votes
2 answers

Spring Boot + Tomcat Embedded + Struts 2 - JSP are not invoked

I'm trying to migrate a web application with spring boot and struts 2 (struts.xml file) from Jboss 7.1.1 to tomcat embedded. Now, my configurations is like that: Application.java @SpringBootApplication() @ServletComponentScan() public class…
3
votes
2 answers

Spring-boot, tomcat-embedded -- how define catalina.properties?

When running spring-boot with tomcat-embedded, how do I set/change these tomcat-config system-properties? https://tomcat.apache.org/tomcat-8.5-doc/config/systemprops.html I tried just adding -D... on the commandline, but doesnt seem to work.
Rop
  • 3,359
  • 3
  • 38
  • 59
3
votes
1 answer

Spring Boot web app not starting

I have a small spring boot app which exposes an API through a controller. The controller uses some services, which user mongodb repositories. My pom.xml:
Cristian
  • 417
  • 1
  • 9
  • 18
3
votes
2 answers

Is it possible to remove the port from the URL for a Spring Boot application using an embedded Tomcat web server that is running on Windows IIS?

Do Spring Boot applications with embedded tomcat web servers that run on top of IIS as an executed JAR file always require specifying the port in the URL in order to hit the application in the browser?
Wilroy Jetson
  • 43
  • 1
  • 4
3
votes
1 answer

How can I get the current number of client request threads in spring boot embedded tomcat?

I'd like to get the current number of active client request threads in a spring boot app using embedded tomcat so that I can expose it over actuator's metrics endpoint. I'm not looking for active sessions, but active request processing threads.…
3
votes
1 answer

How to wrap executable .war with embedded tomcat into .exe?

I have standalone web application, uses embedded Tomcat, MVC Spring boot. How can I wrap it correctly into .exe, not to let final user modify property file. The executable war,created with Maven 'mvn clean install' works just fine while launching…
Dave D.
  • 737
  • 3
  • 10
  • 23
3
votes
0 answers

Is it possible to enable directory listing in Spring Boot application?

We're migrating an existing application to Spring Boot. The application in question (Genie) acts as a distributed, scalable client for data processing clusters like Hadoop or Presto. As such we need to output results of queries to disk and allow…
tgianos
  • 31
  • 1
  • 4