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

How to add myFaces Tomahawk to my JSF 2.0 (.jsp) running in glassfish 3?

Hi I been having some problems with my web.xml file I've been getting: Exception while loading the app org.glassfish.deployment.common.DeploymentException: LLog; at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:169) at…
Ignacio Garat
  • 1,536
  • 6
  • 24
  • 48
0
votes
1 answer

web.xml changes to enable development mode in Groovlet

I am using the Cruise Control jetty container to deploy a Groovlet application. It appears that if I change the groovy files in the webapp directory that Jetty does not recompile the source and the changes aren't reflected in the webapp. How can I…
dromodel
  • 9,581
  • 12
  • 47
  • 65
0
votes
0 answers

error-page vs idle Monitor

First i would like to know if the session timeout in my web.xml is related to user inactivity or this timeout start when the user is logged? I would also like to know what is the best practice when the session is timed out: -using error-page for…
0
votes
1 answer

Root "/" mades server load index.html before pass through the servlet

I have a Servlet that is mapped to the root directory "/": Main com.motorola.triage.MainServlet Main
Rodrigo Borba
  • 1,334
  • 1
  • 14
  • 21
0
votes
0 answers

print the configuration items getting loaded on server startup

Can anyone let me now how to enable logging config files getting loaded during startup for tomcat server. I'd like to print/echo (system.out) the application context beans getting loaded or check the order in which container loads the application…
yeppe
  • 679
  • 1
  • 11
  • 43
0
votes
0 answers

How do I get my Maven Project in Eclipse to Run on my Tomcat Server?

I am able to have it run on the actual server, but when I visit http://localhost:8080/ I do not get my default welcome page. The only way it works is if I use Maven's embedded tomcat plugin. I've tried a few things from other answers on…
Franz
  • 31
  • 5
0
votes
0 answers

web.xml localhost servlet mapping

I am having a UI5 project in eclipse and trying to do servlet mapping in web.xml and want to update localhost to point to a odata url for db entries, right now UI loads fine but it gives error for data coming from odata url . this is what I am…
Justin
  • 35
  • 1
  • 11
0
votes
3 answers

What does it mean using *.do in my web.xml code?

web.xml: LoginFormStruts1 myActionController org.apache.struts.action.ActionServlet
0
votes
1 answer

auth for local dev server doesn't work

I am setting up a java/GAE/angular app engine project and am attempting to require login at certain paths. I am allowing google to handle the auth and I'm seeing a nullpointer that appears to originate from the provided…
0
votes
1 answer

Java Web Servlet is not working after deployed to a folder

As i mentioned in the title i deployed my java web project to tomcat path /Test2 (before it was deployed to tomcat ROOT and all was working perfectly) and all my webServlets stop working.Here's my servlet settings; @WebServlet( name =…
namila007
  • 1,044
  • 9
  • 26
0
votes
1 answer

Intellij not support create a web.xml checkbox

I can not choose to 'create a web.xml' while creating a web project with Java.
okan16
  • 1
  • 1
0
votes
2 answers

tomcat - how to change url after redirecting to an error page

I'm using the following config in web.xml to redirect to error pages 401 / when 401 error occurs it is redirecting to '/' but the URI is preserved. let's say…
0
votes
0 answers

Apache Shiro url-pattern matching and redirect

I am having trouble getting Shiro to redirect to both the login page and the desired url once logged in. This may be due to the fact that I do not have Shiro in my main web xml on the root context, but I would like to keep things separate if…
RadamHussein
  • 891
  • 7
  • 9
0
votes
0 answers

Servlet filters not invoked for _am/api/discovery/* URLs?

I'm updating a GAE application to the Java8 Cloud SDK environment; I'm also updating it to use Cloud Endpoints version 2. My app registers some servlet filters in its web.xml file, one for Objectify and one to do some initialisations such as…
user180940
  • 324
  • 1
  • 18
0
votes
1 answer

Tuckey's UrlRewriteFilter not able to filter root of site (for crawlers)?

Java and AngularJS on Google App Engine. As to why, although I've been reassured that most crawlers can parse javascript sites, it's not fully parsing my angularjs site and therefore not indexing it properly. I've created a static version of the…