Questions tagged [embedded-tomcat]

53 questions
9
votes
2 answers

Why my Springboot with embbeded tomcat too slow when process first request?

Env. OS:macOS Mojave Version 10.14.5(centOS have same problem) Springboot:2.1.6.RELEASE(embedded tomcat 9.0.21),war I am a new player of Spring Boot, which I think is helpful to build my project. Now I have finish my work with it, but a strange…
amigo
  • 91
  • 1
  • 4
8
votes
4 answers

keep-alive configurations of spring-boot app

I am trying to fix/debug an issue of too many closing connection in a spring-boot web app that uses embedded tomcat. The problem arise because it closes connection that should be kept alive. Now, I found that tomcat has configuration that limit the…
Juh_
  • 14,628
  • 8
  • 59
  • 92
7
votes
2 answers

How to increase file size upload limit in spring boot using embedded tomcat

I am try to upload the file using my spring boot API. The function is working fine when I am using small file (less than 1 MB), but when I upload large file it gives me an exception. I am using embedded Tomcat server. Maximum upload size exceeded;…
M Swapnil
  • 2,361
  • 3
  • 18
  • 33
6
votes
2 answers

Simple Embedded Tomcat 10 Example

I'm trying to get a simple embedded tomcat 10.1.0-M11 example working but I keep getting localhost refused to connect when I go to http://localhost:8080/aa. There is no StackOverflow label yet for embedded-tomcat-10. Here is my code: import…
user1191027
5
votes
2 answers

SpringBoot - HttpMessageNotReadableException: JSON parse error: java.net.SocketTimeoutException

My code is throwing an exception as follows JSON parse error: java.net.SocketTimeoutException; nested exception is com.fasterxml.jackson.databind.JsonMappingException: java.net.SocketTimeoutException (through reference chain:…
RKA
  • 308
  • 2
  • 10
5
votes
1 answer

Gradle excecution freezes for 3 mins for certain tasks

I have 2 relatively simple Gradle 6.1.1 configs, one is using https://plugins.gradle.org/plugin/com.github.node-gradle.node to build a react app, and the other one is based on https://plugins.gradle.org/plugin/com.bmuschko.tomcat and runs a simple…
injecteer
  • 20,038
  • 4
  • 45
  • 89
3
votes
0 answers

Spring Boot 2.6.6 upgrade JNDI lookup Failure : Name [java:comp/env/jdbc/testdatasource] is not bound in this context. unable to find [java:comp]

I am trying to upgrade from Spring Boot 2.2.4.Release to 2.6.6. I have a embedded tomcat server configured in older version of the Spring boot 2.2.4 which works perfectly fine. @override protected TomcatWebserver getTomcatWebServer (Tomcat tomcat)…
krajesh10
  • 31
  • 1
3
votes
1 answer

How to set context root path in spring boot embedded tomcat?

I want to add my own application name as the prefix. Example: http://localhost:8084/MyApp/some-url. But when I click on some link (href) it redirects me to http://localhost:8084/some-url. Also I've added server.servlet.context-path=/MyApp in…
Waseem
  • 123
  • 1
  • 1
  • 11
2
votes
2 answers

How do I integrate Tomcat APR protocol connector with embedded Tomcat 9 in Springboot 2.3.12?

I need to use APR protocol connector to replace the default NIO protocol connector in embedded Tomcat 9 of Springboot 2.3.12, may I ask how to implement it?
Galam
  • 31
  • 2
2
votes
0 answers

Different reactions from diffrent projects on same machine for calling same API -> SSLException

I have a single page web application(Spring MCV + JSF(primefaces) + tomca 8) that runs on a Development-server , it makes API call for getting data from providers (for example https://stream.xyz.com), at first I had SSLHandshakeException…
Sobhan
  • 1,280
  • 1
  • 18
  • 31
2
votes
0 answers

Enbedded Tomcat configuration in Spring boot

I was going through the tomcat configuration for embedded tomcat in spring boot doc, I was not able to get prestartminSpareThreads property for embedded tomcat. However this prestartminSpareThreads is available in tomcat documentation. Could you…
meena
  • 67
  • 2
  • 9
2
votes
1 answer

Error while starting app with repositories - IllegalAccessError: class com.acme.$Proxy53 cannot access its superinterface com.acme.UserRepository

I am trying to run a standalone MVC + JPA application with embedded tomcat But the application fails with the following error, tho I dont see any obvious reason for this failure. I believe this has something to do with the way Tomcat deals with…
Ashok Koyi
  • 5,327
  • 8
  • 41
  • 50
1
vote
1 answer

Tomcat stuck thread detection in spring boot

Tomcat document provided configuration to handle stuck thread by enabling threshold and interruptThreadThreshold subsequently. https://tomcat.apache.org/tomcat-8.0-doc/config/valve.html#Stuck_Thread_Detection_Valve I have enabled it in spring boot…
Akkave
  • 303
  • 2
  • 4
  • 17
1
vote
0 answers

How can I convert a Web Application with multiple servlet contexts to Spring Boot using embedded Tomcat?

I need to convert an old web application containing multiple tomcat contexts into a Spring Boot application that utilizes Embedded Tomcat. The following is the server.xml file defining the contexts: Is there a way in which I can configure a Spring…
1
vote
2 answers

How to add health endpoint in Apache Tomcat 9?

I am using Apache Tomcat 9 server as a Maven dependency in my project. It is working fine and now I need to add a health endpoint so that it will return 200 OK if everything is running fine. I came to know about HealthCheckValve…
mdanish98
  • 65
  • 8
1
2 3 4