Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink 2.5 and Websphere 8.5.5: "JVMVRFY013 class loading constraint violated" Error("java.lang.VerifyError: JVMVRFY013 class loading constraint violated" Error occurs with WebSphere Application Server and EclipseLink > = 2.5.0)
EclipseLink 2.5 and Websphere 8.5.5: "JVMVRFY013 class loading constraint violated" Error [message #1694114] Thu, 30 April 2015 15:16 Go to next message
Christian Egli is currently offline Christian EgliFriend
Messages: 1
Registered: April 2015
Junior Member
I have a simple Spring web application that I deploy on Websphere Application Server 8.5.5 that works fine with with EclipseLink 4.1. When I update the EclipseLink Version to 2.5.0 or above, I get a "java.lang.VerifyError: JVMVRFY013 class loading constraint violated" error.

I am aware that with EclipseLink 2.5++ I use JPA 2.1 that is not supported by Websphere 8.5.5, but I deployed my application by packaging the eclipselink.jar in the application ear as described in https://www.eclipse.org/eclipselink/documentation/2.5/solutions/websphere001.htm. I have also configured the Websphere class loader to load the classes with the application class loader first.

This is my stacktrace:
30.04.15 15:31:58:221 CEST] 00000065 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0014E: Uncaught service() exception root cause Faces Servlet: javax.servlet.ServletException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [root.ac]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'root.ac' defined in URL [wsjar:file:/D:/devsbb/websphere/was8_5/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/localhostNode01Cell/elApp-ear-0.0.1-SNAPSHOT.ear/lib/elApp-business-impl-0.0.1-SNAPSHOT.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [ch.sbb.esta.util.spring.ProfileClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'estaEntityManagerFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void ch.sbb.esta.core.persistence.emf.EstaLocalContainerEntityMangerFactoryBean.setEstaConfiguration(ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration[]); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration#0' defined in class path resource [eclipselink-persistence-context.xml]: Cannot create inner bean 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' of type [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter] while setting bean property 'jpaVendorAdapter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' defined in class path resource [eclipselink-persistence-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.VerifyError: JVMVRFY013 Integritätsbedingung für das Laden von Klassen nicht eingehalten; Klasse=org/eclipse/persistence/jpa/PersistenceProvider, Methode=getProviderUtil()Ljavax/persistence/spi/ProviderUtil;, PC=0
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
at org.omnifaces.filter.GzipResponseFilter.doFilter(GzipResponseFilter.java:149)
at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:77)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:960)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1064)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1385)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:194)
at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:3361)
at com.ibm.wsspi.webcontainer.collaborator.CollaboratorHelper.processSecurityPreInvokeException(CollaboratorHelper.java:143)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1127)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3878)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:461)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:528)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:314)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:285)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1864)
Caused by: org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [root.ac]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'root.ac' defined in URL [wsjar:file:/D:/devsbb/websphere/was8_5/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/localhostNode01Cell/elApp-ear-0.0.1-SNAPSHOT.ear/lib/elApp-business-impl-0.0.1-SNAPSHOT.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [ch.sbb.esta.util.spring.ProfileClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'estaEntityManagerFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void ch.sbb.esta.core.persistence.emf.EstaLocalContainerEntityMangerFactoryBean.setEstaConfiguration(ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration[]); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration#0' defined in class path resource [eclipselink-persistence-context.xml]: Cannot create inner bean 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' of type [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter] while setting bean property 'jpaVendorAdapter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' defined in class path resource [eclipselink-persistence-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.VerifyError: JVMVRFY013 Integritätsbedingung für das Laden von Klassen nicht eingehalten; Klasse=org/eclipse/persistence/jpa/PersistenceProvider, Methode=getProviderUtil()Ljavax/persistence/spi/ProviderUtil;, PC=0
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:387)
at org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:559)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:303)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1689)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:414)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:746)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1177)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:776)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1379)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2189)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:389)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:332)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:119)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:607)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5474)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5600)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:565)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1269)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:291)
at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1260)
at java.security.AccessController.doPrivileged(AccessController.java:300)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1254)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1092)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:813)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java:488)
at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java:322)
at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:65)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:733)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:522)
... 1 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'root.ac' defined in URL [wsjar:file:/D:/devsbb/websphere/was8_5/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/localhostNode01Cell/elApp-ear-0.0.1-SNAPSHOT.ear/lib/elApp-business-impl-0.0.1-SNAPSHOT.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [ch.sbb.esta.util.spring.ProfileClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'estaEntityManagerFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void ch.sbb.esta.core.persistence.emf.EstaLocalContainerEntityMangerFactoryBean.setEstaConfiguration(ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration[]); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration#0' defined in class path resource [eclipselink-persistence-context.xml]: Cannot create inner bean 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' of type [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter] while setting bean property 'jpaVendorAdapter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' defined in class path resource [eclipselink-persistence-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.VerifyError: JVMVRFY013 Integritätsbedingung für das Laden von Klassen nicht eingehalten; Klasse=org/eclipse/persistence/jpa/PersistenceProvider, Methode=getProviderUtil()Ljavax/persistence/spi/ProviderUtil;, PC=0
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:278)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1133)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1036)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:505)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:725)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:143)
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:382)
... 60 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [ch.sbb.esta.util.spring.ProfileClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'estaEntityManagerFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void ch.sbb.esta.core.persistence.emf.EstaLocalContainerEntityMangerFactoryBean.setEstaConfiguration(ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration[]); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration#0' defined in class path resource [eclipselink-persistence-context.xml]: Cannot create inner bean 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' of type [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter] while setting bean property 'jpaVendorAdapter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' defined in class path resource [eclipselink-persistence-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.VerifyError: JVMVRFY013 Integritätsbedingung für das Laden von Klassen nicht eingehalten; Klasse=org/eclipse/persistence/jpa/PersistenceProvider, Methode=getProviderUtil()Ljavax/persistence/spi/ProviderUtil;, PC=0
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:125)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:270)
... 73 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'estaEntityManagerFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void ch.sbb.esta.core.persistence.emf.EstaLocalContainerEntityMangerFactoryBean.setEstaConfiguration(ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration[]); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration#0' defined in class path resource [eclipselink-persistence-context.xml]: Cannot create inner bean 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' of type [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter] while setting bean property 'jpaVendorAdapter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' defined in class path resource [eclipselink-persistence-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.VerifyError: JVMVRFY013 Integritätsbedingung für das Laden von Klassen nicht eingehalten; Klasse=org/eclipse/persistence/jpa/PersistenceProvider, Methode=getProviderUtil()Ljavax/persistence/spi/ProviderUtil;, PC=0
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:326)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1204)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:956)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:747)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at ch.sbb.esta.util.spring.ProfileClassPathXmlApplicationContext.<init>(ProfileClassPathXmlApplicationContext.java:44)
at ch.sbb.esta.util.spring.ProfileClassPathXmlApplicationContext.<init>(ProfileClassPathXmlApplicationContext.java:29)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:85)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)
at java.lang.reflect.Constructor.newInstance(Constructor.java:541)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 75 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void ch.sbb.esta.core.persistence.emf.EstaLocalContainerEntityMangerFactoryBean.setEstaConfiguration(ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration[]); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration#0' defined in class path resource [eclipselink-persistence-context.xml]: Cannot create inner bean 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' of type [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter] while setting bean property 'jpaVendorAdapter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' defined in class path resource [eclipselink-persistence-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.VerifyError: JVMVRFY013 Integritätsbedingung für das Laden von Klassen nicht eingehalten; Klasse=org/eclipse/persistence/jpa/PersistenceProvider, Methode=getProviderUtil()Ljavax/persistence/spi/ProviderUtil;, PC=0
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:630)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:323)
... 92 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ch.sbb.esta.core.persistence.emf.EstaEntityManagerConfiguration#0' defined in class path resource [eclipselink-persistence-context.xml]: Cannot create inner bean 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' of type [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter] while setting bean property 'jpaVendorAdapter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' defined in class path resource [eclipselink-persistence-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.VerifyError: JVMVRFY013 Integritätsbedingung für das Laden von Klassen nicht eingehalten; Klasse=org/eclipse/persistence/jpa/PersistenceProvider, Methode=getProviderUtil()Ljavax/persistence/spi/ProviderUtil;, PC=0
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:290)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1471)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1216)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1081)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:931)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:904)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:587)
... 94 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter#5fe2c2c5' defined in class path resource [eclipselink-persistence-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.VerifyError: JVMVRFY013 Integritätsbedingung für das Laden von Klassen nicht eingehalten; Klasse=org/eclipse/persistence/jpa/PersistenceProvider, Methode=getProviderUtil()Ljavax/persistence/spi/ProviderUtil;, PC=0
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1095)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1040)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:505)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276)
... 107 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.VerifyError: JVMVRFY013 Integritätsbedingung für das Laden von Klassen nicht eingehalten; Klasse=org/eclipse/persistence/jpa/PersistenceProvider, Methode=getProviderUtil()Ljavax/persistence/spi/ProviderUtil;, PC=0
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1088)
... 111 more
Caused by: java.lang.VerifyError: JVMVRFY013 Integritätsbedingung für das Laden von Klassen nicht eingehalten; Klasse=org/eclipse/persistence/jpa/PersistenceProvider, Methode=getProviderUtil()Ljavax/persistence/spi/ProviderUtil;, PC=0
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:94)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:171)
at org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter.<init>(EclipseLinkJpaVendorAdapter.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:85)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)
at java.lang.reflect.Constructor.newInstance(Constructor.java:541)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 113 more
Re: EclipseLink 2.5 and Websphere 8.5.5: "JVMVRFY013 class loading constraint violated" Er [message #1694140 is a reply to message #1694114] Thu, 30 April 2015 20:33 Go to previous message
Joe Grassel is currently offline Joe GrasselFriend
Messages: 3
Registered: April 2015
Junior Member
There may not be a good answer for this. WAS 8.5.5 is a certified JEE 6 application server, which includes JPA 2.0. What you're seeing is the ClassLoader unable to reconcile the Interface differences between JPA 2.0 and 2.1 - Eclipselink 2.5.x is built against the 2.1 interfaces, and WebSphere 8.5.5 provides only the 2.0 interfaces.

You *might* be able to get away with running 2.1 on WAS 8.5.5 by adding the javaee7 jar containing the v2.1 javax.persistence.* to your application archive and setting the application ClassLoader to PARENT_LAST. HOWEVER, I seem to recall horrible things happening when javaee jars are placed into an application. Since you are using Spring, you *might* be able to get away with it by turning off the JPA processor, but this is getting into pretty messy and likely unsupported territory here (I wouldn't get my hopes up on this actually working):

Since I haven't posted enough messages yet to be able to link to non eclipse.org URLs, you will have to Google "PM26361: APPLICATIONS USING HIBERNATE MAY EXPERIENCE PERFORMANCE ISSUES DURING APPLICATION START" for the instructions on turning off JPA processing for selective applications. But it's basically adding a JVM property "com.ibm.websphere.persistence.ApplicationsExcludedFromJpaProcessing" with a value consisting of ':' separated application names (or "*" to turn off JPA processing for all applications.)

By in large, application servers are tightly coupled to the level of JEE they support and it's difficult to leverage a library that is at a newer spec level than the server supports.

However, WebSphere Liberty beta does provide native JPA 2.1 support and in fact includes EclipseLink 2.6 - you might want to look at that.
Previous Topic:BEST PRACTISE: Referencing Entities in persistence.xml (JAVA SE)?
Next Topic:Eclipselink connection error (trying to create too many connections)
Goto Forum:
  


Current Time: Fri Feb 26 21:18:19 GMT 2021

Powered by FUDForum. Page generated in 0.02080 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top