https://bz.apache.org/bugzilla/show_bug.cgi?id=65548
Bug ID: 65548 Summary: Webapp context not loaded after calling addServiced, check and removeServiced calls Product: Tomcat 9 Version: 9.0.52 Hardware: PC OS: Linux Status: NEW Severity: regression Priority: P2 Component: Manager Assignee: dev@tomcat.apache.org Reporter: dileepkumar8...@gmail.com Target Milestone: ----- Created attachment 38011 --> https://bz.apache.org/bugzilla/attachment.cgi?id=38011&action=edit Tomcat's JMX API Navigation We are currently using Tomcat 9.0.45 and a webapp context can be loaded dynamically when the following manager JMX operations are called in sequence: addServiced() check() removeServiced(). The same is not happening with Tomcat 9.0.52. Steps to reproduce: 1) Create a sample webapp (sample.war can be downloaded from here: https://tomcat.apache.org/tomcat-9.0-doc/appdev/sample/). 2) Turn off autoDeploy in server.xml. For example: <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false"> 3) Start the Tomcat and open manager UI (http://localhost:8080/manager/html). 4) Copy the sample.war (downloaded in step 1) and paste it in Tomcat's webapps directory. 5) Use jconsole for Tomcat's JMX APIs (Refer attachment). 6) Navigate to MBeans -> Catalina -> Deployer -> localhost -> Operations 7) Click on "addServiced" operation and provide the name of your war file in the "name" field ("sample" in this case) and click on "addServiced" button. "Method successfully invoked" popup comes up and click on "OK" button. 8) Similarly, click on "check" operation and provide the same name ("sample" in this case). Click on "check" button and the same popup described in step 7 comes up. Click on "OK" button. 9) Finally, click on "removeServiced" operation and provide the same name ("sample" in this case). Click on "removeServiced" button and the same popup described in step 7 comes up. Click on "OK" button. After these steps, reload Tomcat manager web UI (mentioned in step 3)and the UI should show the new webapp ("sample" webapp in this case). The "sample" webapp appears with the Tomcat 9.0.45 but not with Tomcat 9.0.52. Also tried by replacing "addServiced" operation with the new "tryAddServiced" operation but the issue is not resolved. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org