Questions tagged [welcome-file]
67 questions
41
votes
6 answers
How to configure welcome file list in web.xml
I have this in my web.xml document. I am trying to have a welcome list so I dont need to type the path for the home page anymore. But everytime a clicked the application in my tomcat page it displays The requested resource is not…

PeterJohn
- 589
- 3
- 8
- 15
19
votes
4 answers
how to specify welcome-file-list in WebApplicationInitializer.onStartup()
Currently I have a web application where we are using web.xml to configure the application. The web.xml has welcome-file-list.
...
home.html
…

user2032118
- 455
- 3
- 6
- 16
12
votes
3 answers
Set default home page via in JSF project
I am unable to set a default page that loads in the browser when I start a Java EE project using Tomcat 8.0 from Eclipse.
I am trying to learn JSF, so I followed this tutorial
Everything works fine, but I can only see the created pages when I right…

Bob
- 123
- 1
- 1
- 5
9
votes
8 answers
How to configure welcome file (HTML/JSP) in Jersey container
I have a Jersey RESTful web service project. I have configured the Jersey container in the web.xml and everything works fine.
In the same project, I have introduced one HTML page and included in the to handle some other non-REST…

Murugesh
- 1,009
- 1
- 12
- 34
8
votes
4 answers
How load servlet on index.jsp
Is there is any way to call a servlet on index.jsp? My welcome file is index.jsp. I need to populate dropdown list values by a servlet when index.jsp is opened.
I tried to set in web.xml, but it didn't have any effect. How do I…

DarkVision
- 1,373
- 3
- 20
- 33
6
votes
3 answers
HTTP Status 404 - The requested resource (/ProjectName/) is not available
I'm getting the following error when running my Eclipse project on Tomcat server:
HTTP Status 404 - The requested resource (/ProjectName/) is not available.
The URL in browser's address bar is http://localhost:8080/ProjectName/.
I really don't…

cProg
- 535
- 3
- 10
- 16
6
votes
3 answers
Set servlet as default home page in web.xml
I've a servlet registered in web.xml as below.
Manager
Manager
Manager
…

Shravan J Kumar
- 158
- 1
- 1
- 10
6
votes
6 answers
Welcome file not working with html file in spring
I have given my welcome file in web.xml
But when running the application, it is showing 404 error on http://172.16.2.16:8080/sampletest/
It is a spring application.
web.xml

skmaran.nr.iras
- 8,152
- 28
- 81
- 116
3
votes
1 answer
Redirecting root context path or binding it to a servlet or mapping it with a welcome-file
I am using Jetty-9 in embedded mode and need only one web application. Consequently I would like the root URL to go to the homepage of that application, i.e. something like
http://localhost:4444/
should end up in a servlet. I start out…

Harald
- 4,575
- 5
- 33
- 72
3
votes
1 answer
Welcome file ignores security constraint
my web.xml:
javax.faces.PROJECT_STAGE
Development
…

Ivan Ivanovich
- 227
- 1
- 3
- 7
2
votes
1 answer
welcome file list page not loading by default
I have deployed an application on Websphere Liberty.
When I visit my homepage: localhost:8080/myapp it shows a blank page.
However when I go to localhost:8080/myapp/jsp/status.jsp it displays the page I need.
In my web.xml I have set the welcome…

user1692342
- 5,007
- 11
- 69
- 128
2
votes
1 answer
How to set the welcome-file when developing spring mvc application with pure Java based configuration and no web.xml?
I am developing a web application using Spring MVC with pure Java based and no web.xml configuration. I did code the class below to load the beans and set the url pattern. How can I set the the welcome-file?
public class MyAppWebAppIntializer…

Omkar Puttagunta
- 4,036
- 3
- 22
- 35
2
votes
1 answer
Dynamic web project in eclipse does not open the welcome page
I am a beginner in eclipse and trying out a simple web project starting with a hello world page.
But when I run the project on tomcat sever, this url is fired and I get HTTP 404 error:-
http://localhost:8080/TestWeb/
My web.xml file contents are as…

Soham Banerjee
- 465
- 1
- 8
- 18
2
votes
0 answers
static html site, want to apply a server side filter
We had a jsp site, that utilized a servlet filter to serve up prerendered html when google bot crawled our site.
WE have now switched to use static html with the entry point defined as the welcome file in the web.xml of a java web application, and…

NimChimpsky
- 46,453
- 60
- 198
- 311
2
votes
2 answers
Spring 4 DispatcherServlet mapping with websockets
I am working to add Spring 4's new websocket abilities to an existing enterprise Spring web application.
Most of the examples out there for this are based on using Spring's annotation configuration and more importantly Spring Boot. My application…

Chris
- 51
- 1
- 8