File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat7 startup problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat7 startup problem" Watch "Tomcat7 startup problem" New topic
Author

Tomcat7 startup problem

Mike Tabak
Ranch Hand

Joined: Mar 31, 2012
Posts: 45
I just installed Tomcat 7 on Windows 7 32 bit. It seems to work fine when I first install, but when I shut down and re-start the computer, I get an error that Tomcat could not be found and the icon is gone from the startup menu. The Tomcat directories are intact. Anyone know the solution to this?

Thank you
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

I too had the same error, but it will not affect the function of tomcat in anyway, the system tray tool is not working thats all.
Mike Tabak
Ranch Hand

Joined: Mar 31, 2012
Posts: 45
Are you saying the system tray in Windows 7 isn't working? I'm not surprised. One reason I switched to mac. Is there a way to get an Icon on the desktop or another way to start up Tomcat? I have to re-install to get the startup daemon which is a bit of a pain.

Thanks
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

Are you using a MAC ? i dont have much idea abt MAC, for windows you can use services.msc

You will always get startup.bat check the Tomcat /bin for more details
Mike Tabak
Ranch Hand

Joined: Mar 31, 2012
Posts: 45
I'm running Windows 7 on a Bootcamp partition on a macbook Pro. It is essentially Windows 7. I installed on the mac side and there is a nice startup/shutdown script to use. But I don't see any kind of startup/shutdown utility on the Windows side. Do you know of a way to start it other than being in the system tray? Installing as a service doesn't seem to make a difference. In fact I think I read that when you install, no matter how you configure it, on Windows it installs as a service.

Thanks
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

That's funny because i am running windows XP in a MAC Mini, every thing is working completely fine for me, even the system tray icon works for me.

Getting to your story,

I think you are using a JRE 7, i might suggest JRE 6, during the Windows service installation, it will ask you for the selection of JRE, at this point try giving the location of JRE 6, then it worked for me.

Now the service at services.msc is available.

And the ''Tomcat7 application icon'' in the 'C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin' location also works, if you need the Desktop icon then you can use the "Tomcat7w application icon" present in the same location. it works for me,

i just tested it in my Windows 7 (The Normal Version Windows 7 Home Basic Note:- Not the one i mentioned at the beginning).

Finally sorry for the short English, i am new to Javaranch.

Good Luck
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61610
    
  67

You do not need to install it as a service. You can simply unpack the zip (avoid any installer) and run it from the command line.

It's been years since I've used Windows, but there should be .bat files in the bin folder if I recall correctly.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mike Tabak
Ranch Hand

Joined: Mar 31, 2012
Posts: 45
I am using jre7, interesting it should cause this. I'll try jre6. I tried to use the startup apps in the bin directory, but had some problems, don't recall what, I'll have to try it again. I didn't see a .bat file. There is a .bat file in the Mac version, but that might be because it's basically linux. The problem I have on the mac side is I can't get the manager and manager-gui roles to function even though I added them the the xml file. Have to play around with it a bit more. Thanks for the info.

Mike
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61610
    
  67

Mike Tabak wrote:I tried to use the startup apps in the bin directory, but had some problems, don't recall what, I'll have to try it again.

This time, try without installing Tomcat as a service.

There is a .bat file in the Mac version, but that might be because it's basically linux.

Umm, no. The OS X kernel is not Linux based; it's much closer to BSD.

And, .bat files are Windows scripts; they have nothing at all to do with Linux or OS X.

The problem I have on the mac side is I can't get the manager and manager-gui roles to function even though I added them the the xml file. Have to play around with it a bit more.

I'm still running Tomcat 6 as that's what all my clients are using. Maybe I'll give Tomcat 7 a whirl if I get a change to see what the issue might be.
Mike Tabak
Ranch Hand

Joined: Mar 31, 2012
Posts: 45
Linux, BSD, Unix basically are all related. My point was Mac is different from Windows. As far as installing Tomcat as a service on Windows, I tried that in fact as I think I mentioned whether you check the service box or not in the installer, on Windows you get Tomcat installed as a service, you have no choice. At least that's what I recall reading in the documentation.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61610
    
  67

Mike Tabak wrote:Linux, BSD, Unix basically are all related.


I know Unix-heads for whom those would be fighting words!

My point was Mac is different from Windows.

Agreed -- night and day!

As far as installing Tomcat as a service on Windows, I tried that in fact as I think I mentioned whether you check the service box or not in the installer, on Windows you get Tomcat installed as a service, you have no choice. At least that's what I recall reading in the documentation.


Once again: don't run any installer! Any. At all. Just unpack the zip file. No installer. None. No installer!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat7 startup problem