A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Products
»
Tomcat
Author
basic url question
sonia pandit
Ranch Hand
Joined: Apr 19, 2008
Posts: 137
posted
Oct 05, 2009 16:26:06
0
I am having trouble viewing the jsp. I have the eclipse project in ex0602. My web.xml has the following configuration:
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>ex0602</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> <welcome-file>milesToKilometers.jsp</welcome-file> </welcome-file-list> </web-app>
My jsp milesToKilometers.jsp is in the project directory, which in this case is ex0602.
I deployed the war file in
tomcat
webapps directory. When I point my browser to:
http://localhost:8080/milesToKilometers.jsp
I get a 404. What am I doing wrong?
I tried the following too:
http://localhost:8080/ex0602/milesToKilometers.jsp
I still get a 404.
Sonia
Sagar Rohankar
Ranch Hand
Joined: Feb 19, 2008
Posts: 2896
1
I like...
posted
Oct 05, 2009 22:20:46
0
Look at the server logs, they will point out why the web app you were trying to deploy wasn't succeed.
[LEARNING bLOG]
|
[Freelance Web Designer]
|
[and "Rohan" is part of my surname]
I agree. Here's the link:
http://aspose.com/file-tools
subject: basic url question
Similar Threads
Running a servlet on Tomcat using Eclipse
HTTP Status 404
<error-page> tag doesn't work
Cant Run Simple Jersey REST Webservice Example
welcome page not comming
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter