| Author |
Head fisrt servlets and jsp:- unable to run the first example
|
Jasim Aboobacker
Greenhorn
Joined: Feb 01, 2011
Posts: 3
|
|
Hi all,
I am newbie to servlets and jsp. when i was trying to execute simple helloworld servlet, it is giving an error "description The requested resource (/first/HelloWorld/) is not available."
OS- > Win7
Tomcat -> 5.5
HelloWorld.java
web.xml
my directory structure is
webapps->first->WEB-INF->web.xml
webapps->first->WEB-INF->classes->HelloWorld.class
I am accesing that servlet via http://localhost:8080/first/HelloWorld
due to this error im stuck with the first example. how can i resolve this?
NB:- All those servlets and jsp examples coming with tomcat is working fine
Jasim Aboobacker
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
|
Check your Tomcat logs to see if there are any errors happening at startup. (check the "logs" directory)
|
[My Blog]
All roads lead to JavaRanch
|
 |
Jasim Aboobacker
Greenhorn
Joined: Feb 01, 2011
Posts: 3
|
|
Christophe
In log i can see some java.io.UnsupportedEncodingException
|
 |
Jasim Aboobacker
Greenhorn
Joined: Feb 01, 2011
Posts: 3
|
|
Hey,
Now its working. i replaced encoding="ISO-8851-1" with encoding="ISO-8859-1" in web.xml
Thank you
|
 |
Ashutosh M Kulkarni
Ranch Hand
Joined: Jun 07, 2010
Posts: 41
|
|
Whoa! I didn't know encoding could also affect successful running of an application.
As the book says, we needn't memorize this all and I frankly thought it may create a glitch or two but not a total failure of the app.
Thanks for bringing this up, I can make sure to check all these things in future. :-)
|
SCJP 6, next stop - OCPJWCD!
|
 |
 |
|
|
subject: Head fisrt servlets and jsp:- unable to run the first example
|
|
|