aspose file tools*
The moose likes Servlets and the fly likes problem with running servlets using tomcat3.2.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem with running servlets using tomcat3.2.4" Watch "problem with running servlets using tomcat3.2.4" New topic
Author

problem with running servlets using tomcat3.2.4

Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
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.


Kishore
SCJP, blog
sim sim
Ranch Hand

Joined: Jun 05, 2002
Posts: 55
Hi Kishore,
The path should be
'install_dir/webapps/root/web-inf/classes'
Sim Sim
chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
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>
bernd pier
Ranch Hand

Joined: Jun 21, 2002
Posts: 30
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
It worked.
Thanks a bunch for the suggestions. I am gonna crack this for couple of days.
Kishore.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
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://aspose.com/file-tools
 
subject: problem with running servlets using tomcat3.2.4
 
Similar Threads
Can not find server or DNS error
Tomcat config question
HTTP 404 Error
Inconsistent response
Newbie problem from chapter1 of Head First Servlets & JSP