• 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

unable to open service Tomcat5

 
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi!

I had installed Tomcat 5.5 long time back and i don't recall having any problem with installation.
I am trying to run it now but i keep getting the error "Access denied. unable to open service tomcat5"
Is there any thing i can try before uninstalling it?
And will uninstalling means setting my environment variables again?
I am using Windows 7

thanks!
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This seems easy to solve, but I suggest you to get the version where you just run its scripts to start and stop it instead of the one you start it as a service. Plus, put it in a folder you have full permission (like in your documents).
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure what you mean , because i followed the instruction to install as mentioned in HFSJ . And i don't know why I am not getting access ( I am logged in as administrator).
 
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nabila Mohammad wrote:hi!

I had installed Tomcat 5.5 long time back and i don't recall having any problem with installation.
I am trying to run it now but i keep getting the error "Access denied. unable to open service tomcat5"
Is there any thing i can try before uninstalling it?
And will uninstalling means setting my environment variables again?
I am using Windows 7

thanks!



Had the same problem here, windows 7. You can try this , i have xp also and it works for me :

1.right click on "my-computer" and then click the "Manage" option.

2.Computer management window appears. In the left side click "Services and Applications".

3.Click "Services"

4.On the right side, click "services".

5.Now you will see "Apache Tomcat" listed as a service. Click it and press "start" button on the window you see. Tomcat starts. OR,

6.Select it, Then you can see a "Start the service" (Start is in blue colour) . Click it. Tomcat starts.

I noticed one thing, that "access denied" message doesnt appear in win xp. I run win xp inside win7 using oracle virtual box.

I hope this helps.

PS :
Not to scare you, but you might encounter many more irritating problems like these. So a lot of time is wasted in "playing with the tomcat" instead of developing projects.
Also. during installation of tomcat you will see a port number (its generally 8080) --- REMEMBER IT !!! You can change it to , say 8081. BUT check if 8081 is not being used by another service.
I dont know why books dont mention things like these ? HF is simply insufficient for me, lot of talk and no action !
Good luck.
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
continued...

once it starts, goto browser or internet explorer and type : http://localhost:8080/ . Tomcat will open . After that click on "Tomcat manager" and enter the admin and password that you had entered during tomcat installation. Put your app in the webapps folder....blah blah...xml...blah blah...it should run

The only book i like by Kathy and bert is the scjp guide. The others -java,jsp are "ok" but not "good".
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not working . I get the same kind of error while trying to start Tomcat from services. "Unable to start tomcat. Look at System Log or contact the vendor"
I was using Windows XP earlier had no such problem using Tomcat.
I can't even copy or save files with in tomcat in win 7
Guess it has to do with Windws 7 n it's "high" security.

Anyway thanks for your help . Let's see if i can find a way to work around this else i ll go to my previous laptop which is on it's death bed!

 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nabila Mohammad wrote:It's not working . I get the same kind of error while trying to start Tomcat from services. "Unable to start tomcat. Look at System Log or contact the vendor"
I was using Windows XP earlier had no such problem using Tomcat.
I can't even copy or save files with in tomcat in win 7
Guess it has to do with Windws 7 n it's "high" security.

Anyway thanks for your help . Let's see if i can find a way to work around this else i ll go to my previous laptop which is on it's death bed!



You can try running windows xp inside windows 7 itself. Install virtual box (80mb,free) in win7 and then install windows xp,ubuntu etc inside it. Run any OS inside win7 like it was some application. Virtual box is quite convenient. For doubts and quick-guides for vbox, there is google.
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Reinstalling in Program Files(x86) worked .
Hope i don't have any more problems.

Thanks for all your help!
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nabila Mohammad wrote:Reinstalling in Program Files(x86) worked .
Hope i don't have any more problems.

Thanks for all your help!



I have win 7 - 64 bit, tomcat 5.5 (and 7 also) :
After much frustration, i tried this fluke and it worked for me (installing in x86 folder fails for me) :

1.Right-click on "monitor tomcat" button.
2.click on properties.
3.go to compatibility tab.
4.at bottom, tick the check-box "Run this program as an administrator"...click ok.

Tomcat appears in taskbar.

I hope this helps....

regards.
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My tomcat is working. The only thing is i have to start and stop it from Services.
Cannot do it directly as it gives me the same error "Unable to start Tomcat" . And i don't see it in my System Tray.
I tried adding it by going to properties of the Task bar as well as running it as Administrator . But that didn't seem to help.
Is there any other way to access Tomcat?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic