This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get modified classes/resources reloaded from JARs  RSS feed

Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My JSP application uses a number of Java classes of my own. At the moment, I have not got around to wrapping them in a tag library or Java Beans, so the JSP includes little bits of Java to call my classes directly (I know - not the done thing).
Anyway, when I first developed the application, my Java classes were placed in the WEB-INF/classes directory of my application (under Tomcat 4.0). When I revised a class, Tomcat noticed this and reloaded it.
Now, due to the large number of classes, I've put them into a small number of JARs in WEB-INF/lib instead. The application works fine, but does not automatically reload classes if I update the JARs.
Can I get the behaviour that I want? Would creating Java Beans and/or tag libraries help (I am guessing not)?
All suggestions appreciated.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!