启动Glassfish 4.0错误

时间:2013-10-24 18:54:19

标签: java spring java-ee glassfish

我使用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 

请帮帮我。对我来说是紧急问题

0 个答案:

没有答案