Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Browsing all 675 articles
Browse latest View live
↧

No Spring WebApplicationInitializer types detected on classpath

My Eclipse project is suddenly no longer deploying properly. I can't trace it to any particular change I've made to the environment.I have tested with multiple source-controlled projects and they are...

View Article


Issue in spring boot 2.7.6 returning NoHandlerException for GET '/v3/test/'

I am using spring boot 2.7.6, Gradle 8.6 and here is the application.properties filespring.mvc.servlet.path = /v3spring.mvc.throw-exception-if-no-handler-found =...

View Article


Implementation of SSE(Server Sent Events) using...

I am new to SSE - server sent events implementation.I am trying to implement SSE using java jakarta.HttpServletRequest.import java.io.IOException;import jakarta.servlet.annotation.WebServlet;import...

View Article

I am getting directed to the wrong url by Tomcat while running new Dynamic...

I am starting with learning JSP and servlets and while setup i followed all the steps correctly and added the tomcat server then created a servlet in a new package for a dynamic web project. But...

View Article

Package jakarta.servlet is not visible [closed]

I see this message[ERROR] /C:/.../src/main/java/com/.../CompanyCodeAuthorisedFilter.java:[17,23] package jakarta.servlet.http is not visible [ERROR] (package jakarta.servlet.http is declared in the...

View Article


I am getting directed to the wrong url while running new Dynamic Web Project...

I am starting with learning JSP and servlets and while setup i followed all the steps correctly and added the tomcat server then created a servlet in a new package for a dynamic web project. But...

View Article

implementing Server Sent Events using java Servlet for sending notification...

I am trying to implement real-time notification system using Servlet and ServerSentEventsThis is the following code I have implemented@WebServlet("/notification")public class NotificationSSE extends...

View Article

How to enable the compact path filter in Jetty

I'm trying to fix AMBIGUOUS_EMPTY_SEGMENT errors in a Spring Boot application that builds on embedded Jetty. I think I want to use...

View Article


implementing SSE (Server Sent Events) in java Servlet for sending...

I am trying to implement real-time notification system using Servlet and ServerSentEventsThis is the following code I have implemented@WebServlet("/notification")public class NotificationSSE extends...

View Article


I am trying to implement notification system using SSE in tomcat server, how...

I am new to Java Servlet concepts and Web Development with Java.I am trying to implement a notification System using ServerSentEvents.I know that whenever an announcement was made, It will be stored in...

View Article

Image may be NSFW.
Clik here to view.

Cant access web ressources on my docker servlet application (no spring)...

In my java 11, tomcat and maven based, servlet application, I can not access web ressources on the client side. For example, css files and pictures could not be loaded, as well as xhtml files.On the...

View Article

Session is lost and created as new in every servlet request

I have this big issue. My current session is gone every time I made a new request to Server.I have checked in a lot of places. I can't find what's the problem. I also have includedsession-config in...

View Article

problemas with tomcat 9.0 server

when i change my code in pom.xml4.0.0org.springframework.bootspring-boot-starter-parent2.7.18comSistemaLibreriaSpring20.0.1-SNAPSHOTwarSistemaLibreriaSpring2Demo project for Spring...

View Article


Asynchronous event-driven servlet in Tomcat 9 for long polling

I am looking for a best practice to implement the long polling in Tomcat 9, to enable sending messages from the server to the client by using the HTTPS protocol.Using a synchronous I/O doesn't seem to...

View Article

How to maintain a stable connection while using server sent events and how to...

I am new to Server-Sent-Events, already using Sockets for the implementation, In which we store the Socket Session with particular user information in a static class which will be used to send messages...

View Article


How to detect if HttpServletRequest has a body without reading headers?

(How) can I detect if a jakarta.servlet.http.HttpServletRequest has a body without relying on any headers?Is there another way besides reading one byte from the body?FYI: My question is related to this...

View Article

Problem with primefaces13 p:fileDownload doesn't work

I'm using Primefaces 13, jdk8, Mojarra 2.2.10 and trying to download a file.Here my test.xhtml page<?xml version='1.0' encoding='UTF-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...

View Article


This page contains the following errors: error on line 2 at column 105: Extra...

@Component(service = Servlet.class, property = { Constants.SERVICE_DESCRIPTION +"=Page and Asset Site Map Servlet", ServletResolverConstants.SLING_SERVLET_METHODS +"=" + HttpConstants.METHOD_GET,...

View Article

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...

View Article

How to handle HTTP 510, 598 and 599 error codes in web.xml

We use weblogic to deploy our application, the requirement is to handle all the server errors, in web.xml and have 500 through 510, 598 and 599. The specification of error codes - 510, 598 and 599...

View Article
Browsing all 675 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>