You forgot some files, you need the 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 files, you can delete the old files starting with org.eclipse
and copy the required files to the modules
folder.
This should do the trick.
Update: If it doesn't work you may have to clear the OSGI cache. To do this shutdown the server and delete the folder felix
in
$GLASSFISH_HOME/glassfish/domains/domain/osgi-cache/
Restart the server and wait a moment, it'll have to read the OSGI module information to rebuild the cache.