Why is JSP page not found by Tomcat (404 Error)?

Hi,

I'm new to JSP. I created a very simple jsp file, the source code is:

<html>

<head></head>

<body>

<h3>Hello ${param.userName}</h3>

</body>

</html>

I'm using Tomcat 5.0.25, and I created a new folder called "test" under "webapps", then I put the jsp file in the "test" folder. When I tried to open the URL of the jsp file (http://localhost:8080/test/Hello.jsp?userName=xxx), I got 404 Error saying "The requested resource (/test/Hello.jsp) is not available.

Then I put this jsp file into another folder that already exists under "webapps", then it worked. I also restarted Tomcat, but as long as I put the jsp file in the newly created "test" folder, I always got the 404 Error. Anyone can help me? Thanks!

[820 byte] By [csupercowboya] at [2007-11-26 15:41:11]
# 1

dear friend,

you have to start the Tomcat Server through your editor (may be eclipse)

Or run the file tomcat5.exe located in bin directory, under Tomcat5.5 directory

If Eclipse is used, run it through menu (Tomcat->start tomcat)

If problem persists, please feel free to contact

kvaradk, India

kvaradka at 2007-7-8 21:59:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I think you have started up the Tomcat server, but your "test" context didn't load up (for a several reasons)!

I had highlighted the possible reasons in following article, check at each checkpoints ... see what's missing:

http://avatar21.superihost.com/index.php?entry=entry070120-125004

By Avatar Ng

Avatar_Nga at 2007-7-8 21:59:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...