Questions tagged [servlet-4]
17 questions
9
votes
0 answers
Widlfy 22 WELD Warnings with Form Based Programmatically Login
I have a web application currently deployed on Wildfly 22, using JSF 2.3 and OpenJDK 11.
I'm currently migrating the login page from j_security_check to a programmatically login, following BalusC example on this post:
Performing user authentication…

areal
- 157
- 5
4
votes
2 answers
upgrade servlet 4.0.1 to servlet 5.0
I am upgrading servlet 4.0.1 to servlet 5.0. I was using below maven dependency for servlet 4.0.1
javax.servlet
javax.servlet-api
4.0.1
…

Ashish Goyanka
- 207
- 3
- 11
4
votes
3 answers
element web-app must be declared(Servlet 4.0)
I tried to use Servlet 4.0 namespace. The application worked well, but IDEA detects an error: "Element web-app" must be declared".

shui
- 41
- 1
- 1
- 4
2
votes
0 answers
WebFilter: How to specify urlPattern with cyrillic chars?
I need to have a WebFilter for an incoming request containing a russian text. the filter matches
https://application.com/deleted
but not
https://application.ru/удалено
i also tried to provide the encoded string as pattern, but it does not work. how…

Steve
- 384
- 1
- 7
- 17
1
vote
1 answer
Error in Web.xml of Eclipse Java Dynamic Web Project [when a new project was created]
ERROR MESSAGE :
schema_reference.4: Failed to read schema document 'platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/
xml.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the
document…

Keshav Ojha
- 11
- 4
1
vote
1 answer
Why 'ServletContext#setRequestCharacterEncoding' does not have an effect on 'HttpServletRequest#getReader'?
We can set the default character encoding to use for reading request bodies by ServletContext#setRequestCharacterEncoding (since Servlet 4.0).
I think that the character encoding for HttpServletRequest#getReader can be set using…

Tomoki Sato
- 578
- 4
- 11
1
vote
1 answer
How to make the simplest HelloWorld servlet with maven without web.xml
As a green hand, I created a HelloWorld servlet:
package com.rx.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import…

Rui
- 3,454
- 6
- 37
- 70
1
vote
1 answer
The project does not work with servlet 4.0 and jsf 2.3
I have a small Java EE project using CDI, JSF, BeanValidation, Servlet-api in the intellij IDEA. My server is a glassfish 5.0.0, i read that it implements servlet 4.0, cdi 2.0, jsf 2.3 and bean validation 2.0.
I have the following xml…

Danil Eltsov
- 113
- 1
- 5
1
vote
2 answers
Cannot change version of project facet Dynamic Web Module to 3.1
Why does maven insist on changing my Dynamic Web Module to 3.1 in my eclipse project? I want it to remain 4.0. Is there a way to tell maven I want Servlet spec 4.0? So far, the Maven documentation has not provided an answer to this for me.
Here are…

zerpsed
- 495
- 8
- 15
1
vote
1 answer
Spring Boot Servlet 4 support
Which version of Spring Boot will (or does) officially support Servlet 4 spec? Where can one see the new features that come with it documented?
Thank you.

Simeon Leyzerzon
- 18,658
- 9
- 54
- 82
0
votes
0 answers
Servlet 4 web.xml schema: listener not found
Servlet 4 web.xml schema: listener not found.

eastwater
- 4,624
- 9
- 49
- 118
0
votes
1 answer
null pointer access error with pageContext variable with JSP EL
I am getting a IDE error with JSP files containing the following EL snippet:
The error is:
Null pointer access: The variable pageContext can only be null at this location
IDE: Spring Tool Suite 4.11 (Eclipse 4.20)
Container: Tomcat 9
JDK: …

Fred
- 335
- 1
- 6
- 22
0
votes
1 answer
servlet 4.0 version log4j2 auto-initialization disable is not working with context-parm isLog4jAutoInitializationDisabled
My Current web-application is using Servlet 4.0 version and
I am trying disable auto-initialization for log4j2 and below is my web.xml
I have followed Official document

suman
- 1
- 2
0
votes
0 answers
log4j2 auto-initialization disable is not working with isLog4jAutoInitializationDisabled
emphasized textI'm working on migration of log4j version from 1.2.17 to Log4j2 , as part of migration I have chosen bridge option
as per the guideliness , while migrating log4j.xml to log4j2.xml for RollingFile we are having properties to…

suman
- 1
- 2
0
votes
1 answer
what are the maven dependencies for Java 8 and Servlet 4?
I need versions for all jars servlet-api. jsp-api, el-api, jstl., etc// where and How to find these information?

Perky
- 37
- 1
- 9