jQuery in Action, 2nd edition*
The moose likes Tomcat and the fly likes  Configure Tomcat issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark " Configure Tomcat issue " Watch " Configure Tomcat issue " New topic
Author

Configure Tomcat issue

Sandeep Sanaboyina
Ranch Hand

Joined: Dec 14, 2009
Posts: 72
Hi All,

I have tomcat installed as a service on a Windows 2008 server. The service is running fine. But when I try to use Configure Tomcat, I get the following error.

The specified service does not exist as an installed service.
unable to open the service 'tomcat6'

The main issue is that I have to specify the heap size for tomcat. But, since it is a service, I do not have a catalina.bat file. I have tried googling it and in most places they suggest using Configure Tomcat.
I cannot use the zipped version of tomcat as this is being used to run a BMC Remedy application. And it is in the production environement. So ; I cannot mess with it without knowing something definite.

I have also tried JAVA_OPTS and CATALINA_OPTS enviroment variables. But, I cannot check if they are actually used for running tomcat.

Any inputs are welcome. Thanks in advance.


They say you have to be the first, the best or different. I say, is it too much to ask for all three.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19679
    
  18

Moving to our Tomcat forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3826

Please don't duplicate posts.

SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

The best place to put stuff like that is normally TOMCAT_HOME/bin/setenv.bat, which is a file you have to create yourself. You'd set environment variables fot Tomcat in there.

Of course, the rules are different when running as a Windows service, so I don't know if that works or not.


Customer surveys are for companies who didn't pay proper attention to begin with.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19679
    
  18

Vijitha Kumara wrote:Please don't duplicate posts.

Thanks for pointing that out
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3826

Do you have tomcat6w.exe inside the bin folder of the installation? If I remember correct it can be used to configure the jvm args etc...
Sandeep Sanaboyina
Ranch Hand

Joined: Dec 14, 2009
Posts: 72
I am getting the error when running the tomcat6w.exe.

I will try the setenv.bat. But, I think it will be the same as setting the System Variables. How can I know if they are being used ?
Sandeep Sanaboyina
Ranch Hand

Joined: Dec 14, 2009
Posts: 72
I have written a small jsp that displays the total memory and memory used by Tomcat on the screen.

I have tried with JAVA_OPTS and CATALINA_OPTS in the environment variables.

I have also tried setenv.bat

None if these are affecting the heap size of tomcat.

Is there any way I can fix the tomcat6w.exe to work ? Update some registries may be ? It used to work before.

Or any other location to set the heap for the Apache windows service ?
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3826

I haven't really play much with these windows services... But if you get that in error in tomcat6w.exe it may depict that some problems with installation. Is it possible for you to make a fresh install?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Configure Tomcat issue