RE: Moving tomcat Ver 6.0

2015-01-08 Thread Caldarale, Charles R
> From: Nick Wall [mailto:nick.w...@mvtcanada.com] 
> Subject: RE: Moving tomcat Ver 6.0

> You mention - Install the java sdk, set the %JAVA_HOME% system environment 
> variable?  

> Which SDK should I use ? and from where from?

> I downloaded the latest SDK from the oracle site "jave_ee_sdk-7u1" is this 
> the correct one ?

No, for several reasons:

1) You don't need an SDK or JDK; a JRE is all that's necessary to run Tomcat.

2) You definitely don't want the EE version (an SDK), since that comes with a 
lot of junk that can conflict with Tomcat classes if you're not careful.

3) Java 7 will only be available until April, so you're looking at a dead end 
there.

Undo whatever you did, and go here to get a more appropriate JVM:

http://java.com/en/download/manual.jsp

You normally do not need to set JAVA_HOME or JRE_HOME, as long as the JVM is 
properly installed and not just copied into a directory somewhere.

 - 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: Moving tomcat Ver 6.0

2015-01-08 Thread Nick Wall
Hi All 
New year so happy new year and im back at the install 
Thanks Leo for your step by step 

You mention - Install the java sdk, set the %JAVA_HOME% system environment 
variable?  Which SDK should I use ? and from where from?
I downloaded the latest SDK from the oracle site “jave_ee_sdk-7u1” is this the 
correct one ?

Cheers for now – Nick


-Original Message-
From: Leo Donahue [mailto:donahu...@gmail.com] 
Sent: November-05-14 1:31 PM
To: Tomcat Users List
Subject: Re: Moving tomcat Ver 6.0

On Wed, Nov 5, 2014 at 2:53 PM, Nick Wall  wrote:

> -Original Message-
> From: Leo Donahue [mailto:donahu...@gmail.com]
>
> >
> I kinda wonder though if there is a windows service associated with 
> this Tomcat.  Do you see anything called Tomcat6 in the windows services 
> panel?
>
>
> >>
> Leo
> Yes I just  checked and there is a service running called Apache 
> Tomcat As you can tell I have no clue to this installation :)
>
> Nick
>

Generic steps:

First step would be to decide whether you want to deploy a 32bit or 64bit 
version of Tomcat.

1.  Download the latest Tomcat (32bit or 64bit, your decision) 1.b  Determine 
whether you want to download the zip or windows installer version of that 
architecture.  In your case, probably the later.
2.  Download the latest java sdk (same architecture as you picked above).
3.  Install the java sdk, set the %JAVA_HOME% system environment variable.
if you need help, ask.
4.  Install Tomcat using the windows service installer.  If you used a specific 
windows user account to run the previous service, make sure you set that in in 
the service properties.
5.  In your previous Tomcat installation, you need to take note of all of the 
settings and apply them to your new install.  This is the hard part.
You will want to compare the following files in the old and new installs:

tomcat-install-directory/conf:

context.xml
server.xml
tomcat-users.xml
web.xml

tomcat-install-directory/bin  run tomcat6w.exe you are looking for any custom 
settings for memory and other options...
(trying to recall the exact names of the tabs at the moment, where I am now we 
block Tomcat because we use a different web server, can't even install it 
here.. sorry list)

6.  Copy your webapps from the Tomcat6 webapps dir to Tomcat8 web apps dir.  I 
would also investigate any custom settings to the 
webapps/manager/META-INF/context.xml in the previous Tomcat6.  You don't know 
if there was a custom valve or something applied in there other than the 
default.

6.b  (Optional) Get rid of the docs and examples directories in your new 
Tomcat, or move them somewhere else if you want to keep them.

7.  Make sure you copy the old ROOT web app directory to the new Tomcat.

8.  Hard to say, but you might also have had custom jar files in the
previous tomcat6-install-directory/lib   Only way to know is to compare
what was in there.

This sucks that you have no documentation on the previous install, makes your 
life a little harder.  I'm sure others will chime in with things I have 
forgotten.

leo


RE: Moving tomcat Ver 6.0

2014-11-05 Thread Nick Wall
Thanks all so far I will take a look at this again tomorrow and see what I can 
figure out 
Nick 


-Original Message-
From: Leo Donahue [mailto:donahu...@gmail.com] 
Sent: November-05-14 1:31 PM
To: Tomcat Users List
Subject: Re: Moving tomcat Ver 6.0

On Wed, Nov 5, 2014 at 2:53 PM, Nick Wall  wrote:

> -Original Message-
> From: Leo Donahue [mailto:donahu...@gmail.com]
>
> >
> I kinda wonder though if there is a windows service associated with 
> this Tomcat.  Do you see anything called Tomcat6 in the windows services 
> panel?
>
>
> >>
> Leo
> Yes I just  checked and there is a service running called Apache 
> Tomcat As you can tell I have no clue to this installation :)
>
> Nick
>

Generic steps:

First step would be to decide whether you want to deploy a 32bit or 64bit 
version of Tomcat.

1.  Download the latest Tomcat (32bit or 64bit, your decision) 1.b  Determine 
whether you want to download the zip or windows installer version of that 
architecture.  In your case, probably the later.
2.  Download the latest java sdk (same architecture as you picked above).
3.  Install the java sdk, set the %JAVA_HOME% system environment variable.
if you need help, ask.
4.  Install Tomcat using the windows service installer.  If you used a specific 
windows user account to run the previous service, make sure you set that in in 
the service properties.
5.  In your previous Tomcat installation, you need to take note of all of the 
settings and apply them to your new install.  This is the hard part.
You will want to compare the following files in the old and new installs:

tomcat-install-directory/conf:

context.xml
server.xml
tomcat-users.xml
web.xml

tomcat-install-directory/bin  run tomcat6w.exe you are looking for any custom 
settings for memory and other options...
(trying to recall the exact names of the tabs at the moment, where I am now we 
block Tomcat because we use a different web server, can't even install it 
here.. sorry list)

6.  Copy your webapps from the Tomcat6 webapps dir to Tomcat8 web apps dir.  I 
would also investigate any custom settings to the 
webapps/manager/META-INF/context.xml in the previous Tomcat6.  You don't know 
if there was a custom valve or something applied in there other than the 
default.

6.b  (Optional) Get rid of the docs and examples directories in your new 
Tomcat, or move them somewhere else if you want to keep them.

7.  Make sure you copy the old ROOT web app directory to the new Tomcat.

8.  Hard to say, but you might also have had custom jar files in the
previous tomcat6-install-directory/lib   Only way to know is to compare
what was in there.

This sucks that you have no documentation on the previous install, makes your 
life a little harder.  I'm sure others will chime in with things I have 
forgotten.

leo


Re: Moving tomcat Ver 6.0

2014-11-05 Thread Leo Donahue
On Wed, Nov 5, 2014 at 2:53 PM, Nick Wall  wrote:

> -Original Message-
> From: Leo Donahue [mailto:donahu...@gmail.com]
>
> >
> I kinda wonder though if there is a windows service associated with this
> Tomcat.  Do you see anything called Tomcat6 in the windows services panel?
>
>
> >>
> Leo
> Yes I just  checked and there is a service running called Apache Tomcat
> As you can tell I have no clue to this installation :)
>
> Nick
>

Generic steps:

First step would be to decide whether you want to deploy a 32bit or 64bit
version of Tomcat.

1.  Download the latest Tomcat (32bit or 64bit, your decision)
1.b  Determine whether you want to download the zip or windows installer
version of that architecture.  In your case, probably the later.
2.  Download the latest java sdk (same architecture as you picked above).
3.  Install the java sdk, set the %JAVA_HOME% system environment variable.
if you need help, ask.
4.  Install Tomcat using the windows service installer.  If you used a
specific windows user account to run the previous service, make sure you
set that in in the service properties.
5.  In your previous Tomcat installation, you need to take note of all of
the settings and apply them to your new install.  This is the hard part.
You will want to compare the following files in the old and new installs:

tomcat-install-directory/conf:

context.xml
server.xml
tomcat-users.xml
web.xml

tomcat-install-directory/bin  run tomcat6w.exe
you are looking for any custom settings for memory and other options...
(trying to recall the exact names of the tabs at the moment, where I am now
we block Tomcat because we use a different web server, can't even install
it here.. sorry list)

6.  Copy your webapps from the Tomcat6 webapps dir to Tomcat8 web apps
dir.  I would also investigate any custom settings to the
webapps/manager/META-INF/context.xml in the previous Tomcat6.  You don't
know if there was a custom valve or something applied in there other than
the default.

6.b  (Optional) Get rid of the docs and examples directories in your new
Tomcat, or move them somewhere else if you want to keep them.

7.  Make sure you copy the old ROOT web app directory to the new Tomcat.

8.  Hard to say, but you might also have had custom jar files in the
previous tomcat6-install-directory/lib   Only way to know is to compare
what was in there.

This sucks that you have no documentation on the previous install, makes
your life a little harder.  I'm sure others will chime in with things I
have forgotten.

leo


Re: Moving tomcat Ver 6.0

2014-11-05 Thread Leo Donahue
Nick,

On Wed, Nov 5, 2014 at 2:55 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Nick,
>
> On 11/5/14 2:48 PM, Nick Wall wrote:
> > We have a Win server 2003 running Tomcat and our software I need
> > to move this to a new win 2008 R2 server
> >
> > Is there an easy way to move everything over etc.
> >
> > Looking at easiest way to move everything over.
>
> It depends upon how you have everything set up. If you have a mostly
> default configuration and all your web applications are deployed into
> Tomcat's webapps/ directory, then you should be able to just copy the
> whole Tomcat directory from one machine to another.
>
> There are a few caveats:
>
> 1. If you are switching architectures (e.g. 32-bit to 64-bit, IA64 to
> x86_64, etc.) and you are using the tcnative library, then you'll have
> to make sure you place the library that matches your destination
> architecture into the right place (usually Tomcat's bin/ directory).
>
> 2. If you are running Tomcat as a Windows Service, then you'll have to
> re-register the service on the target machine once you've moved the
> files over. You can get a lot of mileage out of running the following
> on the command-line of the destination server:
>
>   C:\> SET CATALINA_HOME=C:\Path\To\Tomcat
>   C:\> SET CATALINA_BASE=C:\Path\To\Tomcat
>   C:\> %CATALINA_HOME%\bin\service.bat install
>
> You might want to run CATALINA_HOME\bin\tomcat6w.exe on the old
> machine and make sure all your settings are copied-over to the new one.
>

Yes.  I think I told you to check tomcat7w.exe.  Chris is correct, it would
be tomcat6w.exe, since you are on version 6 something.


>
> 3. You may have net networking components of services on the
> destination machine, so make sure you don't have any port conflicts.
> The easiest way to check for this is to start Tomcat and look at the
> catalina.out log file in Tomcat's logs/ directory. If it doesn't say
> anything about not being able to bind to a port, then you should be okay.
>

You can also run at the command prompt:  netstat -ano
to see what ports are being used and by what process.


RE: Moving tomcat Ver 6.0

2014-11-05 Thread Caldarale, Charles R
> From: Nick Wall [mailto:nick.w...@mvtcanada.com] 
> Subject: RE: Moving tomcat Ver 6.0

> Can I just copy the folder/files you mention and put in the new installation 
> on the 2008 server ?

Never, never, never copy configuration files from one version of Tomcat to 
another.  The properties change drastically between levels, as do some of the 
defaults.  You need to examine each .xml file in your current installation, 
read the documentation for that level and the new level, and then create the 
appropriate equivalent for the new one.

 - 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: Moving tomcat Ver 6.0

2014-11-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Nick,

On 11/5/14 2:48 PM, Nick Wall wrote:
> We have a Win server 2003 running Tomcat and our software I need
> to move this to a new win 2008 R2 server
> 
> Is there an easy way to move everything over etc.
> 
> Looking at easiest way to move everything over.

It depends upon how you have everything set up. If you have a mostly
default configuration and all your web applications are deployed into
Tomcat's webapps/ directory, then you should be able to just copy the
whole Tomcat directory from one machine to another.

There are a few caveats:

1. If you are switching architectures (e.g. 32-bit to 64-bit, IA64 to
x86_64, etc.) and you are using the tcnative library, then you'll have
to make sure you place the library that matches your destination
architecture into the right place (usually Tomcat's bin/ directory).

2. If you are running Tomcat as a Windows Service, then you'll have to
re-register the service on the target machine once you've moved the
files over. You can get a lot of mileage out of running the following
on the command-line of the destination server:

  C:\> SET CATALINA_HOME=C:\Path\To\Tomcat
  C:\> SET CATALINA_BASE=C:\Path\To\Tomcat
  C:\> %CATALINA_HOME%\bin\service.bat install

You might want to run CATALINA_HOME\bin\tomcat6w.exe on the old
machine and make sure all your settings are copied-over to the new one.

3. You may have net networking components of services on the
destination machine, so make sure you don't have any port conflicts.
The easiest way to check for this is to start Tomcat and look at the
catalina.out log file in Tomcat's logs/ directory. If it doesn't say
anything about not being able to bind to a port, then you should be okay.

> Or if you are familiar with this and can assist setting up and
> moving could look at that possibility as well

You can contact folks off-list if they invite you to do so. I'm not a
great resource for Windows deployments, but I'll happily take your
money and help you out ;)

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUWo7CAAoJEBzwKT+lPKRYZsMP/jIK+bNJpQ+YFMXXxBkXQloc
JZonapaGyQhMx9sfYph/vjMwYhfEIAHktbyHqL962hpzSOfDf5bP11HX5UuJY66V
PswNQNXhnyZbPHFVvItjBLv18+UwBClGxzgjjrcQXuzInLmyPdine6gzLxrWmPRL
N00qCrKgWQh0bXT3C61xnmMTtj40aRGehZKwH1MiuMHTrnr0Ass5feqzMwO4JEgy
u/BKzm8qcg36OCR8dvZ4XSl6TeDcDGakQWai25SXZUnNix/dmfBiMdsLXEBdAsCY
LZyyqKj0d1G3iVBqqw1E+4qdKtCv5dXgBNz6qkQFpV9Z2isNGNvSezxympvX8VxD
WV8CeYpuSJ5nOW2ukWjpuq+tJw3RF7HvR1uqJpkyQSJ85smc16Vri8H2PudjZN3/
hMyLlTWwEBOotFB4nHaJfSVQ0PfwuZxngk4PWjhi7mhOkSIsKX9FoghtJ/zWJCjR
5X5s2BwaytE9zxlsiyhM/C9cMdW2bxeQ5wbb5ROCrE97V1yvNZRyOvfd4UCE+POd
Ora6NHbyh07rQJDmin7nBcYVTtLU9wtEfEvnMJH4/63zWN5xjzmlK0by9eBn9vbE
Climj9nyVNquC1rj12bP6bZi57QXrRUUyyc/RPd3WKY/9z45Z94xAtu/Vn/d/4EN
FFg8R/OQcTXO3kPQMjJw
=22/F
-END PGP SIGNATURE-

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



RE: Moving tomcat Ver 6.0

2014-11-05 Thread Nick Wall
-Original Message-
From: Leo Donahue [mailto:donahu...@gmail.com] 
Sent: November-05-14 12:47 PM
To: Tomcat Users List
Subject: Re: Moving tomcat Ver 6.0

On Wed, Nov 5, 2014 at 2:36 PM, Nick Wall  wrote:

> -Original Message-
> From: Leo Donahue [mailto:donahu...@gmail.com]
> Sent: November-05-14 12:32 PM
> To: Tomcat Users List
> Subject: Re: Moving tomcat Ver 6.0
>
> On Wed, Nov 5, 2014 at 1:48 PM, Nick Wall  wrote:
>
> > Hi All
> > Sorry new user to this
> > We have a Win server 2003 running Tomcat and our software I need to 
> > move this to a new win 2008 R2 server Is there an easy way to move 
> > everything over etc.
> > Looking at easiest way to move everything over.
> >
> > Or if you are familiar with this and can assist setting up and 
> > moving could look at that possibility as well
> >
> > Nick Wall  AScT
> > IT Manager
> > nick.w...@mvtcanada.com
> >
> >
> You might as well consider getting the latest version of Tomcat while 
> you're at it, and then moving your webapps to that new installation.
>
> You will want to check the customizations (if you made any) in 
> web.xml, server.xml, tomcat-users.xml and anything under 
> conf/Catalina/localhost that you placed there intentionally in the 2003 
> Tomcat installation.
>
> Don't forget to use the same service account, if you created one.
>
> You will also want to check the 2003 tomcat7w.exe for any custom 
> options you used there, like memory settings, etc.
>
> Leo
>
> >>
> HI Leo
> Thanks for the reply and info :)
>
> Can I just copy the folder/files you mention and put in the new 
> installation on the 2008 server ?
>

If the installation was done using the Tomcat zip version and it is not running 
as a windows service, yes, you should be able to do that.  Don't put all your 
eggs in this basket for the moment, you need more info.


>
> As for a service account I have no idea if one exists  as this was 
> installed about 5 yrs ago and no one is left in the company that knows 
> anything about it - Hence why I'm on this :) lol
>
> Nick
>
>
I kinda wonder though if there is a windows service associated with this 
Tomcat.  Do you see anything called Tomcat6 in the windows services panel?


>>
Leo 
Yes I just  checked and there is a service running called Apache Tomcat 
As you can tell I have no clue to this installation :) 

Nick


Re: Moving tomcat Ver 6.0

2014-11-05 Thread Leo Donahue
On Wed, Nov 5, 2014 at 2:36 PM, Nick Wall  wrote:

> -Original Message-
> From: Leo Donahue [mailto:donahu...@gmail.com]
> Sent: November-05-14 12:32 PM
> To: Tomcat Users List
> Subject: Re: Moving tomcat Ver 6.0
>
> On Wed, Nov 5, 2014 at 1:48 PM, Nick Wall  wrote:
>
> > Hi All
> > Sorry new user to this
> > We have a Win server 2003 running Tomcat and our software I need to
> > move this to a new win 2008 R2 server Is there an easy way to move
> > everything over etc.
> > Looking at easiest way to move everything over.
> >
> > Or if you are familiar with this and can assist setting up and moving
> > could look at that possibility as well
> >
> > Nick Wall  AScT
> > IT Manager
> > nick.w...@mvtcanada.com
> >
> >
> You might as well consider getting the latest version of Tomcat while
> you're at it, and then moving your webapps to that new installation.
>
> You will want to check the customizations (if you made any) in web.xml,
> server.xml, tomcat-users.xml and anything under conf/Catalina/localhost
> that you placed there intentionally in the 2003 Tomcat installation.
>
> Don't forget to use the same service account, if you created one.
>
> You will also want to check the 2003 tomcat7w.exe for any custom options
> you used there, like memory settings, etc.
>
> Leo
>
> >>
> HI Leo
> Thanks for the reply and info :)
>
> Can I just copy the folder/files you mention and put in the new
> installation on the 2008 server ?
>

If the installation was done using the Tomcat zip version and it is not
running as a windows service, yes, you should be able to do that.  Don't
put all your eggs in this basket for the moment, you need more info.


>
> As for a service account I have no idea if one exists  as this was
> installed about 5 yrs ago and no one is left in the company that knows
> anything about it - Hence why I'm on this :) lol
>
> Nick
>
>
I kinda wonder though if there is a windows service associated with this
Tomcat.  Do you see anything called Tomcat6 in the windows services panel?


RE: Moving tomcat Ver 6.0

2014-11-05 Thread Nick Wall
-Original Message-
From: Leo Donahue [mailto:donahu...@gmail.com] 
Sent: November-05-14 12:32 PM
To: Tomcat Users List
Subject: Re: Moving tomcat Ver 6.0

On Wed, Nov 5, 2014 at 1:48 PM, Nick Wall  wrote:

> Hi All
> Sorry new user to this
> We have a Win server 2003 running Tomcat and our software I need to 
> move this to a new win 2008 R2 server Is there an easy way to move 
> everything over etc.
> Looking at easiest way to move everything over.
>
> Or if you are familiar with this and can assist setting up and moving 
> could look at that possibility as well
>
> Nick Wall  AScT
> IT Manager
> nick.w...@mvtcanada.com
>
>
You might as well consider getting the latest version of Tomcat while you're at 
it, and then moving your webapps to that new installation.

You will want to check the customizations (if you made any) in web.xml, 
server.xml, tomcat-users.xml and anything under conf/Catalina/localhost that 
you placed there intentionally in the 2003 Tomcat installation.

Don't forget to use the same service account, if you created one.

You will also want to check the 2003 tomcat7w.exe for any custom options you 
used there, like memory settings, etc.

Leo

>>
HI Leo 
Thanks for the reply and info :)

Can I just copy the folder/files you mention and put in the new installation on 
the 2008 server ?

As for a service account I have no idea if one exists  as this was installed 
about 5 yrs ago and no one is left in the company that knows anything about it 
- Hence why I'm on this :) lol 

Nick 



Re: Moving tomcat Ver 6.0

2014-11-05 Thread Leo Donahue
On Wed, Nov 5, 2014 at 1:48 PM, Nick Wall  wrote:

> Hi All
> Sorry new user to this
> We have a Win server 2003 running Tomcat and our software I need to move
> this to a new win 2008 R2 server
> Is there an easy way to move everything over etc.
> Looking at easiest way to move everything over.
>
> Or if you are familiar with this and can assist setting up and moving
> could look at that possibility as well
>
> Nick Wall  AScT
> IT Manager
> nick.w...@mvtcanada.com
>
>
You might as well consider getting the latest version of Tomcat while
you're at it, and then moving your webapps to that new installation.

You will want to check the customizations (if you made any) in web.xml,
server.xml, tomcat-users.xml and anything under conf/Catalina/localhost
that you placed there intentionally in the 2003 Tomcat installation.

Don't forget to use the same service account, if you created one.

You will also want to check the 2003 tomcat7w.exe for any custom options
you used there, like memory settings, etc.

leo


Moving tomcat Ver 6.0

2014-11-05 Thread Nick Wall
Hi All
Sorry new user to this
We have a Win server 2003 running Tomcat and our software I need to move this 
to a new win 2008 R2 server
Is there an easy way to move everything over etc. 
Looking at easiest way to move everything over.

Or if you are familiar with this and can assist setting up and moving could 
look at that possibility as well 

Nick Wall  AScT
IT Manager 
nick.w...@mvtcanada.com



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