• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

unable to start Tomcat

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried it a number of ways but I could not get to work.
I have unzipped the jakarta-tomcat-5.0.27.zip
into to c:\jakarta-tomcat-5.0.27
Next I set the TOMCAT_HOME as C:\jakarta-struts-1.1\lib\struts.jar;%CLASSPATH% and JAVA_HOME as c:\j2sdk1.4.2_05.

I then commented out the @echo off in the startup.bat files.
When I run startup from the DOS prompt I see a bunch of messages and a java window flases by and nothing happens. When I try to test tomcat from a web browser it says page cannot be found.
I know that the server is not starting up.I have seen many responses for setting environment space in win98/NT ...I am using WinXP.Can someone tell me how to increase env space in XP?
Could someone please help me thru this. I would appreciate it very much.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you set your TOMCAT_HOME to the Struts jar file?

When I run Tomcat I run it out of the box, meaning I extract the zip file then run the start batch file. No environment setting changed.

But on another note, I am going to move this thread to the Apache/Tomcat forum, which is more appropriate for this question.


Mark
 
prabhu kasi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Still having the same problem..

I have the following in my autoexec.bat

set JAVA_HOME=c:\j2sdk1.4.2_05
set TOMCAT_HOME=c:/jakarta-tomcat-5.0.27

when i run startup , the window flashes for an instant and goes away.I am sure tomcat failed at startup becos i tried to test the installation using http://localhost:8080 ,got a page could not be found error.

Pls help...
 
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. You should use CATALINA_HOME, not TOMCAT_HOME -
2. DO NOT run startup.bat by clicking on it. Open a command prompt window, cd to the tomcat/bin directory and execute startup from the command line. That way the window will stay open and you can see what is happening.
3. If another window opens and closes again, change the line in startup bat
from
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
to
call "%EXECUTABLE%" run %CMD_LINE_ARGS%

so that window will stay open and you can see what happens.

4. MANY MANY people have had similar problems and past discussions in this forum will probably cover just about any situation.
5. WinXP does not have the environment space problem.
Bill
 
prabhu kasi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have done exactly as suggested previuosly.Still no luck in starting tomcat..

I start tomcat using DOS prompt . It still flashes the window for a second and goes away. Changed EXECUTABLE line to run .

autoexec.bat has been changed to
set JAVA_HOME=c:\j2sdk1.4.2_05
set CATALINA_HOME=c:\jakarta-tomcat-5.0.27\jakarta-tomcat-5.0.27 .
 
reply
    Bookmark Topic Watch Topic
  • New Topic