• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAR file is locked when doing a remove

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic