You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ar...@sqs.de on 2011/05/25 12:39:27 UTC

Deploying tomcat 6.0.10 as a windows service

Hi all,

if I confiure an instance of tomcat as a windows service, I have to give this
instance a unique name (tomcat6 //IS//servicename {params ...}).
What signs are at least allowed in this name? It seems that dashes and under-
scores are not allowed. What delimiter are possible to make the name readable.

Background: I want to automate the creation of this services with context dep-
ending information and have to configure more than one instance of a tomcat
service.

Best regards 
Arno Schäfer


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: AW: Deploying tomcat 6.0.10 as a windows service

Posted by Mark Thomas <ma...@apache.org>.
On 25/05/2011 15:07, arno.schaefer@sqs.de wrote:
> Hi Andre,
> 
> that it is allowed to use any character, I want to use in windows,
> I know. Quoting the command and/or the service name doesn't help.
> 
> But at least it seem's that it is nowhere described what a valid
> service name is for tomcat. So I will find out by trail and error.

Look in the commons daemon docs. From memory it is limited to
alphanumeric. I'd just use names in camel case.

Mark

> 
> Thanks,
> Arno
> 
>>> Hi all,
>>>
>>> if I confiure an instance of tomcat as a windows service, I have to 
>>> give this instance a unique name (tomcat6 //IS//servicename 
>> {params ...}).
>>> What signs are at least allowed in this name? It seems that 
>> dashes and 
>>> under- scores are not allowed. What delimiter are possible 
>> to make the name readable.
>>>
>>> Background: I want to automate the creation of this services with 
>>> context dep- ending information and have to configure more than one 
>>> instance of a tomcat service.
>>>
>> There are possiby 2 parts to this.
>>
>> Part 1 : what Windows itself will accept as a Service name.
>>
>> The only clear info on that subject which I could find 
>> quickly is here :
>> http://msdn.microsoft.com/en-us/library/ms682450%28v=vs.85%29.aspx
>> which seems to exclude just "/" and "\".
>>
>> Part 2 : what the Windows command interpreter shell (cmd) 
>> does with your command line
>>
>> tomcat6 //IS//servicename {params ...}
>>
>> Have you tried putting "servicename" between quotes ?
>>
>> In a different context, I remember finding out that Netbios 
>> "system names" or "share names" do not admit "-" signs in 
>> them for instance (and maybe also not "_").
>> Maybe since a Service name may be used in Netbios sometimes, 
>> the same rules apply ?
>> (just guessing).
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


AW: Deploying tomcat 6.0.10 as a windows service

Posted by ar...@sqs.de.
Hi Andre,

that it is allowed to use any character, I want to use in windows,
I know. Quoting the command and/or the service name doesn't help.

But at least it seem's that it is nowhere described what a valid
service name is for tomcat. So I will find out by trail and error.

Thanks,
Arno

> > Hi all,
> > 
> > if I confiure an instance of tomcat as a windows service, I have to 
> > give this instance a unique name (tomcat6 //IS//servicename 
> {params ...}).
> > What signs are at least allowed in this name? It seems that 
> dashes and 
> > under- scores are not allowed. What delimiter are possible 
> to make the name readable.
> > 
> > Background: I want to automate the creation of this services with 
> > context dep- ending information and have to configure more than one 
> > instance of a tomcat service.
> > 
> There are possiby 2 parts to this.
> 
> Part 1 : what Windows itself will accept as a Service name.
> 
> The only clear info on that subject which I could find 
> quickly is here :
> http://msdn.microsoft.com/en-us/library/ms682450%28v=vs.85%29.aspx
> which seems to exclude just "/" and "\".
> 
> Part 2 : what the Windows command interpreter shell (cmd) 
> does with your command line
> 
> tomcat6 //IS//servicename {params ...}
> 
> Have you tried putting "servicename" between quotes ?
> 
> In a different context, I remember finding out that Netbios 
> "system names" or "share names" do not admit "-" signs in 
> them for instance (and maybe also not "_").
> Maybe since a Service name may be used in Netbios sometimes, 
> the same rules apply ?
> (just guessing).


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploying tomcat 6.0.10 as a windows service

Posted by André Warnier <aw...@ice-sa.com>.
arno.schaefer@sqs.de wrote:
> Hi all,
> 
> if I confiure an instance of tomcat as a windows service, I have to give this
> instance a unique name (tomcat6 //IS//servicename {params ...}).
> What signs are at least allowed in this name? It seems that dashes and under-
> scores are not allowed. What delimiter are possible to make the name readable.
> 
> Background: I want to automate the creation of this services with context dep-
> ending information and have to configure more than one instance of a tomcat
> service.
> 
There are possiby 2 parts to this.

Part 1 : what Windows itself will accept as a Service name.

The only clear info on that subject which I could find quickly is here :
http://msdn.microsoft.com/en-us/library/ms682450%28v=vs.85%29.aspx
which seems to exclude just "/" and "\".

Part 2 : what the Windows command interpreter shell (cmd) does with your command line

tomcat6 //IS//servicename {params ...}

Have you tried putting "servicename" between quotes ?

In a different context, I remember finding out that Netbios "system names" or "share 
names" do not admit "-" signs in them for instance (and maybe also not "_").
Maybe since a Service name may be used in Netbios sometimes, the same rules apply ?
(just guessing).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org