简体   繁体   English

仍在GlassFish中的未部署模块

[英]Undeployed modules still in GlassFish

After deploying an EAR module in GlassFish 4.1, I observed that it appeared to have loaded the previous version of some of the classes. 在GlassFish 4.1中部署EAR模块后,我观察到它似乎已经加载了某些类的先前版本。 It seems like GlassFish is caching previous classes. 好像GlassFish正在缓存先前的类。 Is it possible that GlassFish keeps a cache of old classes? GlassFish是否有可能保留旧类的缓存?

Yes this is quite possible, especially in Windows. 是的,这是完全有可能的,尤其是在Windows中。 The cause of some of these issues (in Windows and some Linux filesystems) is how filehandles are dealt with. 这些问题(在Windows和某些Linux文件系统中)的原因是如何处理文件句柄。 Typically, this doesn't stop classes from being unloaded in Linux, but often can with Windows. 通常,这不会阻止类在Linux中被卸载,但在Windows中通常可以。

To be 100% sure that classes are removed after an undeployment, restart GlassFish. 要100%确保取消部署后删除类,请重新启动GlassFish。

Payara Server has included a number of fixes around undeployment over the last year or so, so you may want to try that if you are still having problems. 在过去一年左右的时间里, Payara Server包含了许多有关取消部署的修复程序,因此,如果仍然有问题,您可能要尝试一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM