If you want to configure Application Manager in your Tomcat 9 then this blog may help you.
During Tomcat 9 installation, set username and password as mention below. After completion of installation you can access manager application via http://localhost:8090/manager/html/
If you forgot to setup username and password during the installation process then you can set it manually in the file
Now you don’t need to restart Tomcat Server in order to restart a single application or redeploy any single application. You can Start, Stop, Reload and Un-deploy any single application without restarting the whole TOMCAT SERVER.
In order to deploy an application MyFirstApp, you must set the Context Path and Artifact Directory Path or you can directly deploye a WAR file as seen below.
By default application manager uses tomcat’s default appBase i.e.
After successfully deployment, you must see your application in the Application List with your Context Path.
If anything goes wrong during the deployment process then you can look into the file
By default application max-size limit is 50MB. If your application size exceeds this limit than you can edit max-size limit manually in the file
During Tomcat 9 installation, set username and password as mention below. After completion of installation you can access manager application via http://localhost:8090/manager/html/
[TOMCAT_ROOT_DIR]/conf/tomcat-users.xml Put the following code in your tomcat-users.xml file.<tomcat-users>
<user username="tomcatadmin" password="tomcatadmin" roles="admin-gui,manager-gui"/>
</tomcat-users>
After successfully login you must see the following page.In order to deploy an application MyFirstApp, you must set the Context Path and Artifact Directory Path or you can directly deploye a WAR file as seen below.
By default application manager uses tomcat’s default appBase i.e.
[TOMCAT_ROOT_DIR]/webapps/ directory for application deployment. After successfully deployment, you must see your application in the Application List with your Context Path.
If anything goes wrong during the deployment process then you can look into the file
[TOMCAT_ROOT_DIR]/logs/manager.<currentDate>.txt for Exception. By default application max-size limit is 50MB. If your application size exceeds this limit than you can edit max-size limit manually in the file
[TOMCAT_ROOT_DIR]/webapps/manager/WEB-INF/web.xml find the following code and set the max-size limit as per your requirement. <multipart-config>
<!--50MB max -->
<max-file-size>52428800</max-file-size>
<max-request-size>52428800</max-request-size>
<file-size-threshold>0</file-size-threshold>
</multipart-config>
Note: If you find any mistake in above blog, kindly inform me in comment section. 

No comments:
Post a Comment