How to migrate the exploded Profiler.war (Profiler folder) from webapps to another server's webapps folder?

asked 21 Apr '15, 21:17

AKadakia's gravatar image

AKadakia
151
accept rate: 0%


The easiest/safest way to transport a webapp to another Tomcat is like this:

  1. "cd" to the tomcat/webapps directory or wherever the webapps have been deployed.

  2. If there is both a "Profiler" and an "Profiler.war" file in that directory, delete "Profiler.war" after taking a backup. Tomcat always uses the exploded WAR if it sees both plain and exploded webapps in its directory, so the existing war isn't what's actually being used.

  3. Create a new WAR from the exploded WAR, by using the following command "jar -cvf Profiler.war Profiler". This should JAR (ZIP) up the WAR into a warfile.

  4. Transfer the WAR file to the new Tomcat's webapps directory.

  5. Also copy the Profiler.xml to the new Tomcat's conf/Catalina/localhost. Change any options which need changing. For example, you might want the copy to talk to a different database.

link

answered 21 Apr '15, 21:20

AKadakia's gravatar image

AKadakia
151
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6
×1
×1
×1

Asked: 21 Apr '15, 21:17

Seen: 939 times

Last updated: 21 Apr '15, 21:20