We are getting below exception while deploying Apps in WAS 7.0
We are using Spring 3.0 and Open JPA 2.0 , while app server restart folowwing errors are thrown.
We have defined presistence provider as below inpersistence.xml file as WAS 7.0 comes with its own JPA implemetation as well
<provider>org.apache.openjpa.persistence.Persisten ceProviderImpl</provider>
<jta-data-source>java:comp/env/WSOracleDS</jta-data-source>

Please help

[20/07/11 13:18:29:708 BST] 00000010 ContextLoader E org.springframework.web.context.ContextLoader initWebApplicationContext Context initialization failed
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'getVerificationLevelController': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'authService': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionDAO': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'wsEmf' defined in ServletContext resource [/WEB-INF/sivrws-database.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: interface com.ibm.ws.persistence.WsJpaEntityManagerFactory is not visible from class loader
at org.springframework.context.annotation.CommonAnnot ationBeanPostProcessor.postProcessAfterInstantiati on(CommonAnnotationBeanPostProcessor.java:262)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:978)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:485)
at java.security.AccessController.doPrivileged(Access Controller.java:202)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:455)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 51)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:169)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:170)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:413)
at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:735)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:369)
at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:251)
at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:190)
at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 45)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServle tContextCreated(WebApp.java:1681)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitia lizationFinish(WebApp.java:374)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initiali ze(WebAppImpl.java:299)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWeb Application(WebGroupImpl.java:100)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebAppl ication(VirtualHostImpl.java:166)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(W SWebContainer.java:731)
at com.ibm.ws.webcontainer.WSWebContainer.addWebAppli cation(WSWebContainer.java:616)
at com.ibm.ws.webcontainer.component.WebContainerImpl .install(WebContainerImpl.java:376)
at com.ibm.ws.webcontainer.component.WebContainerImpl .start(WebContainerImpl.java:668)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:1122)
at com.ibm.ws.runtime.component.DeployedApplicationIm pl.fireDeployedObjectStart(DeployedApplicationImpl .java:1319)
at com.ibm.ws.runtime.component.DeployedModuleImpl.st art(DeployedModuleImpl.java:609)
at com.ibm.ws.runtime.component.DeployedApplicationIm pl.start(DeployedApplicationImpl.java:944)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgrImpl.java:725)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:2046)
at com.ibm.ws.runtime.component.CompositionUnitMgrImp l.start(CompositionUnitMgrImpl.java:439)
at com.ibm.ws.runtime.component.CompositionUnitImpl.s tart(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImp l.start(CompositionUnitMgrImpl.java:382)
at com.ibm.ws.runtime.component.CompositionUnitMgrImp l.access$300(CompositionUnitMgrImpl.java:110)
at com.ibm.ws.runtime.component.CompositionUnitMgrImp l$CUInitializer.run(CompositionUnitMgrImpl.java:94 9)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_A synchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1563)
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'authService': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionDAO': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'wsEmf' defined in ServletContext resource [/WEB-INF/sivrws-database.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: interface com.ibm.ws.persistence.WsJpaEntityManagerFactory is not visible from class loader