Re: Scripting Tomcat installation versus multiple instances

2014-03-27 Thread David kerber

On 3/27/2014 12:11 PM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

David,



...



Yes, it is.  When I am setting up a new install, I do the windows
install and then unzip the .zip package on top of it, so I have all
the .bat files as well.  I don't fully automate my installations,
but I do some scripting to make it easier to be consistent with my
naming and configuration.


https://issues.apache.org/bugzilla/show_bug.cgi?id=56323

Vote for it.


done


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



Re: Scripting Tomcat installation versus multiple instances

2014-03-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

David,

On 3/26/14, 3:35 PM, David kerber wrote:
> On 3/26/2014 3:25 PM, André Warnier wrote:
>> Leo Donahue wrote:
>>> On Wed, Mar 26, 2014 at 11:32 AM, Sebastien Tardif < 
>>> sebastien.tardif.contrac...@gmo.com> wrote:
>>> 
 I'm confused by the commands given by Tomcat documentation
 about creating different instances, it says: "service install
 instance1" but "service" is not a command provided by Tomcat
 or Windows, see 
 http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html#Multiple_Instances




 
Almost everything I'm trying to automate using that page is not
 working, maybe it's rare people automate installation on
 Windows?
 
>>> 
>>> The service command is located here:
>>> \apache-tomcat-7.0.52\bin
>>> 
>>> change directories to this location and run that command.
>>> 
>> 
>> Maybe also the OP did not download the correct package to have
>> that command. For some reason which is still mysterious to me,
>> the "Service Installer" package does not contain all the files
>> which the ZIP package contains. And "bin/service.bat" is probably
>> among the ones missing.
> 
> Yes, it is.  When I am setting up a new install, I do the windows 
> install and then unzip the .zip package on top of it, so I have all
> the .bat files as well.  I don't fully automate my installations,
> but I do some scripting to make it easier to be consistent with my
> naming and configuration.

https://issues.apache.org/bugzilla/show_bug.cgi?id=56323

Vote for it.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTNE2VAAoJEBzwKT+lPKRYicoP/0wJYICuyIYTdbWeNEaxAVbA
SPyrBpoiXRPZAMFm/tW0Epk2ruiVh/9SCqT3M1nbCM+ThBzMEYjaWf38v1zaGVgb
HQUSww/2Vz7D3ZuuQz9GHA4OD9+5l+FFkTE6qAMZf6q9oEyzu6/ySGGyzWYVSRdw
T+Buy6ZQHCVgbgB9wzZbGyHgwULEKnf/GUbCIlpx+kAiHhqnTPl/6QiXJpBaUPoE
ZO7HPUNZFG/P2yjORalP/xsU0l2R/74pmySFUd8lP5oLevMNt3hoqjWHV1rVROuV
pFpnaNPnbo2aeCHh1RNXNPP57ieiTmSdHgm+LghfPG7aVXPW1vsw5T10VqlxuEWN
mf+GAmlpVzQl0NkqoIW4T0A0yjrVJHXqMmPnzQEE5xc7wwL86h/B2A+Gs47tXVrQ
lvuicmQkqKJOyanriJ+dvP5ddDPKDlPPf4/oeLqZoPqpajpWI4/uAL4AhV24I7Lt
sls4pR/rMc23ytujodKu3A+alANL6cz/279aHOUqkkpNOe5NuPqr9T1Vn/c4fPKr
PXwzEmtVOLX4VRkB+bohqya5xwsb7lkDmzrS7LPAQj9/pd0lnVDd+2P0O02yvDM5
kaZIeRK4qa6RGJIcGv81hpiskbT3dcv23ALfYuQu87/MMeiNkDspY0OoZIRJS/qO
jB6BBGKGgYLQYsIHUDVu
=Amxm
-END PGP SIGNATURE-

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



Re: Scripting Tomcat installation versus multiple instances

2014-03-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

André,

On 3/26/14, 3:35 PM, André Warnier wrote:
> Despite your name, you are too quick (and not lazy enough). You
> could have waited an hour, to get that solution right here. ;-)

Please don't top-post.

- -chris

(Sorry... just had to do that)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTNE0BAAoJEBzwKT+lPKRYZRYQAKaYJRoB4M4Fm4NnIW3Q2Ng/
Fs1dk96Ad1HdIPWgYUjnzRS3oOXXW+2ocOnn1LXUctjQRsdkruY0PmwrYThUZ8zB
lZmJgSFBoi3w1c+HJ3KTchnx8+VQUDOeR0r++hmpvl0j92yNQz0a4mr7muyvoMs2
e7TAM3dRMAkcCX/W8In0SsOweHaSpUTOAnEkzGG4tGZKaPvAJ4fIEQ2Jra7bcHqQ
U/u2VRlcXBemIoeOFYGANek1v/hvu7NelhDLwMLHgJYFoktxjSyWKpZ187OOkuU9
g/WOM2WIa/TzCMEPtA8QhD45biJmE+l4vvR4ScVgeC3eIxT0F6jNwvvcflEDEo0/
+SWonwmrKGvKbgvgBLM0VRXfbNXbFmaw1Vo8liT077BsmYNFrSP7eN51iiePH025
0O7dGAJQyi5fe3w6JP4WHh1rbYKOzmJMyyMQjKItSzy6Y07fK6qpbekb4VxnLrev
Rvq0Xh/xpqgj1mtKip7JFBbJl1m/wu6suJCGuUOukm4sCqjcTYNUCBL67Md/ilR+
6baBdUvNriznVxJsY7AOqAa5rCnU6iyBTOdBvduuw25+gED45aLpJUuL+OuHl5Ij
2U8s2rKWdrvIKWLpdRl8BYZksbQr7yMV5JJrh5ce679GHrduJv1xLkggdQRr5HMu
kpvX512awxPkrnJ0xGkX
=UxeD
-END PGP SIGNATURE-

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



RE: Scripting Tomcat installation versus multiple instances

2014-03-26 Thread Jeffrey Janner
> -Original Message-
> From: David kerber [mailto:dcker...@verizon.net]
> Sent: Wednesday, March 26, 2014 2:35 PM
> To: Tomcat Users List
> Subject: Re: Scripting Tomcat installation versus multiple instances
> 
> On 3/26/2014 3:25 PM, André Warnier wrote:
> > Leo Donahue wrote:
> >> On Wed, Mar 26, 2014 at 11:32 AM, Sebastien Tardif <
> >> sebastien.tardif.contrac...@gmo.com> wrote:
> >>
> >>> I'm confused by the commands given by Tomcat documentation about
> >>> creating different instances, it says: "service install instance1"
> >>> but "service" is not a command provided by Tomcat or Windows, see
> >>> http://tomcat.apache.org/tomcat-7.0-doc/windows-service-
> howto.html#M
> >>> ultiple_Instances
> >>>
> >>>
> >>> Almost everything I'm trying to automate using that page is not
> >>> working, maybe it's rare people automate installation on Windows?
> >>>
> >>
> >> The service command is located here:  \apache-tomcat-7.0.52\bin
> >>
> >> change directories to this location and run that command.
> >>
> >
> > Maybe also the OP did not download the correct package to have that
> > command.
> > For some reason which is still mysterious to me, the "Service
> Installer"
> > package does not contain all the files which the ZIP package
> contains.
> > And "bin/service.bat" is probably among the ones missing.
> 
> Yes, it is.  When I am setting up a new install, I do the windows
> install and then unzip the .zip package on top of it, so I have all the
> .bat files as well.  I don't fully automate my installations, but I do
> some scripting to make it easier to be consistent with my naming and
> configuration.
> 

I've found with the Windows service installer that I've never needed the *.bat 
files that come with the zip file.
However, one thing I'm not sure about is if the WSI has a -silent mode.  It 
would be great if it did.  It really would help out in scripting the install as 
part of another install, etc.


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



Re: Scripting Tomcat installation versus multiple instances

2014-03-26 Thread Leo Donahue
On Wed, Mar 26, 2014 at 12:35 PM, André Warnier  wrote:

> Despite your name, you are too quick (and not lazy enough).
> You could have waited an hour, to get that solution right here.
> ;-)
>
>
> Sebastien Tardif wrote:
>
>
> Oh no you didn't, just top post. ?


Re: Scripting Tomcat installation versus multiple instances

2014-03-26 Thread André Warnier

Despite your name, you are too quick (and not lazy enough).
You could have waited an hour, to get that solution right here.
;-)

Sebastien Tardif wrote:

Ok, I got it.

When I installed Tomcat on Windows, I used the Windows Service Installer, the 
executable, not the zip.

It seems the installation will rename the executables to whatever name you give 
to your instance, but that executable can be used like service.bat for that 
command. The executables are renamed so that when you execute them they default 
to match the Windows service with the same name.

Also, the same Tomcat documentation mentions a batch file called service.bat, 
that file doesn't exist in the executable installer but does exists in the zip 
file for Windows.

To debug installation of Tomcat's services, it's useful to know that the 
registry location that persist all the settings is under: 
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0

-Original Message-
From: Leo Donahue [mailto:donahu...@gmail.com] 
Sent: Wednesday, March 26, 2014 2:54 PM

To: Tomcat Users List
Subject: Re: Scripting Tomcat installation versus multiple instances

On Wed, Mar 26, 2014 at 11:32 AM, Sebastien Tardif < 
sebastien.tardif.contrac...@gmo.com> wrote:

I'm confused by the commands given by Tomcat documentation about 
creating different instances, it says: "service install instance1" but 
"service" is not a command provided by Tomcat or Windows, see 
http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html#Mul

tiple_Instances

Almost everything I'm trying to automate using that page is not 
working, maybe it's rare people automate installation on Windows?




The service command is located here:  \apache-tomcat-7.0.52\bin

change directories to this location and run that command.

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





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



Re: Scripting Tomcat installation versus multiple instances

2014-03-26 Thread David kerber

On 3/26/2014 3:25 PM, André Warnier wrote:

Leo Donahue wrote:

On Wed, Mar 26, 2014 at 11:32 AM, Sebastien Tardif <
sebastien.tardif.contrac...@gmo.com> wrote:


I'm confused by the commands given by Tomcat documentation about
creating
different instances, it says: "service install instance1" but
"service" is
not a command provided by Tomcat or Windows, see
http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html#Multiple_Instances


Almost everything I'm trying to automate using that page is not working,
maybe it's rare people automate installation on Windows?



The service command is located here:  \apache-tomcat-7.0.52\bin

change directories to this location and run that command.



Maybe also the OP did not download the correct package to have that
command.
For some reason which is still mysterious to me, the "Service Installer"
package does not contain all the files which the ZIP package contains.
And "bin/service.bat" is probably among the ones missing.


Yes, it is.  When I am setting up a new install, I do the windows 
install and then unzip the .zip package on top of it, so I have all the 
.bat files as well.  I don't fully automate my installations, but I do 
some scripting to make it easier to be consistent with my naming and 
configuration.




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



Re: Scripting Tomcat installation versus multiple instances

2014-03-26 Thread André Warnier

Leo Donahue wrote:

On Wed, Mar 26, 2014 at 11:32 AM, Sebastien Tardif <
sebastien.tardif.contrac...@gmo.com> wrote:


I'm confused by the commands given by Tomcat documentation about creating
different instances, it says: "service install instance1" but "service" is
not a command provided by Tomcat or Windows, see
http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html#Multiple_Instances

Almost everything I'm trying to automate using that page is not working,
maybe it's rare people automate installation on Windows?



The service command is located here:  \apache-tomcat-7.0.52\bin

change directories to this location and run that command.



Maybe also the OP did not download the correct package to have that command.
For some reason which is still mysterious to me, the "Service Installer" package does not 
contain all the files which the ZIP package contains.

And "bin/service.bat" is probably among the ones missing.


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



RE: Scripting Tomcat installation versus multiple instances

2014-03-26 Thread Sebastien Tardif
Ok, I got it.

When I installed Tomcat on Windows, I used the Windows Service Installer, the 
executable, not the zip.

It seems the installation will rename the executables to whatever name you give 
to your instance, but that executable can be used like service.bat for that 
command. The executables are renamed so that when you execute them they default 
to match the Windows service with the same name.

Also, the same Tomcat documentation mentions a batch file called service.bat, 
that file doesn't exist in the executable installer but does exists in the zip 
file for Windows.

To debug installation of Tomcat's services, it's useful to know that the 
registry location that persist all the settings is under: 
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0

-Original Message-
From: Leo Donahue [mailto:donahu...@gmail.com] 
Sent: Wednesday, March 26, 2014 2:54 PM
To: Tomcat Users List
Subject: Re: Scripting Tomcat installation versus multiple instances

On Wed, Mar 26, 2014 at 11:32 AM, Sebastien Tardif < 
sebastien.tardif.contrac...@gmo.com> wrote:

> I'm confused by the commands given by Tomcat documentation about 
> creating different instances, it says: "service install instance1" but 
> "service" is not a command provided by Tomcat or Windows, see 
> http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html#Mul
> tiple_Instances
>
> Almost everything I'm trying to automate using that page is not 
> working, maybe it's rare people automate installation on Windows?
>

The service command is located here:  \apache-tomcat-7.0.52\bin

change directories to this location and run that command.

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



Re: Scripting Tomcat installation versus multiple instances

2014-03-26 Thread Leo Donahue
On Wed, Mar 26, 2014 at 11:32 AM, Sebastien Tardif <
sebastien.tardif.contrac...@gmo.com> wrote:

> I'm confused by the commands given by Tomcat documentation about creating
> different instances, it says: "service install instance1" but "service" is
> not a command provided by Tomcat or Windows, see
> http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html#Multiple_Instances
>
> Almost everything I'm trying to automate using that page is not working,
> maybe it's rare people automate installation on Windows?
>

The service command is located here:  \apache-tomcat-7.0.52\bin

change directories to this location and run that command.