[JAVA] Access the war file in the root directory of Tomcat

procedure

  1. Rename the Tomcat ROOT directory
  2. File export in Eclipse
  3. Place the war file

Rename tomcat ROOT directory

Rename the ROOT directory under / var / lib / tomcat8 / webapp / to ROOT2

File export in eclipse

  1. Right click on the project name
  2. Click Export
  3. Select Web → war file and Next
  4. Destination → Reference → Save the file as "ROOT"

Place war file

Place the exported ROOT.war file under / var / lib / tomcat8 / webapp /.

About 10 seconds after placement, a new / var / lib / tomcat / webapp / ROOT directory is automatically created, and the contents of ROOT.war are expanded in it.

Recommended Posts

Access the war file in the root directory of Tomcat
Fix the file name of war to the one set in Maven
Format of the log output by Tomcat itself in Tomcat 8
Prepare the execution environment of Tomcat in IntelliJ Community
[Java] Check the JDK version of the built war file
[Java] Get the file in the jar regardless of the environment
Set the root URL when starting tomcat in intelliJ
Put the file in the properties of string in spring xml configuration
Access the network interface in Java
SCP transfer War file to Tomcat
It doesn't respond to the description in .js of the packs file
Replace the contents of the Jar file
Unzip the zip file in Java
Implementation of asynchronous processing in Tomcat
Get the public URL of a private Flickr file in Java
Try file locking in Ruby directory
[chown] How to change the owner of a file or directory
Order of processing in the program
How to get the length of an audio file in java
For the time being, run the war file delivered in Java with Docker
The story of forgetting to close a file in Java and failing
Examine the contents of the WAR file generated by the project created by Spring Initializr
Procedure to make the value of the property file visible in Spring Boot
Memo: [Java] If a file is in the monitored directory, process it.
Where is the home directory location of "Ubuntu"? (Solved in the comment section)
Sample program that returns the hash value of a file in Java
How to get the absolute path of a directory running in Java
Get the result of POST in Java
Directory information of DEFAULT_CERT_FILE in Mac ruby 2.0.0
The identity of params [: id] in rails
Memo: [Java] Check the contents of the directory
Static file access priority in Spring boot
Implementation of multi-tenant asynchronous processing in Tomcat
Summary of root classes in various languages
The story of AppClip support in Anyca
The story of writing Java in Emacs
[Java8] Search the directory and get the file
Write the movement of Rakefile in the runbook
A troublesome story when deleting the gems file created in the gem development directory.
Be careful about upgrade if you use | etc. in the URL of Tomcat
How to set environment variables in the properties file of Spring boot application
[Order method] Set the order of data in Rails
Has the content of useBodyEncodingForURI changed from Tomcat8?
The story of low-level string comparison in Java
[Java] Handling of JavaBeans in the method chain
JAVA: jar, aar, view the contents of the file
The story of making ordinary Othello in Java
About the idea of anonymous classes in Java
The ruby version is managed in the .rbenv / version file
[Java] Access the signed URL of s3 (signed version 2)
The story of learning Java in the first programming
Measure the size of a folder in Java
Feel the passage of time even in Java
Rename the package name of the existing jar file
[Java] Read the file in src / main / resources
Import files of the same hierarchy in Java
[Java] Integer information of characters in a text file acquired by the read () method
How to save a file with the specified extension under the directory specified in Java to the list
Sample code to assign a value in a property file to a field of the expected type
Create a Java Servlet and JSP WAR file to deploy to Apache Tomcat 9 in Gradle