jboss5.x - PersistenceProvider not found Exception in JBOSS AS 5.1.0 GA -


i trying deploy product in jboss 5.1.0 ga using eclipse in linux.

previously executed on tomcat 6. while deploying got many errors. had solved 1 one.

but classnotfoundexception raised due persistenceprovider.

my product environment jpa 1.0. , using toplink-essentials.jar, toplink-essentials-agent.jar. (my toplink version 2.0)

please see bug decription...

11:46:08,276 error [abstractkernelcontroller] error installing start: name=persistence.unit:unitname=#entity state=create java.lang.classnotfoundexception: oracle.toplink.essentials.persistenceprovider baseclassloader@12bb617{vfsclassloaderpolicy@bfa9d6{name=vfsfile:/opt/jboss-5.1.0.ga/server/default/deploy/iportman_gpl.war/ domain=classloaderdomain@16877f8{name=defaultdomain parentpolicy=before parent=org.jboss.bootstrap.noannotationurlclassloader@1837697} roots=[memorycontexthandler@19344978[path= context=vfsmemory://3j011-idx41v-hfxjen4j-1-hfxjf9qd-2a real=vfsmemory://3j011-idx41v-hfxjen4j-1-hfxjf9qd-2a], filehandler@22157425[path=iportman_gpl.war/web-inf/classes context=file:/opt/jboss-5.1.0.ga/server/default/deploy/ real=file:/opt/jboss-5.1.0.ga/server/default/deploy/iportman_gpl.war/web-inf/classes/]

this bug showing while trying deploy project war file.

while in execution time jboss loading both jars. (toplink-essentials.jar, toplink-essentials-agent.jar). (this showing on error console)

delegatinghandler@13596360[path=iportman_gpl.war/web-inf/lib/toplink-essentials.jar context=file:/opt/jboss-5.1.0.ga/server/default/deploy/ real=file:/opt/jboss-5.1.0.ga/server/default/deploy/iportman_gpl.war/web-inf/lib/toplink-essentials.jar] delegatinghandler@32401617[path=iportman_gpl.war/web-inf/lib/toplink-essentials-agent.jar context=file:/opt/jboss-5.1.0.ga/server/default/deploy/ real=file:/opt/jboss-5.1.0.ga/server/default/deploy/iportman_gpl.war/web-inf/lib/toplink-essentials-agent.jar]

but still showing error.

when had google issue had seen explanations like.. "may loading 2 persistenceprovider classes or jboss loading jpa classes".

but had set parent-first="false" in jboss-classloading.xml

below code in /web-inf/jboss-classloading.xml

<?xml version="1.0" encoding="utf-8"?> <classloading xmlns="urn:jboss:classloading:1.0" export-all="non_empty" import-all="true" parent-first="false"> </classloading> 

i declared below code in /web-inf/classes/meta-inf/persistence.xml

 <persistence-unit name="entity" transaction-type="resource_local">  <provider>oracle.toplink.essentials.persistenceprovider</provider> 

please me solve problem. posted same issue in jboss community help, did not response.

(for detail decription persistence.xml , list of jars, please see jboss community link)

so, me find out problem. suggestions helpful me... in advance..

(sorry bad english)

the above issue had resloved when removed white spaces between <provider> tag in persistence.xml below.

<provider>oracle.toplink.essentials.persistenceprovider</provider>


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -