2,061 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
32
views
How to configure Tomcat9 to get updated with newly uploaded image-files under Web Content?
My problem is that newly uploaded images to $CATALINA_BASE/WebContent/ are not displayed: Getting HTTP Status 404 - Not Found.
Need to refresh/restart Tomcat for publishing newly uploaded image-files
...
1
vote
0
answers
214
views
Migrating spring web mvc from 4.1.x to 6.2.0 and jdk 1.8 to 21
I'm migrating spring frm 4.x to 6.2.0 and jdk 1.8 to 21.
Spring Framework
spring-core - ${spring.version} (6.2.0)
spring-beans - ${spring.version}
spring-context - ${spring.version}
spring-tx - ${...
0
votes
1
answer
92
views
Tomcat ignore metadata-complete="true" with servlet 6.1
My application does not use any servlet annotations. That I want skip the scanning for annotations. But it look like that Tomcat 11.0 ignore the metadata-complete="true"attribute. Do I have ...
0
votes
0
answers
84
views
Add jar exclusion to OpenEJB excludeList from WAR or JAR at build time
I am deploying a WAR bundled with a library JAR-with-dependencies (aka fat jar).
I am excluding the jar from OpenEJB deployment because it has no beans that need to be deployed. It only contains ...
-1
votes
1
answer
261
views
Attribute must be declared and The content of element type must match
I have been trying to figure out how to start my weblogic server with my servlet project with maven for three days, but I find that it is giving me errors with the web.xml. I have a colleague who ...
0
votes
2
answers
129
views
How to handle web.xml with multiple exact matches?
I need to create a rest service with multiple exact matches but I don't know how to handle it within web.xml and resource classes. How to create a resource class that is mapped to an exact <url-...
0
votes
0
answers
57
views
Java Spring security configuration shared for several servlets
I wrote an application using Java, Spring, Maven and Tomcat. This application is composed with 3 servlets :
a – a first servlet is a mcv server
b – a second servlet is a spring webflow server
c – a ...
-1
votes
1
answer
77
views
In a web.xml, can the url-pattern of servlet-mapping containing more than one path component? (e.g. /path/to/*))
I'm finding the following strange behaviour:
GET http://myserver/myapp/functionality/2.0 works (calls my @Controller method)
2024年03月14日 13:59:49,761 [ajp-nio-172.7.102.11-5067-exec-2] INFO com....
2
votes
1
answer
281
views
Richfaces 3.x - Spring Boot - Migrate web.xml
I've been struggling with this for a few days to migrate an old Spring with standalone tomcat server to SpringBoot (1.5.22.RELEASE) with embedded tomcat server and not sure what exactly I've done ...
2
votes
0
answers
993
views
Problem with deploying a spring 6 + spring-security 6 + jsf 3.0 application to the payara 6 server
After updating the libraries (switching to jsf 3.0, spring 6 and spring-security 6), an error began to appear when deploying to the payara 6 server:
ContainerBase.addChild: start:
org.apache.catalina....
0
votes
0
answers
66
views
Is there a way to define required parameter in web.xml in java servlet
I am trying to create a rest api using a java servlet application. I am working with url pattern mapping using web.xml . When I validate parameters I need to do request.getParameter("name") ...
1
vote
0
answers
54
views
Deny access to specfic route in web.xml - Java
I have a Java app with a React app embbebed in the same maven project. I want to block specific routes from frontend (eg: examplehost.com/#/dashboard) with web.xml security constraints but I can't.
...
1
vote
1
answer
256
views
Spring Security - avoiding in-web-container role binding removes flexibility
If using Spring Security in-app authentication/authorization, I would like the flexibility I have when I use J2EE web.xml descriptor and in-web-container authentication/authorization.
I am using LDAP (...
0
votes
0
answers
624
views
HSTS header missing error even its show in application with preload (and http port also disable)
enter image description here
I have issue with application show HSTS header missing val but I already fix this
added HSTSFILER java and mapped with web.xml too but
when during scan it's still show ...
2
votes
1
answer
2k
views
Eclipse web.xml "Referenced file contains errors" [duplicate]
"<?xml version="1.0" encoding="UTF-8"?>"
In this I'm getting error in this line
Description Resource Path Location Type
Referenced file contains errors (...