Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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 ...
HKS11's user avatar
  • 9
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 ...
Izek H's user avatar
  • 61
-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 ...
vivek singh's user avatar
-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="...
Raj Bura gohain's user avatar
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()); ...
Balaji R's user avatar
-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 ...
mmicr0_nzs's user avatar
-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. ...
Federico Caimi's user avatar
-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 ...
Jaideep Sagar's user avatar
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 [...
robby's user avatar
  • 1
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 ...
RedBlue's user avatar
  • 123
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 ...
Ghost's user avatar
  • 11
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 ...
Akshaj Srivastava's user avatar
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 ...
Thiru's user avatar
  • 19
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 ...
benchpresser's user avatar
  • 2,188
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 ...
Metanova's user avatar

15 30 50 per page
1
2 3 4 5
1544