Please post your code.
Where are you getting the RequestDispatcher reference from ? Are you getting it from the request object or from the ServletContext ? Are you using a relative or an absolute path ?
Please take the above assumptions into consideration and please post your source code.
Best of luck ...
Here iam mainly suffering from HTTP status 404 in tomcat server....
Originally posted by bujji goud:
this is my web.xml
And you'd said your JSP is in C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Accounting Application\jspfile\.
So that means the container is trying to forward to http://localhost/AccountingApplication/binttotext/texttotable.jsp whereas your JSP is at http://localhost/AccountingApplication/jspfile/texttotable.jsp
So modify your path accordingly. Make it "/jspfile/texttotable.jsp" instead.
Also, while we're at it, why is your application name "Accounting Application"? I'd suggest not using a space in your context name.
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\AccountingApplication\texttotable.jsp
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\AccountingApplication\WEB-INF\classes\bintotext1.class
now tell me what i should do now iam not gettong with the above words...
Comment out the forward in the servlet and try to access it by typing in the path. Next, try to access the JSP.
Then, check your logs ( $CATALINA_HOME/logs ) for any clue to exceptions being thrown. And instead of simply printing the exception message, use printStackTrace() to get more information.
Also, I'd suggest you put all your classes in a package, it's not recommended to put them in the default package. This includes your servlets.