This week's book giveaways are in the Angular and TypeScript and Web Services forums.
We're giving away four copies each of Programming with Types and The Design of Web APIs and have the authors on-line!
See this thread and this one for details.
Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!
  • 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

Tomcat won't start

 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day!


I am installing Tomcat 5.5.23 in a PC. This is what I did:

Tomcat 5.5.23 on Windows

1. Install Apache Tomcat 5.5.23.exe
2. Install JDK
3. Set the Enviroment Variables

CATALINA_HOME : C:\Tomcat 5.5.23
Path : add C:\Program Files\Java\jdk1.5.0_06\bin
JAVA_HOME: : C:\Program Files\Java\jdk1.5.0_06

4. Turned off the firewall

5 Click Monitor Tomcat, a Tomcat icon will appear in the Tray Icon, right click it and Start.
6. Open a Browser and type: http://localhost:8080/. If successful, you should see the Tomcat Page.

This steps worked on all of the PC's except for one. In this computer, even if i start
Tomcat through its icon in the Tray Icon, the Icon doesn't change to the one that
supposed to show that it has been started (the one with the green triangle). But
if you check it again, it says that it has been started. Also, in the Services, once
the Apache Tomcat Service has been started, it wouldn't stop. A, "An error on this
script has been encountered.." appears when I click the Stop link. Therefore when
I access the Tomcat Manager page, the page cannot be displayed.

Is there anything I could do?

Thanks,

Darren
 
Darren Alexandria
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Additional Details:


C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin>echo %Path%
C:\PROGRA~1\REFLEC~1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\
Program Files\Diskeeper Corporation\Diskeeper\;C:\Program Files\Common Files\Len
ovo;C:\Program Files\Lenovo\Client Security Solution;C:\SFU\common\;C:\Program F
iles\Altiris\Software Virtualization Agent\;C:\Program Files\Java\jdk1.6.0_01\bi
n

C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_01

C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin>echo %CATALINA_HOME%
C:\Program Files\Apache Software Foundation\Tomcat 6.0
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Darren,

A couple of qucik things that could be tripping you up.

1.) Judging by the directories/PATHs you are listing you seem to have a mix of Tomcat 5.x and 6.0 installed and are referencing a mix of Java versions. You need to make sure they are very distinct.

2.) Most Java apps dislike being on PATHs with spaces in them, e.g. it's better to have c:\Tomcat_5.5.2 as opposed to c:\Tomcat 5.5.2

2.a.) Same goes for the JDK install, I'd recommend uninstalling it and reinstalling it to a directory structure without spaces e.e. Not under Program Files.

Hope that helps!
 
Darren Alexandria
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Martin!

I will try what you suggested today, and I'll give you an update if this worked.

Thanks a lot!

 
Darren Alexandria
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I have done what you suggested, but it didn't work with Tomcat.exe, what I did was to get an Tomcat.zip file and extract it to
C:Tomcat_5.5.23 directory. When I start Tomcat.exe, the Tomcat Manager doesn't show up. But when I use, startup.bat,
it works. I am wondering why.


C:\Tomcat_5.5.23>echo %Path%
C:\PROGRA~1\REFLEC~1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\
Program Files\Diskeeper Corporation\Diskeeper\;C:\Program Files\Common Files\Len
ovo;C:\Program Files\Lenovo\Client Security Solution;C:\SFU\common\;C:\Program F
iles\Altiris\Software Virtualization Agent\;C:\Java\jdk1.6.0_01\bin

C:\Tomcat_5.5.23>echo %JAVA_HOME%
C:\Java\jdk1.6.0_01

C:\Tomcat_5.5.23>echo %CATALINA_HOME%
C:\Tomcat_5.5.23

Thanks for your help!!!

Regards,

Darren
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Darren Alexandria:
Hello!

I have done what you suggested, but it didn't work with Tomcat.exe, what I did was to get an Tomcat.zip file and extract it to
C:Tomcat_5.5.23 directory. When I start Tomcat.exe, the Tomcat Manager doesn't show up. But when I use, startup.bat,
it works. I am wondering why.


C:\Tomcat_5.5.23>echo %Path%
C:\PROGRA~1\REFLEC~1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\
Program Files\Diskeeper Corporation\Diskeeper\;C:\Program Files\Common Files\Len
ovo;C:\Program Files\Lenovo\Client Security Solution;C:\SFU\common\;C:\Program F
iles\Altiris\Software Virtualization Agent\;C:\Java\jdk1.6.0_01\bin

C:\Tomcat_5.5.23>echo %JAVA_HOME%
C:\Java\jdk1.6.0_01

C:\Tomcat_5.5.23>echo %CATALINA_HOME%
C:\Tomcat_5.5.23

Thanks for your help!!!

Regards,

Darren



You can not use tomcat.exe as an application to run just by double-clicking on it.

Tomcat.exe is use as the Windows Service application, which need a hole line of arguments for it to work.

Did you install tomcat as a Windows Service??

If yes, then there are maybe some old registry entries in you registry database, that wasn't removed when you uninstalled, and the reinstalled tomcat.
 
Darren Alexandria
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Rene,

Thanks for your explanation.
That really answers my question. Your probably right about the registry details.

Anyway, thanks a lot!

=)
 
That feels good. Thanks. Here's a tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!