Weblogic 12 + Spring Data JPA + CDI issues -


i trying set-up simple crud web application (war) cdi , spring data jpa (1.8.2.release) on weblogic 12c (12.1.3) facing issues.

more following exception when introduce spring data repository.

jan 27, 2016 7:08:08 pm org.springframework.data.jpa.repository.cdi.jparepositoryextension <init> info: activating cdi extension spring data jpa repositories. jan 27, 2016 7:08:08 pm org.springframework.data.jpa.repository.cdi.jparepositoryextension <init> info: activating cdi extension spring data jpa repositories. jan 27, 2016 7:08:08 pm org.springframework.data.jpa.repository.cdi.jparepositoryextension afterbeandiscovery info: registering bean 'eu.emsa.hazmat.chd.repositories.chdsubstancedemorepository' qualifiers [@javax.enterprise.inject.any(), @javax.enterprise.inject.default()]. <jan 27, 2016 7:08:08 pm eet> <error> <deployer> <bea-149265> <failure occurred in execution of deployment request id "1179319416383779" task "9". error is: "weblogic.management.deploymentexception: org.jboss.weld.exceptions.deploymentexception: exception list 1 exceptions: exception 0 : java.lang.illegalargumentexception: interface org.springframework.data.jpa.repository.support.crudmethodmetadata not visible class loader     @ java.lang.reflect.proxy.getproxyclass0(proxy.java:487)     @ java.lang.reflect.proxy.newproxyinstance(proxy.java:722)     @ org.springframework.aop.framework.jdkdynamicaopproxy.getproxy(jdkdynamicaopproxy.java:121)     @ org.springframework.aop.framework.jdkdynamicaopproxy.getproxy(jdkdynamicaopproxy.java:111)     @ org.springframework.aop.framework.proxyfactory.getproxy(proxyfactory.java:96)     @ org.springframework.data.jpa.repository.support.crudmethodmetadatapostprocessor.getlockmetadataprovider(crudmethodmetadatapostprocessor.java:77)     @ org.springframework.data.jpa.repository.support.jparepositoryfactory.gettargetrepository(jparepositoryfactory.java:71)     @ org.springframework.data.repository.core.support.repositoryfactorysupport.getrepository(repositoryfactorysupport.java:171)     @ org.springframework.data.jpa.repository.cdi.jparepositorybean.create(jparepositorybean.java:73)     @ org.springframework.data.repository.cdi.cdirepositorybean.create(cdirepositorybean.java:372)     @ org.springframework.data.repository.cdi.cdirepositorybean.create(cdirepositorybean.java:170)     @ org.springframework.data.repository.cdi.cdirepositorybean.initialize(cdirepositorybean.java:155)     @ org.springframework.data.repository.cdi.cdirepositoryextensionsupport.afterdeploymentvalidation(cdirepositoryextensionsupport.java:153) 

i have noticed spring libraries (not spring data) provided weblogic, tried exclude them classloader following statement:

<prefer-web-inf-classes>true</prefer-web-inf-classes> 

the result following classcastexception

caused by: java.lang.classcastexception: org.springframework.data.jpa.repository.cdi.jparepositoryextension$proxy$_$$_weldclientproxy cannot cast javassist.util.proxy.proxyobject     @ org.jboss.weld.bean.proxy.proxyfactory.create(proxyfactory.java:249)     @ org.jboss.weld.bean.proxy.clientproxyfactory.create(clientproxyfactory.java:105)     @ org.jboss.weld.bean.proxy.clientproxyprovider.createclientproxy(clientproxyprovider.java:87)     @ org.jboss.weld.bean.proxy.clientproxyprovider.access$000(clientproxyprovider.java:43)     @ org.jboss.weld.bean.proxy.clientproxyprovider$1.load(clientproxyprovider.java:53)     @ org.jboss.weld.bean.proxy.clientproxyprovider$1.load(clientproxyprovider.java:46)     @ com.google.common.cache.localcache$loadingvaluereference.loadfuture(localcache.java:3568)     @ com.google.common.cache.localcache$segment.loadsync(localcache.java:2350)     @ com.google.common.cache.localcache$segment.lockedgetorload(localcache.java:2313)     @ com.google.common.cache.localcache$segment.get(localcache.java:2228) 

has faced similar problem spring data , weblogic?


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -