Questions tagged [embedded-tomcat]

53 questions
0
votes
0 answers

Set max session age with spring security

I would like to set the max session age, but I cannot see how to do this, I am already setting a session inactivity timeout of 15 minutes, but I also want to enforce a session max age of 12 hours, this would be regardless of whether the session is…
berimbolo
  • 3,319
  • 8
  • 43
  • 78
0
votes
1 answer

Handle tomcat request parsing failure in Spring-Boot

I have a Spring-Boot-Web JSON-API that has a custom error handling with specific error responses. However, if I call my server with a bad URL then neither Spring's ErrorController, nor Spring's @ExceptionHandler will be called. Example Call: curl…
ST-DDT
  • 2,615
  • 3
  • 30
  • 51
0
votes
1 answer

Configuring access log pattern for Spring Boot application on external Tomcat

I have a Spring Boot 2.7.2 web application. The Tomcat access log properties are defined as server.tomcat.accesslog.enabled=TRUE server.tomcat.accesslog.directory=log server.tomcat.accesslog.pattern=%h %l %u [%t] "%r" %s %b "%{Referer}i"…
0
votes
0 answers

Spring boot Embedded Tomcat does not establish multiple connections from the same src IP

I have spring boot application 2.5.8 that uses embedded Tomcat. This server listens to port 8081. When a client establishes TCP connection with my server, it works ok. But when client is trying simultaniously to setablish 2 connections from…
Igor_M
  • 308
  • 2
  • 12
0
votes
0 answers

struts2.5.26 only file field is getting null on action class and rest fields are getting set

Recently I moved from struts2.3.35 to struts2.5.26 and along with this I moved to spring boot app from spring which was using external tomcat and now it's using embedded one. So whenever I try to upload file on action class is returning null even…
0
votes
1 answer

Internal Magic of a multipart file upload Springboot

I have spend lots of time to understand the internal working of a multipart file upload in spring boot. Couldn't get a clear picture on it. Bit confused about the role of spring boot tmp directory. I have a tmp directory named as…
arj
  • 887
  • 1
  • 15
  • 37
0
votes
1 answer

How to enable tomcat servlet metrics in Spring Boot 2.1.3

I'm trying to monitor actuator metrics in Spring Boot 2.1.3 with embedded tomcat, but the metrics do not include the tomcat.servlet.* and tomcat.cache.* metrics. Currently available metrics are…
0
votes
1 answer

Are there security concerns with embedded Tomcat's Context.docBase?

When creating a org.apache.catalina.Context, you need to specify a "docBase" argument. docBase is supposed to be an existing directory. Context creation fails if it's not an existing, accessible directory. The java doc describes this parameter as…
Mark Wright
  • 705
  • 7
  • 20
0
votes
1 answer

Get Angular working with Waffle Spring boot + Spring Security and embedded tomcat

I am using this example to find out more about waffle: https://github.com/Waffle/waffle/tree/master/Source/JNA/waffle-demo/waffle-spring-boot-filter2 I am happy because everything works nice in this example. But adding a static HTML document to this…
0
votes
1 answer

Starting springboot application from IntelliJ community edition

How can we start a spring boot application in IntelliJ community edition. I don't see an embedded tomcat Included here. When I start the application from SpringBootApplication annotated class, getting the below messages only in the…
Robin
  • 109
  • 9
0
votes
0 answers

How to remove the default web application and remove unused connectors from Embeded Tomcat 9.0.41?

My project is using an Embedded Tomcat with the Java Springboot application, and the customer requires the Tomcat to comply with a hardening guideline for security purpose, which contains follows, for example: Remove the Default Web Applications in…
0
votes
2 answers

Getting exception ClientAbortException: java.io.IOException while download large zip file

I am trying to download large zip file from rest API but getting org.apache.catalina.connector.ClientAbortException: java.io.IOException: connection reset by peer. Because of connection closed - downloaded zip file is corrupted and I am not able…
govind
  • 1
  • 2
  • 4
0
votes
1 answer

How to persist session when server restart?

I'm trying to implement tomcat embedded web server. Everything working good. But session is cleared when I restart. I'm trying to implement correct session persistence configuration. But no success. This is my current code snippet. What is wrong…
hurelhuyag
  • 1,691
  • 1
  • 15
  • 20
0
votes
1 answer

Tomcat unexpected maximum response time for a request when load testing is done using jmeter

I have a spring boot application which has a post endpoint which takes the request and send it to another service and get the response back and save it to mongo database and returned the response back to user. The application is deployed on embedded…
meena
  • 67
  • 2
  • 9