• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAR file is locked when doing a remove

 
Charlie Craft
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have successfully deployed a webapp that has some JAR files in the <app>/WEB-INF/lib directory. When I click remove in tomcat manager for this webapp the application directory is not removed under <tomcat>/webapps because 2 JAR files remain in the <app>/WEB-INF/lib directory and are locked by tomcat. To remove them I have to shutdown tomcat. If they are not removed and tomcat is restarted it thinks it has a blank application.
Has anyone else come across this and is there any way to get the 'remove' to delete these JAR files so I don't have to shutdown tomcat and delete them manually?
 
Charlie Craft
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have found a workaround for this. The JAR files can be moved into the /shared/lib directory. Not ideal, but fixes the problem.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not so much that they're locked by tomcat, but your OS (you're using Windows?) I've had this problem with windows in the past.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic