wood burning stoves 2.0
The moose likes Tomcat and the fly likes HTTP Status 404 - /testJSP1/BasicCounter.jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "HTTP Status 404 - /testJSP1/BasicCounter.jsp" Watch "HTTP Status 404 - /testJSP1/BasicCounter.jsp" New topic

HTTP Status 404 - /testJSP1/BasicCounter.jsp

Tom Nishan

Joined: Feb 04, 2011
Posts: 7
Hello I got this error when I run my JSP file:

HTTP Status 404 - /testJSP1/BasicCounter.jsp

type Status report

message /testJSP1/BasicCounter.jsp

description The requested resource (/testJSP1/BasicCounter.jsp) is not available.

I use Tomcat5.
JSP file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


The page count is:


And Java file is:
package foo;

public class Counter {

private static int count;
public static synchronized int getCount(){
return count;

web.xml file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"

<display-name>JSP Test</display-name>
JSP Test



Could you please help to solve this problem.

Thank you in advance.

Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Tom Nishan wrote:Hello I got this error when I run my JSP file

How do you run it?
I agree. Here's the link: http://aspose.com/file-tools
subject: HTTP Status 404 - /testJSP1/BasicCounter.jsp
It's not a secret anymore!