It's not a secret anymore!
The moose likes Servlets and the fly likes Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat" Watch "Tomcat" New topic


Raghavendra Holla
Ranch Hand

Joined: Jun 02, 2000
Posts: 58
How to run Tomcat as standalone server. i.e. if i don't have Any web server like appache. I mean to say, I want to use Tomcat just like how I used to used servletrunner (supplied by Sun). What are the configuration I have to make for making tomcat run like this. Can I make Tomcat to recognise servlet myServlet in X directory, by refering servelet as "localhost/servlet/myServlet" in my HTML?
I have unziped the files d:\Tomcat directory. And i am running Startup.bat file available in bin directory. I am having Windows-NT workstation.
Any help please...
Raghavendra Holla.
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
We can use Tomcat3.1 as full fledged web server. It can serve static html pages, dynamic jsp pages and servlets. We can install it in our local machine (Win95/98/NT) and use it for development and testing purposes very well.
For installation instructions please visit the following link.
maha anna
Noah Carroll
Ranch Hand

Joined: Sep 20, 2000
Posts: 96
To run tomcat as a standalone server, you just need to run the startup.bat file that you have been. However, to refer to applets you need to type http://localhost:8080/servlet/ServletName and make sure the servlet is located in the tomcat/webapps/root/web-inf/classes directory. the :8080 is important, do not leave it out. This makes it completely standalone with no need for apache.
I hope its helps, feel free to email me
I agree. Here's the link:
subject: Tomcat
jQuery in Action, 3rd edition