This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat 7.05/Windows 2008 (64bit) issues (solved) (Commons Daemon problem) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7.05/Windows 2008 (64bit) issues (solved) (Commons Daemon problem)" Watch "Tomcat 7.05/Windows 2008 (64bit) issues (solved) (Commons Daemon problem)" New topic
Author

Tomcat 7.05/Windows 2008 (64bit) issues (solved) (Commons Daemon problem)

Erik van der Goot
Greenhorn

Joined: Jan 12, 2011
Posts: 1
I just managed to install Tomcat 7.05 on Windows 2008 (64bit). It took me a day, partly 2008 being a pain in the ass, but at least half a day because of Tomcat. (I have been using Tomcat since version 3... so I am used to something...)

I will not claim that everything I did was relevant, but I now have a working starting/stopping installation that has icons where they should be.
To start with I dropped the UserAccessControl. Miscrosoft insists that stuff is not compatible with 2008 when of course the reality is the other way around... I love the stability of Windows as a base platform, but i hate that attitude. Anyway, drop the UAC and things start happening. After installation i set the tomcat7.exe and tomcat7w.exe to run as administrator for all users. Stuff still did not start and as per many other posts I removed the tomcat.pid entry from the configuration (and deleted the file) (what is this nonsense anyway!!!)

I could now sucessfully start and stop the service using the Monitor thingy.

However..... the service did NOT start up (or so it seemed) when restarting the machine. This of course is unacceptable. So I wasted a lot of time to find out why it does not start automatically.
Only when i started using my brain I found that it DOES start... unfortunately it also immediately shuts down

[2011-01-12 17:01:23] [info] Commons Daemon procrun (1.0.4.0 64-bit) started
[2011-01-12 17:01:23] [info] Running 'Tomcat7' Service...
[2011-01-12 17:01:23] [info] Starting service...
[2011-01-12 17:01:24] [info] Service started in 1528 ms.
[2011-01-12 17:01:28] [info] Run service finished.
[2011-01-12 17:01:28] [info] Commons Daemon procrun finished

I then decided it was a problem with the Commons Daemon thingy (tomcat7.exe). I dropped in the one from Tomcat 6.0.29 (which did start/stop correctly) renamed it to tomcat7 and presto. Everything works fine

So... Commons Daemon Service Runner 1.0.4.0 is INCOMPATIBLE with Windows 2008, whereas 1.0.2.0 works fine (have not tried 1.0.3.0)

I think this is a very obscure 'bug'.


Hope this helps someone

Erik


Update:
1. The same problem occurs on Windows 7 Home premium edition (64 bit)
2. Commons Daemon 1.0.3.0 works fine

More update:
Just downloaded the latest version 1.0.5.0 from the Commons Daemon site. Works fine...



 
 
subject: Tomcat 7.05/Windows 2008 (64bit) issues (solved) (Commons Daemon problem)