Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP Status 404 - / description - The requested resource is not available.  RSS feed

 
nazirah nazri
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I did some exercise from WTP Tutorials - Building a School Schedule Web Application. I tried to run this jsp in Eclipse, and got this error. I did try all the tips in all site to overcome this problem but am still stuck. Please help me out.  I don't know and I don't understand that well because I'm the newbie. I am using Tomcat v8.0 server. Please help to solve this problem ;(

there is  ScheduleBean.java class as follows:



ScheduleTuition.java class as follows:


ScheduleServlet.java class as follows:


there is web.xml as follows:



Thanks in advance!
 
Dana Ucaed
Ranch Hand
Posts: 405
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many posts regarding your problem.

I have the same issue.

You can search on this site.

 
Dana Ucaed
Ranch Hand
Posts: 405
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your URL is the problem.

Can you post what URL use?


 
Dana Ucaed
Ranch Hand
Posts: 405
6
Netbeans IDE Oracle Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recomand this link.

https://javabrains.io/courses/servlets_intro/lessons/First-Servlet-Part-1/
 
Dana Ucaed
Ranch Hand
Posts: 405
6
Netbeans IDE Oracle Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try to run your servlet from web server?

Firstly you must verify that your servlet is deployed correctly in your web server.

 
Swastik Dey
Rancher
Posts: 1812
15
Android Eclipse IDE Java Java ME
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we need web.xml for servlet 3?
 
Dana Ucaed
Ranch Hand
Posts: 405
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your web server runs at http://localhost:8080/ you can add your path to your servlet.


For example you can have the annotation in your class that extends HttpServlet.
@WebServlet(urlPatterns ={ "/AndaServlet"})

http://localhost:8080/AndaServlet it works for me.

 
nazirah nazri
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi thanks for the reply .. i did solve the problem by deleting the content of web.xml and link with the servlet . thanks again do appreciate that
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!