ITeye博客

java.lang.IllegalStateExceptThis loader has been closed and should not be in use

rommal7090 · 2010-03-26 22:33 · java · 企业架构 · Markdown

今天用OC4J重新deploy一个project以后出现了

Caused by: java.lang.IllegalStateException: ClassLoader xxxx: This loader has been closed and should not be in use.

网上找了下发现是由于我们使用了一个VM Cache,当我们undeploy project后,Cache的instance还在运行,当project重新deploy以后,它会访问这个cache instance,但是这个cache instance里面cache的java class 之类的早已不存在,故会报 "This loader has been closed and should not be in use".

 

这时候将你的容器(oc4j,weblogic,websphere...)重新启动就好了

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。