Skip to main content

Questions tagged [servlets]

Servlet is a Java application programming interface (API) running on the server machine which can intercept the requests made by the client and can generate/send a response accordingly.

1 vote
1 answer
35 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
  • 11
-1 votes
1 answer
25 views

SpringBoot API calls causing a 404, i have no access to my backend on tomcat9 server

I have built a webapp using springboot with a react frontend and when I run the app locally I can use my REST API calls without any issue. Once I package everything up into a war file and deploy it to ...
Miguel Contreras's user avatar
-1 votes
0 answers
8 views

Cache does not clear when invalidating the session while object data do

I have three servlets that handle login, display some data and log out each. In the login servlet in the doPost method I initialize my session with this code HttpSession session = request.getSession()...
Toxicone 7's user avatar
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
28 views

Java servlet path [closed]

I make a dynamic web project now. Because it was an exercise, I didn’t use the Maven project. I use Tomcat 10.1.25. webapp ├── html │ ├── index.html │ └── view.jsp ├── META-INF └── WEB-INF I ...
user23381600's user avatar
0 votes
0 answers
25 views

Sevlets with @WebServlet annotation in JAR files not accessible (wildfly 26.1.3.Final)

I have a project where I need to include some servlets. For some reasons the customer wants a JAR file not a WAR file. After a few days research I was unable to find a solution to make wildfly's ...
Riva86's user avatar
  • 11
0 votes
0 answers
9 views

Dynamic Webproject HTTP Status 404- Not Found [duplicate]

enter image description hereThis is my code package com.Servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; ...
Balakumar's user avatar
-1 votes
0 answers
29 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
0 votes
0 answers
17 views

How to put Servlet classes in a separate JAR for WildFly [duplicate]

I have a large project, let's say "a.jar" which will be deployed to the WildFly (26.1.3). There are also servlets in the project, we want to have the web part separated from the main project....
Riva86's user avatar
  • 11
-2 votes
0 answers
21 views

Docker(Not able to Connect mysql databse to docker file) [closed]

I am working on a project where I need to connect my root.war web application to a MySQL database using Docker. I have already created the Docker images but am unsure how to connect the MySQL database ...
UJJAWAL KUMARCSE2021 Vel Tech 's user avatar
0 votes
0 answers
34 views

Why can't I use more Servlets in JAVA EE? [duplicate]

I have the following situation: I am working on a project where I initially used 3 servlets and everything worked great, the problem was when I tried to create a fourth servert. For some reason that I ...
FabianRosero18's user avatar
0 votes
1 answer
26 views

java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet on tomcat 10.1 maven project [duplicate]

I am creating maven web project with Spring configuration I added the jakarta.servlet-api Dependency in pox.xml as below <dependency> <groupId>jakarta.servlet</groupId> <...
Ashhh's user avatar
  • 1
-2 votes
0 answers
29 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
37 views

IBM WebSphere deployment error - Servlet name for the servlet mapping /TestInjection could not be found

We are migrating from Java 8 to Zulu OpenJDK 17. Our application uses IBM WebSphere Application Server 9.0.0.6 and JSF 2.2. We can install the EAR file successfully on the IBM WebSphere server, but ...
Revansh2006'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

15 30 50 per page
1
2 3 4 5
2215