|
From: Lancelot H. <lan...@ac...> - 2004-12-06 01:09:48
|
We can modify its source codes to accomplish this (let wrapper reload the configuration when restarting). Thanks Lance -----Original Message----- From: Todd Klaus [mailto:tod...@ac...] Sent: 2004?12?4? 10:30 To: wra...@li... Subject: Re-read wrapper.conf on restart? Hi, I am using Wrapper 3.0.5 and have the following classpath set in wrapper.conf: wrapper.java.classpath.1=../lib/*.jar wrapper.java.classpath.2=../lib/*.zip I would like to support upgrade capability in my application whereby new jars are sent to the application via JMS and written to the applications lib directory (referenced by the classpath above). As soon as the new jars are downloaded, I restart the app using WrapperManager.restart(). Unfortunately, it seems that the wrapper does not rebuild the classpath on restart, because I get ClassNotFound exceptions for classes referenced in the new jars after the restart. A complete shutdown and restart of the app works fine (but doesn't meet the goal of being fully automatic!). These are usually new third-party jars, so they were not in the classpath before the upgrade. I even tried programmatically modifying wrapper.conf to explicity add a reference to the new jar, like this: wrapper.java.classpath.3=../lib/newjar.zip but it seems that the wrapper doesn't even re-read wrapper.conf on a restart. Is there any way to force the wrapper to re-read the conf file? Any other way to accomplish this? Any comments/suggestions welcome! Thanks, Todd |