• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i am getting this error: the requested resource is not avilable.

 
amit puri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everyone
i am getting this error with servlets.
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello amit,

You need to provide us with more information. Like what is your project strucuture , what are you trying to run, how are you trying to run it .
 
amit puri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir
i have imported the .war file of an application on eclipse and trying to run it.
i am getting the error message : HTTP status 404.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
Can you show us your web.xml? (Please dont forget to UseCodeTags ) and also share with us the URL you are trying which results in the 404
 
amit puri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the application doesn't have web.xml , but it has servlet named LoginHandler.java.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you are using annotations?
Can you share the URL and corresponding annotation?
 
amit puri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

the url is :http://localhost:9090/ShoppingCart/LoginHandler?txtUsername=seed&txtPassword=admin
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not think I will be able to help further unless you provide the information I requested
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Maneesh said, you need to provide us with the proper information in order for us to help you out .

If you are using annotations, it is most likely you are hitting the URL incorrectly or maybe your servlet didnt get registered by the container , can you post your servlet class here ( the one with the name LoginHandler ) . Also I would like you to post your server logs here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic