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 put my class file in //install_dir/webapps/Root/classes directory. When I enter http://localhost/HelloWWW in the browser I get following error in the server dos window. 2002-07-04 14:51:09 - Ctx( ): 404 R( + /HelloWWW + null) null Some one suggested me to edit web.xml. But according to core servlets book it is not needed for this basic servlet. Urgent help needed. Kishore.
also the url to the servlet if you are not going to modify the web.xml file should be http://localhost/servlet/HelloWWW so that tomcat knows to look for a servlet
chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
hey chanoch excuse my simple question,but if a want to start a servlet with http://localhost:8080/servlet/servletname it won`t go. when i call the servlet with http://localhost:8080/examples/servlet/servletname yiiippeee no problems. if the first possibility is a general way to call a servlet,i think it had to work without configure the server.xml. and if i had to configure the server.xml, what must i configure? you see i`m just a beginner in servlets, so i`m grateful for help. bernd
Kishore Dandu
Ranch Hand
Joined: Jul 10, 2001
Posts: 1934
posted
0
It worked. Thanks a bunch for the suggestions. I am gonna crack this for couple of days. Kishore.
Kishore, how you access your servlet depends on where you put your clases. If you access it as http://localhost:8080/examples/servlet/servletname Then your classes must have been in TomcatDirectory\webapps\examples\WEB-INF\classes folder.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: problem with running servlets using tomcat3.2.4