JPA – how do I change the eclipse link in glashfish 4.0?

I want to change eclipse link from 2.5.0 in glashfish 4.0 0 to 2.5 1. I have downloaded bundled downloaded and replaced the following jar files

> org. eclipse. persistence. antlr. jar > org. eclipse. persistence. jpa. jar > org. eclipse. persistence. asm. jar > org. eclipse. persistence. jpa. modelgen. jar > org. eclipse. persistence. core. jar > org. eclipse. persistence. oracle. jar > javax. persistence. jar

In $GlassFish_ Home / GlassFish / modules

After this operation, the version remains unchanged The following code,

String version = org.eclipse.persistence.Version.getVersion();
System.out.println("EclipseLink version : " + version);

Version 2.5.0 is still displayed 0

The bundle does not contain eclipse link-x.x.x.jar

What else needs to change? I'm using NetBeans 7.2 one

Solution

You forgot some documents, you need a complete list:

> org. eclipse. persistence. antlr. jar > org. eclipse. persistence. asm. jar > org. eclipse. persistence. core. jar > org. eclipse. persistence. dbws. jar > org. eclipse. persistence. jpa. jpql. jar > org. eclipse. persistence. jpa. jar > org. eclipse. persistence. jpa. modelgen. jar > org. eclipse. persistence. moxy. jar > org. eclipse. persistence. oracle. jar > javax. persistence. jar

You don't have to rename the file, you can delete it to org Eclipse and copy the required files to the modules folder This should solve the problem

Update: if it doesn't work, you may have to clear the OSGi cache To do this, shut down the server and delete the folder Felix

$GLASSFISH_HOME/glassfish/domains/domain/osgi-cache/

Restart the server and wait, it must read the OSGi module information to rebuild the cache

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>