33,020 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
68
views
Application migration to Websphere Liberty
I am migrating an application to Liberty. The application is servlet-based and uses JSP files. I have created Dockerfiles, a Helm chart, and Liberty configuration files such as server.xml. My ...
Advice
0
votes
1
replies
49
views
Share variable/object between multiple servlets
Suppose I want to create a simple counter app with three different servlets: one to read the value (GET), one to increment and one to decrement the value (both POST):
readvalue.java:
@WebServlet("...
Advice
0
votes
8
replies
107
views
Image not displaying when running Java Servlet project on server (but works when opened directly in browser)
<img src="images/logo.png">
I created a web project using HTML and Servlets (no JSP).
When I open the HTML file directly using "Open in Browser," the image displays correctly.
But when ...
0
votes
0
answers
60
views
Connecting Java backend(Servlets) to Vercel frontend(fetch API). Cors Error
So basically I have put up my backend on Render web Service (on tomcat) and my frontend(Nextjs) is on Vercel. I have put up a Filter for Cors Policy to intercept all policies and as well as handled ...
0
votes
1
answer
74
views
How to use slf4j-api > 2 in jersey servlet container
I have a Jersey servlet project, where I organize the depencies with maven. It runs in Tomcat.
Update of slf4j-api
Now I am trying to use <artifactId>slf4j-api</artifactId><version>2....
2
votes
0
answers
80
views
Zombie session after expiring cookies using Java Servlets
I have inherited some JAX-RS code with a logout function that appears to be properly "logging out" the user by redirecting to the login page, invalidating the session, and expiring the ...
1
vote
1
answer
99
views
How can I capture the full raw HTML content and also set header response value about that content with Servlet Filter
I want to be able to capture HTML content and then set a header about that content using servlet filter.
I Can capture the content but I always get an error that the response has already been ...
1
vote
1
answer
106
views
How to debug the Tomcat Catalina engine
When I tried doing research on this, everything I found was how to debug an application running under Tomcat. I'm trying to debug Tomcat itself, because something strange is happening that I can't ...
2
votes
1
answer
220
views
How can I upgrade code that uses Apache Commons FileUpload DiskFileItem for the Jakarta namespace?
I manage a Tomcat/JSP webapp. We are updating our source code to conform to the recent javax -> jakarta namespace change in the Servlet package.
The app uses the Apache Commons FileUpload package, ...
0
votes
0
answers
50
views
Spring Boot Global Exception Handler Returns 400, but Filter Still Returns 500 When Called by One Particular Caller
1. System Setup
Framework: Spring Boot REST API (servlet-based).
Global Exception Handler:
Uses @RestControllerAdvice to catch MyOperationException.
Returns a ResponseEntity with HTTP 400 and a ...
0
votes
1
answer
133
views
dwr-2024 package throws internal version error
I have an older Java/JSP application that I have to update to Tomcat 10 by May 31, 2025. This change in Tomcat versions covers Java's recent javax -> jakarta API namespace change in the packages ...
0
votes
1
answer
52
views
MongoDB Java Driver returns all documents instead of matching filter in Java Servlet
I'm building an Expense Tracker web app using Java Servlets and MongoDB. I want to filter expense documents based on user and category (e.g., user: "chir", category: "education").
...
0
votes
1
answer
121
views
IllegalArgumentException ("getWriter() has already been called for this response") during response writing in AbstractJackson2HttpMessageConverter
Summary
We're seeing an intermittent IllegalArgumentException during HTTP response serialization using Spring Boot 3.4.2 on Kubernetes. The exact same image sometimes works perfectly, and other times ...
0
votes
0
answers
105
views
Custom OncePerRequestFilter reads empty request body – why is the body already consumed?
I'm developing a Spring Boot application (with Spring Security) and need to add default headers (specifically, Content-Type and Content-Length) to requests targeting the endpoint /api/v1/mpos/set-...
0
votes
0
answers
71
views
Vaadin 23, Blank index.html page when routing any URL
I am trying to run a page using Vaadin 23, but I get index.html on any url
My project uses:
java version=17
spring-mvc version=5.3.20
apache tomcat version=8.5.85
But as a dependency manager on the ...