File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat Problem" Watch "Tomcat Problem" New topic
Author

Tomcat Problem

Anonymous
Ranch Hand

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

Sanjay
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
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)
Bill
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

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

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Anonymous
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??
Cheers
Sanjay
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.
Regds.
- satya
raghu
Greenhorn

Joined: Feb 07, 2002
Posts: 7
u could even start and stop using :
tomcat start
and
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: http://aspose.com/file-tools
 
subject: Tomcat Problem