I added some libraries to my JavaEE project and then deployed the application. I changed something and I got this error message in Eclipse:
Cannot Deploy ProjectName deploy is failing=Error occurred during deployment: Keys cannot be duplicate. Old value of this key property, nullwill be retained. Please see server.log for more details. java.lang.LinkageError: loader (instance of org/glassfish/web/loader/WebappClassLoader): attempted duplicate class definition for name: "org/glassfish/web/loader/JdbcLeakPrevention" loader (instance of org/glassfish/web/loader/WebappClassLoader): attempted duplicate class definition for name: "org/glassfish/web/loader/JdbcLeakPrevention"
I did some research and I found out that this is not an Eclipse bug. I work with Kepler, but I also tested Juno. Received the same error message. I downloaded Glassfish 3.1.2.2 and the message disappeared.
Why am I receiving this message?
java eclipse java-ee glassfish glassfish-4
galovics
source share