Hey can anybody help me with Status 404 error thing..Here's my prob:-
there is this servlet app that i'm trying to deploy on tomcat server.I have gotten rid of all the warnings coz they end up turning into runtime errors often.Now the thing is evrytime i deploy a particular servlet file on the webserver i receive an error which says-"HTTP Status 404 /MajorProject/servlet/search_query1"
and below that is an error message that reads-"The requested resource (/MajorProject/servlet/search_query1) is not available/"
By the way-I'm using eclipse IDE(helios). Although i see all the class files(compiled files) in the workspace of the eclipse under the build directory(in the file system), i don't see any class files under the build folder when open te eclipse app..Is this normal or something wrong?
One more thing- I didn't even touch the web.xml file ..Do i need to set it up or something? Do i need to map every servlet in my directory in the xml?
Please assist.. Anybody..Thanks in case there's a solution from anyone
Could you please tell me how should i do that..Because i have around 10 servlet files..So do i need to map every one of them in the DD?Could i somehow show you the page..like with the help of a screen shot or some attachment?
Ok ..i would try that the next day.. I need to sleep now..Its 12 mid night hereThanks for giving a crucial advice..I will definitely look forward to your replies in case i get some more problems in my servlet work..And sorry for abbreviating things..
I tried doing the mapping .I started out with just two servlets..Can anyone tell me if the above way is the correct procedure to map..
In above case search_query1.java is the actual file name with class file as search_query1.class.I have changed the name of the servlet(<servlet-name> tag) to "QuerySearch1".With the second servlet-formserve12.java the class file is formserve12.class and i have changed the name of the servlet to "FormServer12" .
Also please tell if the url mapping has been done the right way or not? If its okay,then i'd do the same for all other servlets.
I have a feeling that there would only be one pair of servlet tag (<servlet>---</servlet>) in which ALL the servlets would have there own <servlet-name>--</servlet-name> and <servlet-class>---</servlet-class>..Like that there would be only one <servlet-mapping>--</servlet-mapping> within which ALL the servlets could be mapped..Is this true? Or the above scenario is true?
I did make all the changes (including following the camel-case naming convention) and also i mapped all of my servlets in the DD..
Now my servlet pages are running but one of the servlet page is making an HTTP Status 500 error while it is run on the web server.Here is the error-
"description The server encountered an internal error () that prevented it from fulfilling this request.
javax.servlet.ServletException: Wrapper cannot find servlet class FormServer12 or a class it depends on
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs."
Sorry for posting the whole error page but its never happened before..But everytime i ran the particular servlet,i would encounter the above http error.Please assist..
Also..should i take this current message to different post subject because this time the error is not HTTP Status 404 thats wat this message has been posted under?I mean do i need to have a new subject like "Status 500 error" where i need to post this latest post?