Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The requested resource () is not available

 
yen hoang
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am writing an servlet app, in webapps folder of Tomcat, build an environment as attachment picture.
But when I started tomcat and type

in the browser, the 404 error occurs "The requested resource () is not available".
Here are my index.html and web.xml




web.xml was put in WEB-INF folder.
I did as guide
please help me!

Much appreciated!
untitled.JPG
[Thumbnail for untitled.JPG]
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you write this


or

this?? If its the first case, change it to a forward slash i.e. the one that I showed. Also I'm not sure if this will solve the problem that you are having. Are you sure your applications Context Path is "Test"??
 
yen hoang
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I typed back slash, but when I did as you told, nothing changed, 404 error did occur
Test is my application name as you can see in the picture
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Were there any deployment errors in your app. Which servlet container are you using?? If its tomcat, then can you go at http://localhost:8080/manager/html/ and see if the Test application is actually running or not...
 
shaiksha vali
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your given the url pattern with (\) don't give with that and try with (/) forward slash.
Even thought it was not working the give url pattern with the root directory ex: /test/print.do
.

404 exception means ClassNotFoundException it is not finding the action path corretlly. Check once
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

you don't need to explain your other configuration..... you get the error at the first stage... When you start tomcat and simply call your index page you didn't get your index page.... So, I think you made mistake with create your web application.... other configuration comes after make another resource page request...
 
yen hoang
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks all, I've solved my problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic