Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes Tomcat won't start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat won Watch "Tomcat won New topic
Author

Tomcat won't start

Darren Alexandria
Ranch Hand

Joined: Aug 17, 2007
Posts: 185
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

Joined: Aug 17, 2007
Posts: 185
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
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

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!


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Darren Alexandria
Ranch Hand

Joined: Aug 17, 2007
Posts: 185
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

Joined: Aug 17, 2007
Posts: 185
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
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

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.


Regards, Rene Larsen
Dropbox Invite
Darren Alexandria
Ranch Hand

Joined: Aug 17, 2007
Posts: 185
Hello Rene,

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

Anyway, thanks a lot!

=)
 
Consider Paul's rocket mass heater.
 
subject: Tomcat won't start