55 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
111
views
How to configure encrypted SSL keystore password in webapp-runner.jar (embedded tomcat)
I have a Java web application developed using JSP and Servlet, which I run via webapp-runner.jar to launch the WAR file. The webapp-runner.jar provides an option to enable SSL using the --enable-ssl ...
-1
votes
1
answer
69
views
Setting Up an Ideal Spring MVC Project with JPA, MySQL, and Tomcat (Java-Based Configuration)
I'm looking to set up an ideal Spring MVC project that utilizes the following technologies:
Java: 17 or 21
Spring: Spring MVC
JPA: For data persistence
Database: MySQL
Server: Tomcat 10/11
...
1
vote
0
answers
76
views
Unable to configure the Datasource realm through embedded tomcat jar.(not an springboot app)
On tomcat 8.x ,We have been using JDBCRealm to set the connection parameter like jdbc url, user name ,password and with these details we initialize the context and start the server . After upgrading ...
0
votes
1
answer
261
views
How to configure Embedded Tomcat such that the classloader will find classes in CATALINA_HOME/lib
I have an issue with embedded Tomcat and classloaders.
I have a java servlet application that runs in an embedded Tomcat(9.0.70) instance. When the application is packaged into a single war file – the ...
-1
votes
1
answer
225
views
How do I customize embedded Tomcat’s error pages programmatically?
I am using programmatic configuration of an Embedded Tomcat server very similar to Heroku’s example here.
I supply my own Servlet class to Tomcat using this approach.
How can I customize the error ...
4
votes
0
answers
546
views
Session Management and Access Token Validation on every request in Spring Security + Spring Boot
I tried the following thing to achieve my application use case.
Usecase:
It is ok for Access Token to expire immediately after the identity has been asserted – the user continues to access the ...
2
votes
0
answers
1k
views
Spring Boot 3 embedded Tomcat Brotli compression instead of GZIP
We have a Spring Boot 3 (3.1.1) application with an Angular frontend. By setting the following properties, the static files (e.g. main.js) are delivered compressed with gzip:
server.compression....
1
vote
1
answer
1k
views
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#...
0
votes
1
answer
188
views
How to define rewrite rules for a jhipster application with angular frontend running productive as jar with embedded tomcat?
One needs to configure some rewrite rules for Angular SPAs to redirect requests to the index.html: https://angular.io/guide/deployment#server-configuration
We use the Jhipster generator (Spring Boot) ...
12
votes
2
answers
21k
views
how to set maxHttpHeaderSize in spring-boot 3.x
As stated in the Spring Boot 3 Migration Guide the server.max-http-header-size property has been deprecated. You can use the server.max-http-request-header-size property to set the max http request ...
0
votes
1
answer
264
views
Basic Weld example with Embedded Tomcat not working
I am trying to use Weld with Embedded Tomcat (10.1.5) using a basic example and settings from official weld docs.
This weld injection with same code works fine with Tomcat on Eclipse.
However, on ...
1
vote
0
answers
191
views
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:
...
0
votes
1
answer
457
views
Packaging Spring MVC project with embedded Tomcat server into a JAR file
I need to create a JAR file for the Spring MVC (not spring boot) project with an embedded tomcat server. I am using shadow gradle plugin to create the JAR.
Everything works fine when I run the main ...
1
vote
2
answers
2k
views
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 ...
0
votes
0
answers
135
views
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, ...