问题
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