• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Can't start Tomcat5

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 681
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bill,
I was able to look into the error.
Panday
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic