我使用 Glassfish 4.0 和 Spring 。Glassfish 启动时发出警告
WARNING: The web application [unknown] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
在java中更改代码并保存。显示此错误
java.lang.LinkageError: loader (instance of org/glassfish/web/loader/WebappClassLoader): attempted duplicate class definition for name: "org/glassfish/web/loader/JdbcLeakPrevention"
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
at org.glassfish.web.loader.WebappClassLoader.clearReferencesJdbc(WebappClassLoader.java:2107)
at org.glassfish.web.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:2042)
at org.glassfish.web.loader.WebappClassLoader.stop(WebappClassLoader.java:1939)
at
请帮帮我。这对我来说是紧急问题