Questions tagged [web.xml]

The web.xml is the web deployment descriptor file of Java Servlet based web applications. It allows you to define, declare and configure the Servlet API based implementations in your web application, such as servlets, filters and listeners.

A deployment descriptor (DD) refers to a configuration file for an artifact that is deployed to some container/engine.

In the Java Platform, Enterprise Edition, a deployment descriptor describes how a component, module or application (such as a web application or enterprise application) should be deployed. It directs a deployment tool to deploy a module or application with specific container options, security settings and describes specific configuration requirements. XML is used for the syntax of these deployment descriptor files.

For web applications, the deployment descriptor must be called web.xml and must reside in the WEB-INF directory in the web application root.

Further Reading:

2074 questions
0
votes
1 answer

Unable to process Jar entry [org/apache/juli/AsyncFileHandler$LogEntry.class] java.util.zip.ZipException: invalid LOC header (bad signature)

I'm testing a WS SOAP with apache CXF (java 7 )and I 'm having this error, I deleted this jar I thought maybe it's corrupt and maven build again but I am having same result, Can anybody explain me this "ZIP" Exception this is my pom.xml …
Khalil M
  • 1,788
  • 2
  • 22
  • 36
0
votes
1 answer

Webservlet suddenly stopped working

I have got a Webservlet (Dynamic Web Module 3.1), it looks like this: package de.timetoact.cce; import java.io.IOException; import java.net.MalformedURLException; import java.net.URISyntaxException; import…
SiriSch
  • 180
  • 1
  • 3
  • 16
0
votes
2 answers

URL patterns in web.xml too permissive?

I have a servlet with web.xml as follows:
Drux
  • 11,992
  • 13
  • 66
  • 116
0
votes
0 answers

jsp error 404 when filters are added

my application is working without filters. However, when I add filters in web.xml for remote desktop login I am getting error 404 " requested resource is not available" when i run my jsp. Can u please tell me the solution? My web.xml is as…
Radhika Kulkarni
  • 298
  • 1
  • 4
  • 19
0
votes
0 answers

how can Weblogic 403-Forbidden error can be resolved

how can i configure it as i am new to servlets kindly help me or let me know if there's a another way. package com.test; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import…
satwick
  • 135
  • 9
0
votes
1 answer

el is not being evaluated during precompilation of jsp with jspc of tomcat 7

its a spring boot project with tomcat 7 and java 6. i am trying to pre-compile jsps using jasper.Jspc but in generated java ELs are not being evaluated. out.write(" script src=\"${pageContext.request.contextPath}/resources/js/AdvanceDeviceInfo.js\">…
user2862544
  • 415
  • 3
  • 13
0
votes
2 answers

REST APIs return 404 NOT FOUND when path configured in web.xml

I configured a REST application using Jersey in eclipse. I am unable to send REST requests when the path in web.xml is configured as /*, but when I change it to /rest/*, I get a 404 NOT FOUND error. There are no exceptions at the server. The…
0
votes
2 answers

Servlet page shows a 404 error, does not come up

I'm trying to send mail using form via the JavaMail API. I have created a simple jsp page with my servlet class as the form action, a java class as the Model. However each time I run the Jsp page to test, it shows a 404 page, saying requested…
Vanessa
  • 43
  • 3
  • 12
0
votes
1 answer

Struts 1 mix url pattern *.do with regular urls web.xml

I have the following situation in a struts 1 application. The old functionality of the application works with struts 1 and has the following servlet mapping (i think it is the standard way of doing things).
0
votes
0 answers

Error-page URL in web.xml keep being called

I'm trying to set up common "Error page" in my spring mvc app. It is working fine when happened 404 error with the following setup but the "/app/404.do" is keep being called when the other normal URL link is clicked.. I used tiles framework but the…
JoonHo Kim
  • 31
  • 4
0
votes
0 answers

how to configure SpringJDBC with jee:jndi-lookup

I have a question in Spring JDBC settings. that more needed me ? missing some other configuration
0
votes
1 answer

Spring MVC - HTTP Status 404 error. Anything missing in web.xml

My spring application is working on local machine properly. But, on deploying it on a VM, it is giving HTTP Status 404 error. On VM: http://serverIP:8080/Project/index.jsp It is giving HTTP 404 error. web.xml
Jitendra
  • 1
  • 1
0
votes
0 answers

Servlet JSP mapping in web.xml with Tomcat 8

I am trying to make a very simple example to map all requests to a particular JSP. My web.xml is as follows:
rocotocloc
  • 418
  • 6
  • 19
0
votes
0 answers

HttpServletResponseWrapper not working for setting headers

I'm trying to use a filter to allow cross-origin access to my server methods, so what I'm doing is adding a header in a filter. I read somewhere that I should use HttpServletResponseWrapper so I can add headers before they're sent to the client, but…
Daniel Calderon Mori
  • 5,466
  • 6
  • 26
  • 36
0
votes
2 answers

Java web.xml location for embedded jetty

I'm trying to understand the way we should configure the web application. Now i have a simple gradle project with embedded jetty Dependencies: dependencies { compile('org.eclipse.jetty:jetty-servlet:9.3.10.v20160621') …
Silk0vsky
  • 941
  • 1
  • 18
  • 34
1 2 3
99
100