File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Tomcat Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat Problem" Watch "Tomcat Problem" New topic

Tomcat Problem

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
After getting the enivorments right. i tried to start the server
> C:\tomcat\ startup
it gives me
I cannot figure out this 'OFF' . I am not able to access the
Can any body help

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
You should examing the startup.bat file - the first line (on my copy anyway) is
@echo off
perhaps your batch file is damaged?
I suggest removing the @echo off so you can see error messages. (if any)
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Couple of things...i wonder what version of tomcat
u r it tomcat 3.1?
also u as i know, the startup script is in the bin dir
so i would expect you to give:
As an example on my sys. (win 98) i use:
i am also a newbie to tomcat....
Please post further details, so we could help.
- satya

Take a Minute, Donate an Hour, Change a Life
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thanks guys it works now.
I looked at the startup script. The startup.bat script calls tomcat.bat. And in tomcat.bat file while starting the server it creates a new window by 'start' command. This window was not getting close. I comment out the start command and allowed it to exceute in the same window, and it works fine.
What do u think would be the problem, start command not getting enough memory??
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Goto your MSDOS window, top left corner use
right mouse button, pull-down menu, select "properties"
Goto the memory tab and under the
"Initial Environment" use something higher
like 4096 or something.
This is also explained in the JSDK and Tomcat helps.
- satya

Joined: Feb 07, 2002
Posts: 7
u could even start and stop using :
tomcat start
tomcat stop
from the command prompt.
However, I have a concern. Could anybody please let me know how to associate Tomcat with the Apache server. What r the modifications to be made to the httpd.conf file of apache and should anything be modified in the tomcat config file..
I agree. Here's the link:
subject: Tomcat Problem
It's not a secret anymore!