如何在Grails安装中替换弹簧加载的罐子 [英] How can I replace springloaded jar in Grails installation
问题描述
我的Grails 2.1.5应用程序引发异常java.lang.ClassCastException:java.beans.WeakIdentityMap.这似乎是一个已知问题,在某些论坛上建议的解决方案是用1.1.2替换弹簧加载的jar版本1.1.1(或降级Java版本,我宁愿不这样做)
My Grails 2.1.5 app throws exception java.lang.ClassCastException: java.beans.WeakIdentityMap. This seems to be a known problem, and the resolution advised on some forums is to replace springloaded jar version 1.1.1 with 1.1.2 (or to downgrade the java version, which I would rather not do)
我该怎么做?我尝试替换Grails安装lib目录中的jar,我得到了:
How can I do that? I tried replacing the jar in Grails installation lib directory, and I got:
打开zip文件或JAR清单丢失时出错:C:/grails-2.1.5/lib/org.springsource.springloaded/springloaded-core/jars/springloaded-core-1.1.1.jar
Error opening zip file or JAR manifest missing : C:/grails-2.1.5/lib/org.springs ource.springloaded/springloaded-core/jars/springloaded-core-1.1.1.jar
因此它仍在寻找旧的1.1.1 jar文件.
So it's still looking for the old 1.1.1 jar file.
请告知
推荐答案
我必须针对Grails 3.1.8进行此操作,我下载了 springloaded-1.2.8.RELEASE.jar
并替换了它备份先前的1.2.6版本后,在< GRAILS_HOME> \ lib \ org.springframework \ springloaded \ jars
中.
I had to do this for Grails 3.1.8, I downloaded springloaded-1.2.8.RELEASE.jar
and just replaced it in <GRAILS_HOME>\lib\org.springframework\springloaded\jars
after backing up the previous 1.2.6 version.
这篇关于如何在Grails安装中替换弹簧加载的罐子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!