32-bit service on 64-bit windows?

2009-11-11 Thread David kerber
Can I install a 32-bit jvm and create a tc 5.5.28 service on win 2008 
64-bit server?  Or do I need a 64-bit jvm to do that?  Or do I need TC 
6.0.x?  If I need tc6, which jvm is needed?  Or will either work?


My app doesn't stretch the memory limits of the 32-bit, let alone 
needing 64-bit memory space.


Thanks!
D


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




RE: 32-bit service on 64-bit windows?

2009-11-11 Thread Caldarale, Charles R
 From: David kerber [mailto:dcker...@verizon.net]
 Subject: 32-bit service on 64-bit windows?
 
 Can I install a 32-bit jvm and create a tc 5.5.28 service on win 2008
 64-bit server?

Yes.  The mode of the service wrapper must match the mode of the JVM to be 
used, not the mode of the OS.  Note that the 5.5.28 .exe installer incorrectly 
checks the mode of the OS rather than the JVM, so it will install the wrong 
service wrapper for your situation.  The easiest way around this is to use the 
.zip download, which includes the 32-bit service wrapper.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: 32-bit service on 64-bit windows?

2009-11-11 Thread André Warnier

David kerber wrote:
Can I install a 32-bit jvm and create a tc 5.5.28 service on win 2008 
64-bit server?  Or do I need a 64-bit jvm to do that?  Or do I need TC 
6.0.x?  If I need tc6, which jvm is needed?  Or will either work?


My app doesn't stretch the memory limits of the 32-bit, let alone 
needing 64-bit memory space.


I belive that this has been discussed, extensively, under various guises 
on this forum.  So you may want to search the archives.


But, since it is not, to my knowledge, clearly expressed on the Tomcat 
website, let me try a summary :


- 32-bit .exe programs seem not to run under 64-bit Windows, and 
vice-versa 64-bit .exe programs not to run under 32-bit Windows.


- the Java JVM is at least in part a .exe program, so it will have to be 
a version matching the plaform bit-ness


- the JVM is not included in Tomcat downloads, so that's a bit you'll 
have to find out elsewhere, and install by yourself.


- Tomcat itself on the other hand is a Java application, which should 
run unchanged under a 32-bit or 64-bit JVM, so there is only one Tomcat


- but, under Windows and to run it (the JVM which will run Tomcat) as a 
Windows Service, one additional piece is needed, the (in)famous 
tomcatX.exe, which is a .exe wrapper around the JVM, making it behave 
like a Windows Service is supposed to.
(This tomcatX.exe (where X is the tomcat major version), is in fact 
always the same program, just renamed for version's sake.)
Being an .exe program, it also thus needs to have the appropriate 
bit-ness for the platform at hand.


- when you install Tomcat 6 on a Windows system, from the downloadable 
exe or windows service installer version, I believe that we are told 
that it does the right thing, installing the appropriate 32-bit or 
64-bit tomcatX.exe, as appropriate to the platform.
(We are however told this by word of mouth on this list, because the 
fact is not mentioned on the Tomcat download page).


- when you download and install the .zip version however - planning to 
configure it yourself as a service later using supplied .bat files - 
then for some reason not both the 32-bit and 64-bit versions of the 
wrapper are included, and only the 32-bit version is.
Which leaves the hapless would-be 64-bit installer (person) in a bind, 
because it is not clear where on the Tomcat website one finds the 64-bit 
version. Not on the download page, that's certain.
(although that information has been provided many times in this list's 
archives, and might even be buried in a FAQ).


It is also rather distressing, and puzzling, that when one downloads and 
installs the .exe version, one does not receive all the same files which 
are included in the .zip version.
This fact alone has caused these list archives to be much more 
voluminous than they would otherwise be.







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



Re: 32-bit service on 64-bit windows?

2009-11-11 Thread André Warnier

Caldarale, Charles R wrote:

From: David kerber [mailto:dcker...@verizon.net]
Subject: 32-bit service on 64-bit windows?

Can I install a 32-bit jvm and create a tc 5.5.28 service on win 2008
64-bit server?


Yes.  The mode of the service wrapper must match the mode of the JVM to be 
used, not the mode of the OS.  Note that the 5.5.28 .exe installer incorrectly 
checks the mode of the OS rather than the JVM, so it will install the wrong 
service wrapper for your situation.  The easiest way around this is to use the 
.zip download, which includes the 32-bit service wrapper.


Well, you don't say.
No sooner do I post a piece of wisdom to this list, that I am instantly 
being contradicted by one of the sommities on it.

So, is it true, can one run 32-bit programs on 64-bit Windows ?
I was under the impression that this did not work, having had a number 
of error messages that last time I had a chance to try.


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



Re: 32-bit service on 64-bit windows?

2009-11-11 Thread David kerber

André Warnier wrote:

Caldarale, Charles R wrote:

From: David kerber [mailto:dcker...@verizon.net]
Subject: 32-bit service on 64-bit windows?

Can I install a 32-bit jvm and create a tc 5.5.28 service on win 2008
64-bit server?


Yes.  The mode of the service wrapper must match the mode of the JVM 
to be used, not the mode of the OS.  Note that the 5.5.28 .exe 
installer incorrectly checks the mode of the OS rather than the JVM, 
so it will install the wrong service wrapper for your situation.  The 
easiest way around this is to use the .zip download, which includes 
the 32-bit service wrapper.



Well, you don't say.
No sooner do I post a piece of wisdom to this list, that I am instantly 
being contradicted by one of the sommities on it.

So, is it true, can one run 32-bit programs on 64-bit Windows ?
I was under the impression that this did not work, having had a number 
of error messages that last time I had a chance to try.


It depends on the .exe, but in my experience, most user applications 
will work.  Ones that try to run as a service may be an exception; this 
is the first time I've tried to install a service on x64.


D



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



Re: 32-bit service on 64-bit windows?

2009-11-11 Thread André Warnier

David kerber wrote:

André Warnier wrote:

Caldarale, Charles R wrote:

From: David kerber [mailto:dcker...@verizon.net]
Subject: 32-bit service on 64-bit windows?

Can I install a 32-bit jvm and create a tc 5.5.28 service on win 2008
64-bit server?


Yes.  The mode of the service wrapper must match the mode of the JVM 
to be used, not the mode of the OS.  Note that the 5.5.28 .exe 
installer incorrectly checks the mode of the OS rather than the JVM, 
so it will install the wrong service wrapper for your situation.  The 
easiest way around this is to use the .zip download, which includes 
the 32-bit service wrapper.



Well, you don't say.
No sooner do I post a piece of wisdom to this list, that I am 
instantly being contradicted by one of the sommities on it.

So, is it true, can one run 32-bit programs on 64-bit Windows ?
I was under the impression that this did not work, having had a number 
of error messages that last time I had a chance to try.


It depends on the .exe, but in my experience, most user applications 
will work.  Ones that try to run as a service may be an exception; this 
is the first time I've tried to install a service on x64.


It looks loike in addition I have an attention problem, because I missed 
Chuck's first phrase above.


Apart from that, I know that I have a Tomcat 5.5 running as a Windows 
service somewhere under a 64-bit Windows XP.
But I thought I remembered needing for that a 64-bit JVM, and I also 
needed a 64-bit tomcatX.exe, but which bitness I associated with the 
platform, not with the JVM.
But now I am a bit confused again, because it seems that the bitness of 
the tomcatX.exe has not to do with the platform, but everything to do 
with the chosen JVM, which could be a 32-bit version even on a 64-bit 
platform.

So is this tomcatX.exe then always a 32-bit application ?


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



RE: 32-bit service on 64-bit windows?

2009-11-11 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: Re: 32-bit service on 64-bit windows?
 
 So, is it true, can one run 32-bit programs on 64-bit Windows ?

Yes, you've always been able to run 32-bit programs on x86-64 versions of 
Windows.  (The older and deservedly maligned IA64 versions of Windows were not 
so compatible.)

 But I thought I remembered needing for that a 64-bit JVM, and I also
 needed a 64-bit tomcatX.exe, but which bitness I associated with the
 platform, not with the JVM.

Nope, 32-bit JVMs work fine on 64-bit Windows.

 it seems that the bitness of the tomcatX.exe has not to do 
 with the platform, but everything to do with the chosen JVM,
  which could be a 32-bit version even on a 64-bit platform.

Which is what I said in the first response.

 So is this tomcatX.exe then always a 32-bit application ?

No, there are 32- and 64-bit versions of tomcatX.exe available; you must choose 
the one that matches the mode of the JVM you intend to use.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: 32-bit service on 64-bit windows?

2009-11-11 Thread Mladen Turk

On 11/11/09 20:27, André Warnier wrote:

David kerber wrote:

- 32-bit .exe programs seem not to run under 64-bit Windows, and
vice-versa 64-bit .exe programs not to run under 32-bit Windows.



Not true.
Like Charles said, tomcat6.exe must match the JVM
Even more tomcat6w.exe is always 32 bit


Regards
--
^TM


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