java.lang.IllegalStateExceptThis loader has been closed and should not be in use
今天用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...)重新启动就好了