开发者

Can Jetty pick up changes to WEB-INF/lib on hot deployment? How?

I am running several webapps on Jetty 6 through Apache. They are set to hot deploy using .xml files in the contexts/ directory. Those .xml files simply define WebAppContext instances and tell them where to look for a WAR file. `touch'-ing their contexts/.xml files picks up changes to JSPs defined开发者_C百科 in the relavnt WAR file, which is great.

The problem is that changes to the JARs contained in the WAR file's WEB-INF/lib folder are not picked up. I assume that this is because these JARs are cached somewhere. That assumption is based on the fact that restarting Jetty picks up the changes.

So, the question is: Is it possible to turn off this caching behavior or in some other way get WebAppContext instances to pick up library changes? If so, how?


JBoss hot deploy scanning doesn't check the lib folder:

http://community.jboss.org/wiki/HotDeployLibDirectory

Not sure if Jetty has the same behaviour, but, you could try moving one of your jars into the same folder as one of your jsps to see if this is the case.

If that's not an option then this might help:

http://www.jroller.com/larrywilliams/entry/jetty_hot_deploy


You need to set the scanInterval property to a number larger than zero.

See more here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜