AQ Database Persistence Provider

Hi ,
i am trying to configure a Database Persistence Provider on OC4J 10.1.3.3 for an AQ database queue , i have defined a Connection Pool and Data Source for that DataBase Connection , and then (through the EM Deploy Database Persistence Provider) i do specify the Resource Adapter Module Name and select the defined DataSource , but it gives me the following error :
Error
An error has occurred.
connectors\ojms.rar (The system cannot find the path specified)
connectors\ojms.rar (The system cannot find the path specified)
any hints,
Thanks in advance.

Check the comments at the end of this blog post...
http://mike-lehmann.blogspot.com/2006/09/simple-mdb-with-oracle-database-jms.html
Hope that helps.
Rod

Similar Messages

  • Howto delete Resource Provider Name for a database persistence provider?

    Hi,
    I have performed the steps successfully given here: http://mike-lehmann.blogspot.com/2006/09/simple-mdb-with-oracle-database-jms.html
    Now, I need to do a clean up for this complete task. I have been able to do so completely sans one problem that if I want to do it again, the Resource Provider Name is visible in EM.
    The steps I have taken to to clean the task are:
    1. Undeployed the MDB application.
    2. Deleted the data source
    3. Deleted the connection pool
    4. Undeployed the RA (doing so the JMS destination also got deleted)
    5. Deleted the JMSUSER schema/user completely.
    My environment is RH4 Update 5 + AS 10.1.3.1.0 [J2EE Server+ Web Server] + 10.1.3.3 patch.
    Can someone please let me know how to remove the Resource provider name also?
    thanks,
    Saurabh

    In addition to the steps highlighted above, the value for the Resource Provider Name was persisting in the application.xml file. Once it is deleted, OC4J instance restarted, all works fine.
    Thanks.

  • JMS Database Persistence Provider in OC4J 10131:system cannot find the path

    I'm walking through the steps here with OC4J standalone 10131:
    http://mike-lehmann.blogspot.com/2006/09/simple-mdb-with-oracle-database-jms.html
    And when I try to create the RA with a new RP I get the following exception in the logs. My datasource is setup and is tested. Thoughts?
    oracle.sysman.ias.studio.j2ee.deploy.DeployUtil$DeploymentFailureException
         at oracle.sysman.ias.studio.j2ee.deploy.DeployUtil.deployArchive(DeployUtil.java:211)
         at oracle.sysman.ias.studio.j2ee.deploy.DeployUtil.deployArchive(DeployUtil.java:85)
         at oracle.sysman.ias.studio.oc4j.jms.JMXDeployDbProviderAdminBean.deployDBProviderAndConfigure(JMXDeployDbProviderAdminBean.java:121)
         at oracle.sysman.ias.studio.oc4j.jms.DeployDbProviderHelper.deployDBProvider(DeployDbProviderHelper.java:242)
         at oracle.sysman.ias.studio.oc4j.jms.DeployDbProviderHelper.handleEvent(DeployDbProviderHelper.java:127)
         at oracle.sysman.ias.studio.sdk.AbstractController.handleEvent(AbstractController.java:769)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:378)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:765)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:283)
         at oracle.sysman.ias.studio.app.StudioConsole.doGet(StudioConsole.java:297)
         at oracle.cabo.servlet.UIXServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.sysman.ias.studio.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:75)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.sysman.ias.studio.app.MultipleJVMFilter.doFilter(MultipleJVMFilter.java:85)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.ias.studio.app.PostLogonFilter.doFilter(PostLogonFilter.java:80)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.ias.studio.app.ShortHostnameRedirectFilter.doFilter(ShortHostnameRedirectFilter.java:68)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException: The system cannot find the path specified
         at oracle.oc4j.admin.jmx.shared.util.JarTool.<init>(JarTool.java:122)
         at oracle.sysman.ias.studio.j2ee.deploy.DeployPageUtil.getArchiveType(DeployPageUtil.java:105)
         at oracle.sysman.ias.studio.j2ee.deploy.DeployUtil.deployArchive(DeployUtil.java:133)
         ... 33 more
    Caused by: java.util.zip.ZipException: The system cannot find the path specified
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:203)
         at java.util.jar.JarFile.<init>(JarFile.java:132)
         at java.util.jar.JarFile.<init>(JarFile.java:97)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.<init>(JarTool.java:119)
         ... 35 more

    gday Jason.
    Not sure off the top of my head, looks like something is missing.
    Caused by: java.util.zip.ZipException: The system cannot find the path specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:203)
    at java.util.jar.JarFile.<init>(JarFile.java:132)
    at java.util.jar.JarFile.<init>(JarFile.java:97)
    at oracle.oc4j.admin.jmx.shared.util.JarTool.<init>(JarTool.java:119)
    I'm not even sure what file is being deployed to create the RA/RP here, I'll see if I can find out.
    -steve-

  • Unable to load persistence provider

    hi,
    i'm using spring context to reimplement some java methods in SOA suite.
    I have a deplyed and runnable Spring MVC project, which use hibernate to connect between database and project POJO classes. i use this spring project's java methods which are used those POJO classes and DAO classes by which we access database.
    Now i want to implement each methods in SOA suite . for that I define some spring contexts corresponding to each methods.
    i added required jar files in project class path and added persistance.xml, orm.xml and spring project's MANIFEST.MF. after that for checking, i added main() method in ech spring context's impplementation classes to check if those methods are individual running or not. but yes, they are running in JDeveloper.
    now i deploy this SOA project in weblogic enterprise manager, then test the service. its not work at all. in stacktrace i got following error/
    WARNING: Unable to load persistence provider "oracle.toplink.essentials.PersistenceProvider" due to "oracle.classloade
    util.AnnotatedClassNotFoundException:
    Missing class: oracle.toplink.essentials.PersistenceProvider
    Dependent class: org.apache.openjpa.persistence.PersistenceProductDerivation
    Loader: sun.misc.Launcher$AppClassLoader@27770641
    Code-Source: /C:/Fusion11g/Middleware11g_3/modules/org.apache.openjpa_1.1.0.0_1-1-1-SNAPSHOT.jar
    Configuration: /C:/Fusion11g/Middleware11g_3/modules/org.apache.openjpa_1.1.0.0_1-1-1-SNAPSHOT.jar
    This load was initiated at default.composite.RulesForLoanOrigination.soa_75e4602c-da8d-4a9d-b6b3-747aa3ee5372:1.0 usin
    the Class.forName() method.
    INFO: Found persistence provider "oracle.toplink.essentials.PersistenceProvider". OpenJPA will not be used.
    WARNING: Unable to load persistence provider "oracle.toplink.essentials.PersistenceProvider" due to "oracle.classloade
    util.AnnotatedClassNotFoundException:
    Missing class: oracle.toplink.essentials.PersistenceProvider
    Dependent class: org.apache.openjpa.persistence.PersistenceProductDerivation
    Loader: sun.misc.Launcher$AppClassLoader@27770641
    Code-Source: /C:/Fusion11g/Middleware11g_3/modules/org.apache.openjpa_1.1.0.0_1-1-1-SNAPSHOT.jar
    Configuration: /C:/Fusion11g/Middleware11g_3/modules/org.apache.openjpa_1.1.0.0_1-1-1-SNAPSHOT.jar
    This load was initiated at default.composite.RulesForLoanOrigination.soa_75e4602c-da8d-4a9d-b6b3-747aa3ee5372:1.0 usin
    the Class.forName() method.
    INFO: Found persistence provider "oracle.toplink.essentials.PersistenceProvider". OpenJPA will not be used.
    java.lang.ExceptionInInitializerError
    at com.originator.dao.LoanDAO.findByPK(LoanDAO.java:23)
    at com.origination.business.RiskCalculation.calculateRisk(RiskCalculation.java:24)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.sca.engine.WlsScaService.invokeTargetBeanMethod(WlsScaService.java:128)
    at weblogic.sca.engine.WlsScaService.messageInvoker(WlsScaService.java:92)
    at weblogic.sca.engine.WlsScaService.invoke(WlsScaService.java:39)
    at weblogic.sca.engine.WlsScaEngine.messageInvoker(WlsScaEngine.java:114)
    at weblogic.sca.engine.WlsScaEngine.invoke(WlsScaEngine.java:66)
    at oracle.integration.platform.blocks.java.SpringServiceEngine.request(SpringServiceEngine.java:148)
    at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:
    9)
    at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
    at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:155)
    at sun.reflect.GeneratedMethodAccessor1874.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.jav
    182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy272.request(Unknown Source)
    at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.doMessageProcessing(WebServiceEntry
    ndingComponent.java:1169)
    at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.processIncomingMessage(WebServiceEn
    yBindingComponent.java:768)
    at oracle.integration.platform.blocks.soap.FabricProvider.processMessage(FabricProvider.java:113)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1168)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:996)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:562)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:222)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:185)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:430)
    at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:477)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named OriginatorModel: T
    following providers:
    org.eclipse.persistence.jpa.PersistenceProvider
    kodo.persistence.PersistenceProviderImpl
    org.apache.openjpa.persistence.PersistenceProviderImpl
    Returned null to createEntityManagerFactory.
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
    at com.originator.dao.EntityManagerHelper.<clinit>(EntityManagerHelper.java:21)
    ... 53 more
    what i guess, after deploy, projects sca.jar do not takes those dependent jars (jpa.jar, toplink.jar,toplink-essential.jar etc) which i given in classpath.
    but i don't khonw what is the actual problem.
    please help me

    stick them into sca-inf/lib directory, and they are deployed and loaded.
    hth clemens

  • JPA Error "No Persistence provider for EntityManager",using org.eclipse.per

    Hello Colleagues,
    I have created JPA project, with out any error have done mapping also. with orm.xml and persistense .xml
    I am getting No Persistence provider for EntityManager error when calling Entity Manager in Entity class
    Error >>> EntityManagerFactory emf = Persistence.createEntityManagerFactory("Personalization_JPA");
    { No Persistence provider for EntityManager named Personalization_JPA }
    Persistence Provider as "org.eclipse.persistence.jpa.PersistenceProvider
    In persistence.xml for my JPA project , I have included following in respective tabs
    1) GENERAL Tab of Persistence.xml
    a) Persistence Provider as "org.eclipse.persistence.jpa.PersistenceProvider"
    b) In Managed classes included my Entity class and test application that calls the entity manager
    c) orm.xml in xml mapping files
    2) Connections Tab of Persistence.xml
    a) Transaction Type as Resource Local, not using any JTA datasourse name in database field
    3) Properties Tab of Persistence.xml
    property name="driver" value="com.sap.dbtech.jdbc.DriverSapDB"
    property name="url" value="jdbc:sapdb://localhost/w15"
    property name="username" value="SAPW15DB"
    property name="password" value="sapsapr3"
    If anything wrong is specified please kindly inform me.

    Hello colleague,
    As per your suggestion I removed Persistence Provider as "org.eclipse.persistence.jpa.PersistenceProvider", made it blank in persistence.xml, but still I get the same error saying No Persistence provider for EntityManager, please have a look at other attributes of persistence.xml
    In persistence.xml for my JPA project , I have included following in respective tabs
    1) GENERAL Tab of Persistence.xml
    a) Persistence Provider as  blank or "org.eclipse.persistence.jpa.PersistenceProvider" makes no difference
    b) In Managed classes included my Entity class and test application that calls the entity manager
    c) orm.xml in xml mapping files
    2) Connections Tab of Persistence.xml
    a) Transaction Type as Resource Local, not using any JTA datasourse name in database field
    3) Properties Tab of Persistence.xml (connecting to maxdb, so is this necessary or not )
    property name="driver" value="com.sap.dbtech.jdbc.DriverSapDB"
    property name="url" value="jdbc:sapdb://localhost/w15"
    property name="username" value="SAPW15DB"
    property name="password" value="sapsapr3"
    If anything wrong is specified please kindly inform me.

  • WebChannel JPA Error "No Persistence provider for EntityManager"

    Hello Colleagues,
    In WebChannel  for Personalization, we are using Java Persistence API JPA project to connect to java stack Max DB .
    Here I have created JPA project, with out any error done mapping also. with orm.xml and persistense .xml
    I am getting No Persistence provider for EntityManager error when calling Entity Manager in Entity class
    > EntityManagerFactory emf = Persistence.createEntityManagerFactory("Personalization_JPA");
              EntityManager em = emf.createEntityManager();
              Attribute_entity ae = new Attribute_entity();
              ae.setEMPID(56);
              ae.setPreferences("Raghu");
              Transaction tx = (Transaction) em.getTransaction();
              em.persist(ae);
    I am using org.eclipse.persistence.jpa.PersistenceProvider as Persistence Provider
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
              <persistence-unit name="Personalization_JPA">
              <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
              <mapping-file>META-INF/orm.xml</mapping-file>
              <class>personalization.model.PersonalizationEntity</class>
              <class>personalization.model.Attribute_entity</class>
              <class>personalization.model.Test</class>
              </persistence-unit>
    </persistence>
    Can any one please tell me how to solve this issue.?

    Hello colleague,
    As per your suggestion I removed Persistence Provider as "org.eclipse.persistence.jpa.PersistenceProvider", made it blank in persistence.xml, but still I get the same error saying No Persistence provider for EntityManager, please have a look at other attributes of persistence.xml
    In persistence.xml for my JPA project , I have included following in respective tabs
    1) GENERAL Tab of Persistence.xml
    a) Persistence Provider as  blank or "org.eclipse.persistence.jpa.PersistenceProvider" makes no difference
    b) In Managed classes included my Entity class and test application that calls the entity manager
    c) orm.xml in xml mapping files
    2) Connections Tab of Persistence.xml
    a) Transaction Type as Resource Local, not using any JTA datasourse name in database field
    3) Properties Tab of Persistence.xml (connecting to maxdb, so is this necessary or not )
    property name="driver" value="com.sap.dbtech.jdbc.DriverSapDB"
    property name="url" value="jdbc:sapdb://localhost/w15"
    property name="username" value="SAPW15DB"
    property name="password" value="sapsapr3"
    If anything wrong is specified please kindly inform me.

  • No Persistence provider for EntityManager

    Hi everybody,
    this problem has been haunting me for days now.
    I have this JSE application that uses toplink essentias for his persistence layer.
    Everything works fine in Eclipse, but when i try to execute it outside eclipse i get the following error:
    javax.persistence.PersistenceException: No Persistence provider for EntityManager named analise: The following providers:
    oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
    oracle.toplink.essentials.PersistenceProvider
    Returned null to createEntityManagerFactory.
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
         at synergia.persistencia.principal.CorretorPersistencia.<init>(CorretorPersistencia.java:87)
         at synergia.persistencia.principal.CorretorPersistencia.criarNovaInstancia(CorretorPersistencia.java:646)
         at synergia.persistencia.principal.CorretorPersistencia.getUnicaInstancia(CorretorPersistencia.java:223)
    my persistence.xml looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation=
    "http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0">
    <persistence-unit name="analise">
              <provider>
                   oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
              </provider>           
    classes
         <properties>
              <property name="toplink.jdbc.driver"
              value="oracle.jdbc.driver.OracleDriver"/>
              <property name="toplink.jdbc.user"
              value="usu_anual3"/>
              <property name="toplink.jdbc.password"
              value="usu_anual3siace01"/>
              <property name="toplink.jdbc.url"
              value="jdbc:oracle:thin:@172.30.9.66:1521:siace01"/>
                   <property name="toplink.weaving.lazy"
              value="true" />
                   <property name="toplink.weaving"
              value="static" />
                   <property name="toplink.logging.level"
              value="FINEST"/>
                   <property name="toplink.target-database"
         value="oracle.toplink.essentials.platform.oracle.OraclePlatform"/>
              </properties>
         </persistence-unit>
    </persistence>
    what i dont get is that the application finds the persistence.xml, and predeploy it or at least i think so.
    this is from the log:
    it starts like this:
    [TopLink Finest]: 2008.02.20 12:47:03.204--ServerSession(19864560)--Thread(Thread[main,5,main])--property=toplink.weaving; value=static
    [TopLink Finest]: 2008.02.20 12:47:03.250--ServerSession(19864560)--Thread(Thread[main,5,main])--property=toplink.orm.throw.exceptions; default value=true
    [TopLink Finer]: 2008.02.20 12:47:03.250--ServerSession(19864560)--Thread(Thread[main,5,main])--Searching for default mapping file in file:/C:/Arquivos%20de%20programas/SIACE%20PCA%20Análise%202007%20-%20ALPHA/lib/
    ...then does lots of stuff like this
    --The column name for element [private java.lang.String synergia.persistencia.principal.ObjetoPersistenteAbstrato.id] is being defaulted to: ID.
    ... Finally it ends like this
    12:47:10.031--ServerSession(19864560)--Thread(Thread[main,5,main])--end predeploying Persistence Unit analise; state Predeployed; factoryCount 0
    [TopLink Finer]: 2008.02.20 12:47:10.031--Thread(Thread[main,5,main])--cmp_init_transformer_is_null
    the log whe i run in eclipse is just like it
    but it adds this to the end
    [TopLink Finer]: 2008.02.19 09:03:17.710--Thread(Thread[main,5,main])--cmp_init_transformer_is_null
    [TopLink Finest]: 2008.02.19 09:03:17.710--ServerSession(30969271)--Thread(Thread[main,5,main])--begin predeploying Persistence Unit analise; state Predeployed; factoryCount 0
    [TopLink Finest]: 2008.02.19 09:03:17.710--ServerSession(30969271)--Thread(Thread[main,5,main])--end predeploying Persistence Unit analise; state Predeployed; factoryCount 1
    [TopLink Finest]: 2008.02.19 09:03:17.725--ServerSession(30969271)--Thread(Thread[main,5,main])--begin deploying Persistence Unit analise; state Predeployed; factoryCount 1
    [TopLink Finest]: 2008.02.19 09:03:18.632--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.session-name; value=teste
    [TopLink Finest]: 2008.02.19 09:03:18.632--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.logging.level; value=FINEST; translated value=FINEST
    [TopLink Finest]: 2008.02.19 09:03:18.632--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.logging.level; value=FINEST; translated value=FINEST
    [TopLink Finest]: 2008.02.19 09:03:18.632--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.jdbc.user; value=usu_anual3
    [TopLink Finest]: 2008.02.19 09:03:18.632--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.jdbc.password; value=xxxxxx
    [TopLink Finest]: 2008.02.19 09:03:20.413--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.jdbc.driver; value=oracle.jdbc.driver.OracleDriver
    [TopLink Finest]: 2008.02.19 09:03:20.413--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.jdbc.url; value=jdbc:oracle:thin:@172.30.9.66:1521:siace01
    [TopLink Info]: 2008.02.19 09:03:20.413--ServerSession(30969271)--Thread(Thread[main,5,main])--TopLink, version: Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))
    [TopLink Finest]: 2008.02.19 09:03:21.460--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.InformixPlatform, RegularExpression: (?i)informix.*.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.PointBasePlatform, RegularExpression: (?i)pointbase.*.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.DB2Platform, RegularExpression: (?i).*db2.*.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.SQLServerPlatform, RegularExpression: (?i)microsoft.*.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.PostgreSQLPlatform, RegularExpression: (?i)postgresql.*.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.SybasePlatform, RegularExpression: (?i)(sybase.*)|(adaptive server enterprise.*)|(SQL Server).
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.JavaDBPlatform, RegularExpression: (?i).*derby.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.oracle.OraclePlatform, RegularExpression: (?i)oracle.*.
    [TopLink Fine]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--Detected Vendor platform: oracle.toplink.essentials.platform.database.oracle.OraclePlatform
    Does anyone knows why this happen?
    currently im using the latest build from v2: V2_build_58g (V2 Final)
    but i used othes from v2.1 branch, and got the same results.
    thanks for the help.
    p.s.: Sorry for my bad english

    Hi,
    If you are having the same error as the first post where your PU was not found - even though you have all the correct jars in your classpath (and you don't have the problem with %20 spaces or unrecognized UTF-8 chars in the path to your persistence.xml - then you may have one of the following issues...
    - dependent jars like toplink*.jar are not visible to your application-managed EM's classloader - IE the TopLink library is lower
    - your server's classpath is incorrectly modified
    - you do not have references specified in one or all of your *application.xml, .MANIFEST, ejb-jar or web.xml reference descriptors.
    - another provider library is being loaded ahead of TopLink.
    - several other scenarios I still need to expand on....
    I am able to reproduce recently the same issue on demand on several application servers if I remove jars, hack the server's classpath or attempt to override a partial set of dependent jars via several application-managed scenarios.
    thank you
    /michael
    http://www.eclipselink.org

  • Database persistence with Eclipse

    Hi All,
    I have a basic web project involving few servlets and other utility classes. I just to add a database persistence logic into my project using eclipse. The scenario is very simple, I just need to add few entires into the table which has one foreign key constraint and other simple string columns.
    I could do a basic jdbc-odbc way, but just thought of getting into some persistence api provided by the java e.g. JPA. My database is mySQL, application server is JBoss and IDE is Eclipse.
    So is there any eclipse tutorial which should help configuring an existing web project to add persistence logic? I didn't find any help material which is simple and quick to adapt.
    thanks.

    You want to do JPA? Eclipse has the Dali plugin for this. This is by default included in the Eclipse Java EE version. Documentation and tutorials are available at the Eclipse site.
    This has nothing to do with JDBC. JPA is another API and Eclipse is just a tool.

  • EclipseLink persistence provider issue with weblogic 10.3

    Hi All,
    I have been trying to deploy and run an EAR in weblogic but when I run the application I get the following warning: WARNING: Found unrecognized persistence provider "org.eclipse.persistence.jpa.PersistenceProvider" in place of OpenJPA provider. This provider's properties will not be used.
    The following is my persistence.xml:
    <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
    <persistence-unit name="default" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>DataSourceName</jta-data-source>
    <class>oracle.communications.platform.entity.impl.CharacteristicSpecificationDAO</class>
    <properties>
    <property name="eclipselink.logging.level" value="FINEST" />
    <property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.oracle.OraclePlatform" />
    <property name="eclipselink.target-server" value="WebLogic_10" />
    <property name="eclipselink.session-event-listener" value="oracle.communications.platform.persistence.impl.PomsSessionEventListener" />
    <property name="eclipselink.session.customizer" value="oracle.communications.platform.util.EclipseLinkSessionCustomizer" />
    <property name="poms.cache.coordination.implementation" value="jms" />
    <property name="poms.cache.coordination.ipaddress" value="10.178.139.64" />
    <property name="poms.cache.coordination.port" value="7101" />
    <property name="poms.cache.coordination.multicast.group.address" value="226.10.12.64" />
    <property name="poms.cache.coordination.multicast.port" value="3121" />
    <property name="poms.cache.coordination.topic.connection.factory.name" value="EclipseLinkTopicConnectionFactory" />
    <property name="poms.cache.coordination.topic.name" value="EclipseLinkTopic" />
    <property name="poms.cache.coordination.username" value="weblogic" />
    <property name="poms.cache.coordination.password" value="weblogic" />
    <property name="poms.cache.coordination.password.encrypted" value="false" />
    </properties>
    </persistence-unit>
    </persistence>
    I have written a session customizer that reads properties from the persistence.xml and initializes stuff. But because of the warning i mentioned earlier... I am getting null for all property entries.
    I moved the eclipselink jar entry up ahead of openjpa jar entry in weblogic.server.modules_10.3.1.0.xml and refcount.xml in /modules/features directory. I am still getting the same problem.
    I read in many posts for workarounds for this issue but didnt find anything which worked for me. I would be grateful if someone could provide me a hint as to how to make it work.
    Thanks in advance,
    Prashanth.

    Prashanth,
    Hi, there should be no issue running EclipseLink on WebLogic while you see this warning. If you are getting null properties it may be the result of another issue, could you post specific exceptions and the part of your client code that is having a problem.
    1) The warning below normally appears only when running your persistence unit with an "application managed" JTA datasource as opposed to a "globally defined server scoped datasource". Even then it can be ignored as there are still parts of WebLogic that depend on OpenJPA. Even though the warning states that properties are ignored - they are not and you should see your persistence unit loaded properly.
    I encountered this issue when running an "application managed" JTA - here is an extract of the log showing the warning and the full functioning of the pu later - the persistence unit and example code can be found on the weblogic tutorial examples link below
    "[EL Finer]: 2008.10.29 13:03:55.565--ClientSession(30346337)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client released
    WARNING: Found unrecognized persistence provider "org.eclipse.persistence.jpa.PersistenceProvider" in place of OpenJPA provider. This provider's properties will not be used.
    [EL Info]: 2008.10.29 13:03:56.079--ServerSession(14772987)--EclipseLink, version: Eclipse Persistence Services - 1.1.0 (Build 20081023)
    [EL Info]: 2008.10.29 13:03:56.391--ServerSession(14772987)--file:/C:/view_w34r1a/examples/org.eclipse.persistence.example.jpa.server.weblogic.enterpriseEJB/build/classes/-exampleLocal login successful
    15 Entities in storage: 15
    [EL ExampleLocal EM]: enterprise: Object: [email protected]( id: 6 state: null parent: HashSet@15794734 references: HashSet@15794734)
    [EL ExampleLocal EM]: enterprise: Object: [email protected]( id: 26 state: null parent: HashSet@8800655 references: HashSet@8800655)
    I raised the following minor issue with our WebLogic Server team in Oct for reference - however this warning did not affect proper functioning of EclipseLink JPA.
    https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=7520161
    You may reference the following tutorial on running EclipseLink JPA on WebLogic 10.3, it details all the steps necessary to get a JTA container managed persistence unit running via a stateless session bean and a servlet client. It also details and links to application managed datasource configuration details.
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial
    2) eclipselink.jar location in WebLogic?
    The eclipselink.jar library should stay in the modules or patch_* directory depending on whether you are running a standalone WebLogic server or as part of a Fusion Middleware JDeveloper environment.
    See the following link that details deployment options for WebLogic and EclipseLink
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#EclipseLink_JAR_location
    Note: I have not modified the load order of EclipseLink, OpenJPA or Kodo, I am running all including this version of OpenJPA in my modules directory. [org.apache.openjpa_1.0.0.0_1-1-1-SNAPSHOT.jar]
    3) I noticed that you are defining the target-database property in your persistence unti but you are running as JTA not RESOURCE_LOCAL. This property can be removed if your JTA datasource is defined as a Transactional server scoped datasource via the WebLogic console.
    thank you
    /michael
    http://www.eclipselink.org

  • JPA - PERSISTENCE PROVIDER NOT FOUND

    Hi,
    I am using JPA to connect to my SQL Database and using web logic 9.2 server..
    I get an No Persistence Provider exception
    any idea what this cud be
    Thanks
    Karthik

    Well, i've never worked with WebLogic, but you need a JPA implementation provider, like toplink-essentials or hibernate-entity-manager.
    You can also check your persistence.xml and look for some missing configuration.
    Here's an example from the hibernate documentation:
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
       version="1.0">
       <persistence-unit name="sample">
          <jta-data-source>java:/DefaultDS</jta-data-source>
          <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
             <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
          </properties>
       </persistence-unit>
    </persistence>Hope it helps...

  • Java framework/toolkit for POJO, database persistence and XML

    Hi all,
    I've been wondering if there's a toolkit or framework for developing Java program (could be standalone Java program, EJBs etc.)
    I surfed around casually and found some but there isn't any detailed description of what and how each framework/toolkit does. So I hope to ask around if you've anything that you have used before and would like to point to me to look further.
    Given the huge number of open source toolkits, libraries and frameworks out there, it can be quite confusing as to which one is more suitable for me. Also with Sun's move into JDO and Java Persistence API, things become more messy and complicated - there isn't any clear leader in this area and things are starting to change with the inclusion of JDO which seems to be the future standard persistence API to use.
    So far, I've only worked with Hibernate for database persistence before. So I'm wondering if there're other options such as Hibernate with XDoclet, Castor and Spring framework etc. that can easily transform Plain Old Java Objects (POJO) -- hopefully using Java Reflection w/o using mapping XML files like in Hibernate -- into SQL for database persistence and XML text data and vice-versa. The current problem is that I've been spending tons of time writing code to transform data in Java objects into XML (using my own format) and also doing mapping files for Hibernate.
    I am hoping for something simple like:
    Object o = new Object();
    o.setProperty = "something";
    String xml = o.toXML(); // Convert object to XML text.
    o.save(); // Save to database.
    // The reverse: Parse XML into object and load from database
    Object o = new Object();
    o.fromXML(xml);
    o.load();
    // Properties should be initialized from database or XML.
    Anything similar to this out there?

    Hi,
    Just to share what I've found after surfing a bit more on this issue to promote more discussion on this area.
    For mapping of Java objects to XML, we can try looking more at Castor and JAXB.
    For database persistence to/from Java objects, look at Hibernate and JDO.
    There is this Hydrate project (hydrate.sourceforge.net) that I do not know where it fits in still. But it is supposed to do data transformation and mapping between Java objects, XML and database representation.
    Fyi.

  • Weblogic 12.1.2 with Hibernate 4.3.6 (JPA 2.1) as Persistence Provider

    Hello,
    Could I apply the javax.persistence_2.1.jar to PRE_CLASSPATH variable to get JPA2.1 in Weblogic 12.1.2 (not 12.1.3), using Hibernate 4.3.6 as my Persistence Provider?
    Best Regards,
    Luís

    Hi,
    If it is war then try to apply following  Patch 13893259.
    Regards,
    Kal

  • Wrong exception thrown by persistence provider

    Hi.
    I am using EclipseLink as persistence provider.
    I am invoking getReference() on a non-existing entity.
    Then the provider throws:
    org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLIntegrityConstraintViolationException: INSERT on table 'TTTT' caused a violation of foreign key constraint 'CCCCC' for key (1000000).  The statement has been rolled back.I am expecting an EntityNotFoundException.
    What is wrong here ?
    Thanks

    Hmmm.. you have a point..
    but the getReference spec says raising that exception might be deffered to the end of transaction/on flush, if not being raised on the method invocation itself.
    So isnt it legal the construct:
    EntityInstance e = new EntityInstance();
    e.setProperty(em.getReference(PropertyClass.class, id));
    em.persist(e);How can I be sure if the reference is valid ?
    Isnt the exception the proper mechanic to get informed about a problem ?

  • Persistence provider declared in the deployment descriptor is not supported

    Hi,
    When I try to deploy an entity bean (using JDev 3.2 and Oracle 8.1.7) I got this message:
    "Persistence provider declared in the deployment descriptor is not supported".
    Should I change something in the "..._oracle.xml" file generated by JDev?
    Anyway the xlm part, regarding the persistence provider, is:
    <persistence-provider>
    <description> specifies a type of persistence manager </description>
    <persistence-name>BC4J</persistence-name>
    <persistence-deployer> bcdom.DomejbViewDeployer</persistence-deployer>
    </persistence-provider>
    Anybody knows what is this about?
    Thanks,
    Gabi Rosu

    Hi,
    I've already deployed the CMPRuntime library, and I followed the cmpdemo demo step by step and this xml file is the result of the Jdev wizard. But I still got the same error message.
    I even edit the ..._oracle.xml file, changing the persistance provider into "oracle.aurora.ejb.persistence.ocmp.OcmpEntityDeployer", the way is in the online documentation, but it keeps saying that this class (OcmpEntityDeployer) is not found.
    So, what should I do?
    Thanks in advance,
    Gabi

  • Weblogic 10 - JPA - Hibernate as Persistence Provider

    Where can I find documentations about using HIBERNATE as Persistence Provider for Weblogic 10?

    I still haven't found documentations about HIBERNATE as Persistence Provider for Weblogic 10. So, can i assume that is an impossible task? The only way is use KODO? This not looks compliant...

Maybe you are looking for

  • Mid 2007 Macbook screen goes black when not in clamshell mode

    Worked like a charm until I started using my mini DVI adapter to hook it up to an external monitor. Now machine won't display anything (just a black screen) when its not hooked up to the adapter. Has to be a display issue since It will still boot and

  • Hotsync problem with Windows 7 and Outlook 2007

    Hello,  I try to make contact between my Palm Tungsten E2 and outlook 2007 on my laptop with Windows 7 for synchronizing.Before this, I worked on this laptop with Windows Vista and also Outlook 2007.I installed the standard software and after that th

  • Links not working in Reader 10 on Android...

    When opening a .pdf document in reader 10 on my Android tablet, the links to other pages in the document do not work. Yet when I open a different .pdf document, the links DO work. HELP!

  • Pie Chart -- Separate Slices

    Hello, I have created a Pie Chart. I was wondering if anyone knows of a way to separate the slices. I believe Oracle may have a feature to explode (separate) one slice of the pie chart away from the other slices. However, I was wondering if there is

  • What is the Mac key command for 'send link' in the File Menu?

    Is there a Mac key command for the 'send link' under the File Menu? I use this a lot and like to use key commands. Thanks, Connie