• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Can't start Tomcat5

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Can't start Tomcat5 using windows 2000. Everytime I execute the startup.bat, command prompt window just pop out and disappears. This does not happen using Tomcat3 in windows 2000.
Can anyone point to me the url concerning the invoker. Thanks
Any help is appreciated.
Thanks,
Panday
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to see whats going wrong you have to
1. execute startup.bat from an open command prompt window that has CATALINA_HOME/bin as the current directory.
2. but first change the line in startup.bat that reads

to

so that Catalina.bat will execute in the same window and the window will stay open.
One ranchers take on invoker can be found here.
Bill
 
Ranch Hand
Posts: 635
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried as William suggested and changed
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
to
call "%EXECUTABLE%" run %CMD_LINE_ARGS%
But the command prompt does not stay open.
If there is a way of making sure a command propt stays open I will prob be able to debug this problem.
Thanks for any help Tony
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by William Brogden:


This line should be without the 'run' word (it is not a valid Windows command!!)
Ren�
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. In order for the command prompt to stay open, you MUST execute the startup.bat from an open Command Prompt window. Open a command prompt, navigate to your TOMCAT_HOME /bin window, enter startup and hit return.
2. With respect to this comment:

This line should be without the 'run' word (it is not a valid Windows command!!)


I regret to state that you are incorrect - just today I used exactly this command in startup.bat when trying to debug a tomcat problem. When "start" is used, a new window opens, when "run" is used Catalina.bat continues to execute in the open window.
Bill
 
Rene Larsen
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can now see what you mean ;-)
in 'cataline.bat' the start/run/.. is catched like this:
if ""%1"" == ""debug"" goto doDebug
if ""%1"" == ""run"" goto doRun
if ""%1"" == ""start"" goto doStart
if ""%1"" == ""stop"" goto doStop
So yes, you are right about what you first wrote.
I normaly change this line in the 'catalina.bat':
set _EXECJAVA=start "Tomcat" %_RUNJAVA%
where I remove 'start "Tomcat"' from the line.
Ren�
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah - thats the difference, I try to never touch catalina.bat or setclasspath.bat and do all modifications in startup.bat
It seems that most new Tomcat installations start right up but if there is any error you really have to dig. Sometimes that 2nd window opens and closes so fast that you don't even notice.
Bill
[ February 29, 2004: Message edited by: William Brogden ]
 
Panday Manako
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill,
I was able to look into the error.
Panday
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic