• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

404 Error while trying to run my application in Tomcat 1.6

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everybody,

I am a new bee to Java Web applications. I am using Java 1.6 and Tomcate 1.6 to run one small example to start with .I am facing a problem while trying to run my application . This is the directory i am following "C:\Program Files\Tomcat 6.0\webapps\Testing"

Testing Folder contains WEB-INF folder and this WEB-INF contains web.xml and classes folder. I am able to see Tomcat home Page successfully ,and my application name is being listed with the lsit of default example applications. when i tried clicking on "Testing" . I am getting 404 Error. The thing is when i tried placing error-page tag in web.xml it is being redirected to respective page. Find below the piece of code in web.xml

<?xml version="1.0" encoding="ISO-8859-1" ?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>Testing</display-name>
<description>a basic application.</description>
<error-page>
<error-code>404</error-code>
<location>/indexing.html</location>
</error-page>
</web-app>

indexing.html is placed parallelly to WEB-INF.

Can any one help me What could be going wrong. i want see all the contents(jsps/htmls etc..) in "Testing" application.

Thanks in Advance ,
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where are your web pages (jsp,html) for your application located? It's a good idea to have an index.jsp as your welcome page. You can specify your welcome page in the web.xml for your application.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat 1.6? I think not. What version are you really using?
 
Hareendranath Babu Kotha
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bear Bibeault : Sorry its Tomcat 6.0

Charles Owen : "Where are your web pages (jsp,html) for your application located? It's a good idea to have an index.jsp as your welcome page. You can specify your welcome page in the web.xml for your application. "

i am getting 404 Status Error upon click on "Testing" application link in Tomcat Home Page. I tried wiht your idea. But it did not work !!!

Can anyone help me out please.

Thanks In Advance,
 
Hareendranath Babu Kotha
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Charles Owen : "Where are your web pages (jsp,html) for your application located? It's a good idea to have an index.jsp as your welcome page. You can specify your welcome page in the web.xml for your application. "

Thanks Now it is working with out getting 404 error with welcome page option. i did not kept relative path properly last time.

My question is cant i proceed with out mentioning the welcome page ?


banghead:

Thanks in advane :
 
reply
    Bookmark Topic Watch Topic
  • New Topic