Ibm liberty app redeployment of war with mbeans fail with below error, war fully copied to dropin but due this error, war not exploding at all.could see few jars from previous installment in exploded/appname/web-inf/lib folder.
How to resolve this issue, is there any way to explicitly delete exploded war with mbean?
-----Start of DE processing----- = [2/10/21, 23:49:58:526 IST]
Exception = java.io.IOException
Source = com.ibm.ws.app.manager.war.internal.WARDeployedAppInfoFactoryImpl
probeid = 113
Stack Dump = java.io.IOException: Failed to delete [ C:\IBM\WebSphere\Liberty\usr\servers\Libertyhost\apps\expanded\test.war ] because [ C:\IBM\WebSphere\Liberty\usr\servers\Libertyhost\apps\expanded\test.war\WEB-INF\lib\com.us.tracking-21.2.0.1.jar ] could not be deleted.
at com.ibm.ws.app.manager.war.internal.WARDeployedAppInfoFactoryImpl.expand(WARDeployedAppInfoFactoryImpl.java:71)
at com.ibm.ws.app.manager.war.internal.WARDeployedAppInfoFactoryImpl.createDeployedAppInfo(WARDeployedAppInfoFactoryImpl.java:107)
at com.ibm.ws.app.manager.war.internal.WARDeployedAppInfoFactoryImpl.createDeployedAppInfo(WARDeployedAppInfoFactoryImpl.java:35)
at com.ibm.ws.app.manager.war.internal.WARApplicationHandlerImpl.setUpApplicationMonitoring(WARApplicationHandlerImpl.java:50)
at com.ibm.ws.app.manager.internal.statemachine.StartAction.execute(StartAction.java:139
looks like few jars are locked by the server and redeployment fails.