Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: migrate Apache Tomcat from server 2008 r2 to new server 2012 |
|
Author |
|
jimleslie77
Joined: 02 Dec 2020 Posts: 3 Location: UK
|
Posted: Wed 02 Dec '20 16:24 Post subject: migrate Apache Tomcat from server 2008 r2 to new server 2012 |
|
|
Hello And thank in advance,
would anybody know of the steps to take to move a working apache tomcat 7 web site from a 32bit windows server 2008 r2, to a new (not upgrade path) 64bt windows server 2012 installa.
Jim |
|
Back to top |
|
tangent Moderator
Joined: 16 Aug 2020 Posts: 348 Location: UK
|
Posted: Wed 02 Dec '20 23:17 Post subject: |
|
|
Hmm, I doubt you can just 'move' your Tomcat application from 32 bit server 2008, to 64 bit server 2012.
Firstly, you don't say if your users connect directly to Tomcat running as a web server, or if you are using an instance of Apache to provide the front end, and proxy to your Tomcat using mod_jk. From a security and flexibility perspective, I'd hope it's the latter, which is what I'd recommend as a 'migrate' path.
Secondly, does your tomcat application run under a 32 bit or 64 bit JVM? Well behaved applications should cope with both, but I have met some that are 32 bit specific. Either way, you'll need to review your JVM options and test.
My recommendation would be to set up Tomcat to run on your 2012 server as required (32 or 64 bit), and configure it to listen only on the loopback interface to prevent any direct remote connections. Next, setup up a 64 bit instance of Apache on your 2012 server, with appropriate frontend security, and proxy to the Tomcat on the loopback interface on the appropriate port. I'd use binary AJP (port 8009) via the Apache mod_jk module, otherwise HTTP proxy.
Using a separate instance of Apache gives you far more flexibility to decouple the application from the web front end services. You can put up service maintenance pages, revise the web front end security, logging, etc.
Using this approach means you can prepare and test the revised environment, and then migrate the live service (via a DNS update?) when ready. |
|
Back to top |
|
jimleslie77
Joined: 02 Dec 2020 Posts: 3 Location: UK
|
Posted: Thu 03 Dec '20 15:31 Post subject: |
|
|
Thanks for the info Tangent.
I think (appologies im no where near a Tomcat expert) I cant see any MOD_JK file anywhere on the server in question, so i believe usere will be connecting directly to a web page/site hosted directly on tomcat.
Our application is current running on a 32bit os, so therefore will be using a 32bit version of java (currently JRE7).
is there a backup/restore process from within tomcat that can be used to backup the current web config and restore on the new server? |
|
Back to top |
|
tangent Moderator
Joined: 16 Aug 2020 Posts: 348 Location: UK
|
Posted: Thu 03 Dec '20 23:38 Post subject: |
|
|
As you've described it, it appears you probably don't have an instance of Apache web server in front of your Tomcat application server, and despite the name, Apache Tomcat is a completely separate product to Apache Web Server.
Since this site is primarily an Apache Web Server forum, not Apache Tomcat or Middleware in general, I reckon the moderators won't appreciate a lengthy discussion over the issues of migrating Tomcat applications from one platform to another, or putting robust web proxy services in front of them.
Assuming you've got documentation that describes how your application server has been installed and configured, along with how your applications are deployed on Tomcat, WAR files, serverl.xml settings, database connections, etc. then that has to be your starting point for creating a duplicate environment on server 2012. There is no native backup / restore feature in Tomcat per se, but Tomcat is very easy to install, and you should be able to redeploy your application on a new instance with little difficulty.
You don't say how big your system is, but I'm guessing it's a small setup internal to a company, and not Internet facing. Either way, if you've been tasked to migrate this application to Server 2012, then you're entering the realms of Middleware support, and have got quite a steep but rewarding learning curve in front of you. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 07 Dec '20 15:52 Post subject: |
|
|
I think tangents' idea is the correct way. Set up a parallel installation and deploy your code. Once checked it is running you can change the DNS or give users the new IP. |
|
Back to top |
|
jimleslie77
Joined: 02 Dec 2020 Posts: 3 Location: UK
|
Posted: Wed 09 Dec '20 13:33 Post subject: |
|
|
we dont use apache web server ibn front of tomcat app server. we use IIS for web services |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 09 Dec '20 14:04 Post subject: |
|
|
I meant install a parallel tomcat instance |
|
Back to top |
|
ApacheAttackHelicopter
Joined: 30 Apr 2023 Posts: 1 Location: United Kingdom, London
|
Posted: Sun 30 Apr '23 19:03 Post subject: Moving Apache off 2008 R2 in 2023... |
|
|
It would be great for a conclusion to this one / advice tips.
I am having a play around this (later than 2012 R2, even out to 2016 / 2019) and I am happy to give you the journey I go on without any sensitive bits. |
|
Back to top |
|
|
|
|
|
|