• 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

Tomcat7 startup problem

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 56
Netbeans IDE Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 56
Netbeans IDE Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 56
Netbeans IDE Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Mike Tabak
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic