• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

http status 404 error is coming

 
Megha Singhal
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to run following jsp and servlets code

"registrationpage.jsp"

"NewServlet.java"


when i am trying to run this program from the url "http://localhost:8080/userregister/registrationpage.jsp"

following error is coming

HTTP Status 404 - /userregister/registrationpage.jsp

type Status report

message /userregister/registrationpage.jsp

description The requested resource is not available.

Apache Tomcat/7.0.40

My directory structure are

C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\userregister

under userregister
folders WEB-INF and userregister.jsp

under WEB-INF
classes and web.xml

under classes
NewServlet.java and NewServlet.class
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
userregister.jsp cannot be located within the WEB-INF directory. That directory and its contents are invisible to web clients as a basic feature of J2EE. Just in case you weren't aware (your info on that could be read 2 different ways).

Beyond that, make sure that whatever userid Tomcat is running under can read TOMCAT_HOME\webapps/userregister/userregister.jsp
 
Megha Singhal
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:userregister.jsp cannot be located within the WEB-INF directory. That directory and its contents are invisible to web clients as a basic feature of J2EE. Just in case you weren't aware (your info on that could be read 2 different ways).

Beyond that, make sure that whatever userid Tomcat is running under can read TOMCAT_HOME\webapps/userregister/userregister.jsp


i haven't placed userregister.jsp within WEB-INF it is within the main folder only i.e. in userregister folder.
 
Megha Singhal
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please help as i am unable to move further until this problem can't be solved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic