Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Problem

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic