All Questions
23,155
questions
1
vote
1
answer
43
views
Error: Missing Type HttpServletRequest in Maven Project for File Upload
Question:
I am working on a Maven project for a file upload servlet and encountered an issue. When I try to parse the request using ServletFileUpload, I get the following error:
The method ...
0
votes
0
answers
23
views
Why does a java servlet retain bad form entries? [duplicate]
We have a special search page in a java web app running on a Tomcat 9 server. The page uses a form with a few <input> tags of type "text". During some testing I was doing, I found a ...
-1
votes
0
answers
31
views
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver in Eclipse dynamic web project [duplicate]
creating simple dynamic web project. I am facing the exception class not found in my servlet, even after I added my jar file.
the project works fine earlier, but after deleting my server and adding it ...
-3
votes
0
answers
32
views
Jquery Datatable not working in the JSP file
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="...
0
votes
0
answers
24
views
Adding Thread.sleep in spring boot web app adding delays to subsequent requests [duplicate]
@RestController
public class HomeController {
@GetMapping("/")
public String greet() throws InterruptedException {
System.out.println(Thread.currentThread().getName());
...
-1
votes
0
answers
40
views
Error with login session/cache using Servlets and JSP
I don't know how to describe the problem very well technically, but I'm making an application using Servlets and JSP and I'm having a specific user authentication problem.
When I log in as a user with ...
-1
votes
0
answers
38
views
Keycloak CustomUserStorageProvider always returns "invalid_user_credentials" error
I am currently working on integrating Keycloak with a custom user storage provider. I have implemented a CustomUserStorageProvider to authenticate users against my own database via HTTP requests. ...
-1
votes
1
answer
39
views
Maven build successful but compiled class files contain unresolved type errors
I have a project that compiles to WAR file, when I am using 'clean install' to build my project it is giving "Build Success", but when I decompile some files it is giving following lines in ...
0
votes
0
answers
46
views
Servlet error during deploy webapp on Wildfly 26.1.2
I'm trying to deploy my webapplication on Wildfly but i'm facing an error during startup. It seems something related to JAXRS but I cannot understand what i'm doing wrong...
00:11:20,162 ERROR [...
0
votes
1
answer
43
views
Spring HttpServletRequest is empty when already used
At Class A after getting the request body, The Class B is getting empty request body.
As per checking if going to comment the code in Class A to retrieve the request body, Class B will able to get the ...
0
votes
1
answer
44
views
JSP page unable to get attribute from a Servlet with and without .getSession
I have a web app that must get the city name and, by an API request, it should give the foirecast for that city. But in the JSP file I am not able to get a variable with getAttribute from the ...
0
votes
0
answers
18
views
Unable to load tag handler class [org.apache.taglibs.standard.tag.rt.sql.QueryTag] for tag [sql:query] [duplicate]
I am new to JSP pages. I am trying to use core Tags and sql tags in JSP using JSTL. But somehow I am getting the following error.Error 500 on Compilation
My JSP file is as follows:
<%@ page ...
0
votes
0
answers
40
views
How to Access Direct Buffer Used by Tomcat for Sockets in a Servlet's doPost Method?
I'm currently working with Apache Tomcat web server, and I came across a feature mentioned on the official Tomcat website regarding socket.directBuffer support. This implies that Tomcat can use direct ...
1
vote
1
answer
56
views
Java asynchronous servlets
We are using asynchronous servlets with the following mechanism (Asynchronous servlet not acting asynchronously)
@WebServlet(urlPatterns = { "/test" }, asyncSupported = true)
public class ...
0
votes
0
answers
17
views
Servlet gives 404 error when tried to access [duplicate]
I am developing a web app with JSP and Java. I am doing my first Servlet and I have a problem that I don't know how to resolve. I am using Tomcat 8 and I restarted the server.
I have this basic ...