aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes unable to open service Tomcat5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "unable to open service Tomcat5" Watch "unable to open service Tomcat5" New topic
Author

unable to open service Tomcat5

Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
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!


The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Icaro Dourado
Greenhorn

Joined: Dec 30, 2007
Posts: 9
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).


SCJP 5, SCWCD 5
Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
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).
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

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.


SCJP 6. Learning more now.
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

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

Joined: Nov 05, 2007
Posts: 661
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

Joined: Jan 21, 2011
Posts: 637

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

Joined: Nov 05, 2007
Posts: 661
Reinstalling in Program Files(x86) worked .
Hope i don't have any more problems.

Thanks for all your help!
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

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

Joined: Nov 05, 2007
Posts: 661
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to open service Tomcat5