This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I have java J2SDK 1.4.2 and J2RE1.5.1 installed on my sytem. I also have TomCat Server running on my system. i have downloaded a servlet example from the net and compiled it. it got compiled but is not running .i have placed the .class file as well as the .java file in the below mentioned path...
What package is your servlet in ? Is examples.servlet.SomeServlet.class the fully qualified name of your Servlet or does it belong to some other pkg ?
You shouldnt be accessing servlets using their class names. You have to register them in your web.xml, define a name for your servlet and access it using that name.
A sample web.xml entry is shown below.
You would now be accessing LoginServlet using http://<machine> ort/context/login
where context is the web-context (usually the war-file name or the name of the root directory of your exploded directory of your web-application deployed on the server)