Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployed on GlassFish Server Open Source Edition 4.1.2 throws exception - server latest throws Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper #7

Closed
vidhya03 opened this issue Jan 14, 2018 · 1 comment

Comments

@vidhya03
Copy link
Owner

Deploying in GlassFish Server Open Source Edition 4.1.2

Successfully deployed however running test got error:

javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper

@vidhya03
Copy link
Owner Author

Source : https://konstpan.wordpress.com/2017/06/05/upgrade-eclipselink-on-glassfish-server/

The steps I followed :

  • Delete $GLASSFISH_INSTALLATION_DIR\glassfish\domains$YOUR_DOMAIN_NAME\osgi-cache folder

  • Delete all files starting with “org.eclipse.persistence” from $GLASSFISH_INSTALLATION_DIR\glassfish\modules
    In my glassfish instance i did the below 9 files
    org.eclipse.persistence.antlr.jar org.eclipse.persistence.asm.jar org.eclipse.persistence.core.jar org.eclipse.persistence.dbws.jar org.eclipse.persistence.jpa.jar org.eclipse.persistence.jpa.jpql.jar org.eclipse.persistence.jpa.modelgen.processor.jar org.eclipse.persistence.moxy.jar org.eclipse.persistence.oracle.jar

  • Download “EclipseLink 2.6.5 OSGi Bundles Zip” from http://www.eclipse.org/eclipselink/downloads/
    From the downloaded file copy all files starting with “org.eclipse.persistence” especially the above 9 files back to $GLASSFISH_INSTALLATION_DIR\glassfish\modules (source jar files are not required)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant