How can I replace springloaded jar in Grails installation

点点圈 提交于 2021-01-28 14:09:09

问题


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)

How can I do that? I tried replacing the jar in Grails installation lib directory, and I got:

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

So it's still looking for the old 1.1.1 jar file.

Please advise


回答1:


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.



来源:https://stackoverflow.com/questions/25000803/how-can-i-replace-springloaded-jar-in-grails-installation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!