Can be toplink-essentials.jar and toplink-essentials-agent.jar shared ?

I have 2 apps, A and B, toplink-essentials.jar and toplink-essentials-agent.jar are not in their war /lib directory. It is in /common/lib (Tomcat 5.5) or /toplink/jlib (OC4J 10.1.3.2.0).
First I deploy and run A - it works, then I deploy and run B - it fails with exception: No Persistence provider for EntityManager named ...
When I do it in opposite sequence, B works ok, A fails.
When I add toplink-essentials.jar and toplink-essentials-agent.jar into war /lib, both works OK, but only on Tomcat. On OC4J not. Itried to add orion-web.xml
<orion-web-app>
<web-app-class-loader search-local-classes-first="true"/>
</orion-web-app>
but without success. Second application still failed.
Can be toplink jars shared between applications ?
Tested with build 41
Lumir

Note: The agent JAR is only needed when starting a
client outside the container.Yes, I kow it - but I am confused, that OC4J /toplink/jlib contain agent, and tutorial at
http://www.oracle.com/technology/products/ias/toplink/jpa/examples/jsf-jpa-example.html#CHDDIFII
also say: Add toplink-essentials.jar and toplink-essentials-agent.jar to <EXAMPLE_HOME>\lib.
Is there any more information in the stack trace that
might help figure out why the second persistence unit
cannot be initialized?javax.persistence.PersistenceException: No Persistence provider for EntityManager named xxx
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
Are you setting up any TopLink session configuration
properties in your persistence unit (i.e.
toplink.session-name)?No. I have only session customizer, that does following in customize()
JNDIConnector connector = (JNDIConnector) session.getLogin().getConnector();
connector.setLookupType(JNDIConnector.STRING_LOOKUP);          
session.getLogin().setTableQualifier(schema);
Bye,
Lumir

Similar Messages

  • A .txt in jar,and dont kown the jar's absolute path,how to read it

    I have help.txt and HelpReader class in a jar,and dont kown the jar's absolute path,how to let
    HelpReader class can find help.txt and read it??
    thanks

    Make sure the jar is in your program's classpath. Then use something likeInputStream help = this.getClass().getResourceAsStream("/help.txt");to read the file. Exactly what you would use depends on where in the jar file the help.txt file is located.

  • Not getting com.ibm.mq.jar and com.ibm.mqjms.jar files

    Hi Sudhir,
    Thank you very much for your guidance.
    But I am not getting com.ibm.mq.jar, and com.ibm.mqjms.jar files. what do I have to do to get this file?
    And do I require both these files in getting initial context for JNDI.
    Thanks in advance.
    Have a nice day

    Hay,
    theres also a zip file from IBM titled MA88 that contain the jar files needed for supporting JMS programs in a Java env (these files are included there) and they're also included in WBI v5.2 and higher.

  • Is it j2ee.jar and jdk1.5.0.jar same

    when i search for j2ee.jar in google it is showing jdk1.5
    but link is j2ee.jar download.
    is it same.in my tutorial they are saying download j2ee.jar
    if it differ ples send me link for download.

    Check that Eclipse itself is running with the right VM.
    This is from the Windows readme (but Linux is similar) "Here is a typical
    Eclipse command line:
    eclipse -vm c:\jdk1.4.2\jre\bin\javaw -vmargs -Xmx256M
    Tip: It's generally a good idea to explicitly specify which Java VM to use when
    running Eclipse. This is achieved with the "-vm" command line argument as
    illustrated above. If you don't use "-vm", Eclipse will look on the O/S path. When
    you install other Java-based products, they may change your path and could
    result in a different Java VM being used when you next launch Eclipse."
    In your case you would give it the path to your new java executable.
    (I am assuming you can compile OK from the command line.)

  • Why can't Apple TV's and iOS devices see home sharing on my Windows 7 computer when iTunes libraries on other computers on the same network and connected to the same Home Sharing can?

    I have never previously had any problems with Home Sharing, I have always found it to be completely reliable as advertised. I have 2 computers in the house, (one MacBook and one Windows Desktop) connected to the same Home Sharing account, connected to the same BT Home Hub 4. My situation is that I have nearly 2TB of data of which I would like to share with the home wirelessly, in my mind the desktop is the logical place for this to be shared from.
    When running, iTunes on this desktop broadcasts to other iTunes libraries, but no other iOS devices or Apple TV's connected to the same Home Sharing account cannot see it.
    I have tried turning Home Sharing off, and then turning it back on, closing iTunes, restarting the computer, going to Network and Sharing Centre and unticking IPv6 in the network adapter properties, even completely wiping the computer and reinstalling Windows 7.
    One of the Apple TV's in the house was recently purchased by my parents with the promise from me that everything would work seamlessly... so far it isn't and I am frustrated that the Apple technology that I have come to rely on isn't working as expected.
    One thing that has occurred to me upon writing this is that it is a very large amount of data, and I have not attempted to share this with another computer that is currently working and broadcasting it's Home Share fine.
    I am sorry if I have ommitted any important details, any further questions don't hesitate to ask. I would be so grateful of any suggestions, my parents are depending on me.

    I have found with AppleTV that it is the IPV6 on the computer you want to access is the problem.  The issue is that Homegroup on Win 7 or Win 8 requires IPV6 to work, but AppleTV won't work with IPV6.  (So maybe double check you have IPV6 turned off)
    So you have to make a choice - Homegroup or AppleTV.... but you can't have both, until Apple brings ATV up to date. (crazy that it does not recognise IPV6 - c'mon Apple!)
    You can set up sharing individually in Win 7 or 8 and have the ATV access files that way.
    Having said that, there is always the exception.. I have an old HP home server running Win8 and it services ATV - but is part of the Homegroup... have no idea why it works on both, but no other machine on the home network will talk to both ATV and Homegroup at the same time!

  • HT201335 I have just bought apple TV but i cannot get my TV to find the signal from my Ipad 2. I can access my MAC files and play those through home sharing but no streaming from my ipad. It as though the Apple TV is not receiving the signal. What am i mi

    I have just bought Apple TV 2 and have followed all of the steps as directed. I have set up home sharing so I can watch the files from my MAC on the TV but I cannot get the airplay to stream my Ipad2 to the TV.
    I cannot even get my Apple TV to recognise that my Ipad is even on the same network as it as it gives me no options or recognition that it is trying to send the data.
    What have I missed to make my Ipad2 stream the screen image onto my TV...?
    Frustrated am i with it...!!

    I took a very quick look at the Owner's Manual for that Router.
    Much of this you will already know....but:
    1. Its a combination DSL modem/WiFi Router
    2. It does not have ariel antennas. My experience, the WiFi tends to perform poorly compared to standalone WiFi units and the WiFi range is also limited thus slower the farther away you get (or Apple TV gets)
    3. If you don't have a DSL filter infront of it I recommend using one, even if you don't use phones. DSL comes in the pair as a different frequency and its "probably" best to filter it out anyway.....even though it comes in on a dial tone and a dial tone often exists
    4. Let me know who you ISP is and I will find out what other Routers they offer.
    5. You can buy pretty much any DSL modem / Router online assuming it supports PPOe which most DSL ISPs use
    6. If you have not in fact tried running an Ethernet Cable.....try it.....you can get a 100 footer locally for just a few bucks. It could solve a heart ache

  • Can't open Manage Rules and Alerts after adding a shared MB

    Have a customer who is using a Terminal Server Environment, all server's 2008 R2 and we're using Exchange 2010.
    Office 2010 installed on all server's. 
    If they add an additional mailbox to Outlook 2010, user's are then unable to open rules & alerts, no error message. It flickers and then nothing happens.
    Nothing in event logs that I can see that suggests anything.
    If I load up OWA, add a mailbox and then try to open mailbox - it works OK.
    Outlook has been re-installed.
    Office 2010 has latest service pack.
    If you load up the shared mailbox on it's own, the rules and alerts works fine.
    Seen a few threads relating to this but none of them seem to have a fix on there.
    Any ideas?
    Thanks in advance,
    Lee,

    Hi Lee,
    I have a test in my environment using Exchange 2010 with Outlook 2010. I couldn't reproduce this issue in my environment. In your case, make sure that this customer has full access to shared mailbox. And then follow the steps below to add shared mailbox
    to the customer's account and check the result.
    open Outlook -> File -> Account Settings -> Change -> More Settings -> Advanced -> Add -> type shared mailbox name -> Ok
    If the issue persists, use Outlook safe mode to determine whether the problem is caused by add-ins.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Can connect with Server Admin and Server Prefs, not Screen Sharing or ARD

    Just set up 10.5 server on my G5, and trying to connect from 10.5 on my iMac. I have tried both with the server System Preferences set to allow Screen Sharing via VNC, and with Remote Management enabled for ARD. In both cases, I get authentication errors when trying to connect from home. I have tried with both the full username, and with the short name of the only account on the server. My assumption is that, since this is the administrator account, I don't need to setup explicit privs for it on the server.
    I can authenticate without any trouble with both Server Admin and Server Preferences.
    The Firewall is not enabled on either machine, although I am behind a NAT router at home -- is it necessary to open any special ports to enable screen sharing? Is it possible that having these ports closed would produce an authentication error?
    Thanks for any help.

    Hi
    I'm going to assume you configured your Server in Standard Configuration and not Workgroup or Advanced?
    When using Standard in setting up the server DNS is automatically configured for as well as the Server taking an Open Directory Master Role. The admin account created at the beginning is for administering the Open Directory. Unknown to you and not documented at all - as far as I can see - is the 'Local Administrator' (localadmin) account.
    You only become aware of this account if for some reason you have a problem with the Server which involves demoting to Standalone (ie not an Open Directory Master) once this happens you find you can't log on to the Server anymore or communicate with any of the Server applications because it won't accept any username or password other than root and localadmin for the name and the password defined for the original admin account you created right at the beginning.
    Sometimes it does not even take demotion to find yourself locked out of the Server. Some have experienced this problem when running the Security Update or when some other problem has occured.
    Part of the process of creating an Open Directory Master involves the creation of a 'special' directory administrator account. This account is used for administering the LDAP node. If demotion takes place this account gets blown away along with all users and group accounts that exist in the LDAP node, in fact everything to do with Open Directory is destroyed apart from Users' home folders.
    Why demote if this happens? Sometimes the LDAP database gets damaged/corrupted beyond a point where normal troubleshooting methods fail. This can happen for a whole variety of reasons but more often than not is due to a poorly configured DNS Service. You basically only have two options once you reach that stage. A server reinstall involving a format and rebuild or a demotion to Standalone. Which option would you choose? Prior to demotion you can (if you have the chance) export users and groups or even archive the LDAP database itself for restoration later on. This is a useful option as everything to do with the LDAP Server is retained - passwords, users, groups etc. The other method of saving users etc does not retain passwords.
    As time goes on and you become more familiar with your server you will find more and more of this information out for yourself. Hopefully the simple advice I've given helps you understand Open Directory a little better.
    Hope this helps, Tony

  • What are the difference between TopLink and TopLink Essentials...?

    What are the difference between TopLink, TopLink Essentials, EclipseLink and TopLink Essentials-GlassFish?
    What is the difference of their functions?
    Edited by: qkc on Nov 21, 2009 10:52 AM

    Difference between TopLink and ToPLink Essentials:
    TopLink Essentials are the reference implementation (RI) of JPA, is an open source effort that is licensed under the Common Development and Distribution License (CDDL) v1.0. It can be freely downloaded and used under the terms of this license agreement. This means, you can only use it for the management of persistence and orm with Java EE and Java SE. The binary distribution of TopLink consist of 2 jars:
    * toplink-essentials-agent.jar: contains Java Persistence API; XML Schemas and TopLink essentials implementation
    * toplink-essentials.jar: contains java agent class requires in a standolane Java SE application
    In addition to TopLink Essentials that makes the JPA implementation alive, Oracle offers its Oracle TopLink product (10.1.3) that contains an earlier preview binary of JPA and also offers developers additional object-relational capabilities, object-XML mapping (JAXB), non-relational mapping using Java 2.0 Connector Architecture (JCA).
    Let's wait other person to answer these questions.

  • What are the relation between JPA and Hibernate, JPA and TopLink?

    What are the relation between JPA and Hibernate, JPA and TopLink?
    Can JPA instead of Hibernate and TopLink?

    The Java Persistence API (JPA) is the object relational mapping persistence
    standard for Java. Hibernate and TopLink provide an Open source Object-relational mapping framework for Java.
    They provide an implementation for the Java Persistence API. In my opinion, both Hibernate and TopLink provide support to JPA
    and they can also be regarded as the complementary to JPA.
    Let's wait to see other person's opinions.

  • Classes12.jar and nls_charset12.jar Version

    I am running a java application that talks to 9.2.0.1 Oracle database. I am using classes12.jar,ocrs12.jar and nls_charset12.jar and neither of the jars have a manifest file with a verson number. The classes in the classes12.jar and ocrs12.jar were compiled on 5/17/2001 and the classes in nls_charset12.jar were compiled on 7/13/2000. I need to know what version these jars are, is there any way for you to tell me based on the compilation dates. I tried looking on Oracle download sites for the 9.2.0.1 jdbc jars and they all had classes that were compiled on different dates.
    thank you very much

    You can find out the version of the JDBC driver you're using by creating a DatabaseMetaData object and querying it. The snippet below should work:
        DatabaseMetaData meta = conn.getMetaData();
        // gets driver info:
        System.out.println("\n=============\nDatabase Product Name is ... " +
                           meta.getDatabaseProductName());
        System.out.println("\nDatabase Product Version is " +
                           meta.getDatabaseProductVersion());
        System.out.println("\n=============\nJDBC Driver Name is ........ " +
                           meta.getDriverName());
        System.out.println("\nJDBC Driver Version is ..... " +
                           meta.getDriverVersion());
        System.out.println("\nJDBC Driver Major Version is " +
                           meta.getDriverMajorVersion());
        System.out.println("\nJDBC Driver Minor Version is " +
                           meta.getDriverMinorVersion());
        System.out.println("\n=============");I know of no way, however, to get this information based on the compilation dates of the files.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Invalid or corrupt jarfile agent.jar

    Dear All
    when i try to configure agent on target host its giving this error Invalid or corrupt jarfile agent.jar
    i donload this agent.jar from audit vault and copy to target host and tried
    -bash-3.00$ pwd
    /u01/software
    -bash-3.00$ ls -ltr
    total 2587492
    drwxrwxr-x 9 grid oinstall 512 Nov 6 2009 grid
    -rwxrwxr-x 1 grid oinstall 1179516027 Jul 21 2010 solaris.sparc64_11gR2_grid.zip
    drwxrwxr-x 3 grid oinstall 512 Jul 22 2010 Database
    -rw-r--r-- 1 oracle oinstall 144604814 Mar 26 08:58 agent.jar
    -bash-3.00$ java -jar agent.jar -d avagent
    Invalid or corrupt jarfile agent.jar
    please advice me.
    Thanks

    please see my java
    -bash-3.00$ which java
    */usr/bin/java*
    -bash-3.00$ java -version
    java version "1.5.0_36"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_36-b03)
    Java HotSpot(TM) Server VM (build 1.5.0_36-b03, mixed mode)

  • How to verify OC4J uses Oracle Toplink 10.x and not Toplink Essentials

    Hi,
    We dont want to use the default JPA provider "Toplink *Essentials*" that comes with OC4J. Rather we want to use Oracle Toplink 10.x
    I downloaded [Oracle Toplink 10.x|http://www.oracle.com/technology/software/products/ias/htdocs/1013topsoft.html] and followed the installation instructions:- http://www.oracle.com/technology/products/ias/toplink/doc/10131/install/install.html#CHDBBIFB
    When i deploy my EJB 3.0 appliation and invoke a JPA Entity, i can see the server log:- NOTIFICATION TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
    Do i have to do any other configuration/setting to ensure that i use Oracle Toplink and not Toplink Essentials in OC4J?
    Thanks in Advance,
    Prashant Tejura
    Edited by: user1186295 on May 26, 2009 10:33 AM

    rashant,
    Hi, there are currently the following providers to choose from - you may want to consult your rep for any details on moving from 10.1.3.4 to 10.1.3.5.
    1) TopLink or EclipseLink using EclipseLink JPA - the RI for JPA for WebLogic, OC4J and GlassFish
    - EclipseLink JPA is focus of all current JPA development as part of EclipseLink and TopLink
    2) Another open-source JPA implementation like OpenJPA or Hibernate
    Deprecated:
    3) TopLink using TopLink JPA - replaced by (1) TopLink using EclipseLink JPA
    4) TopLink using TopLink Essentials JPA - replaced by (1) TopLink using EclipseLink JPA
    Changes to server.xml as follows:
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Modify_server.xml
    <shared-library name="oracle.persistence" version="1.0" library-compatible="true">
              <code-source path="../../../eclipselink/eclipselink.jar"/>
              <code-source path="../../../eclipselink/javax.persistence_*.jar"/>
              <import-shared-library name="oracle.jdbc"/>
         </shared-library>
    Changes to persistence.xml as follows: (container-managed JTA datasource)
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Persistence.xml
    <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="example" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>jdbc/OracleDS</jta-data-source>
    <class>org.eclipse.persistence.example.jpa.server.business.Cell</class>
    <properties>
    <property name="eclipselink.target-server" value="OC4J"/>
    <property name="eclipselink.logging.level" value="FINEST"/>
    </properties>
    </persistence-unit>
    </persistence>
    You should see output similar to the following in your server log:
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Console_Output
    [EL Finest]: 2009-02-26 14:04:34.464--ServerSession(8634980)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Begin deploying Persistence Unit example; state Predeployed; factoryCount 1
    [EL Info]: 2009-02-26 14:04:34.542--ServerSession(8634980)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--EclipseLink, version: Eclipse Persistence Services - ***
    [EL Fine]: 2009-02-26 14:04:35.213--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Detected Vendor platform: org.eclipse.persistence.platform.database.oracle.Oracle10Platform
    [EL Config]: 2009-02-26 14:04:35.26--ServerSession(8634980)--Connection(5230779)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Connected: jdbc:oracle:thin:@//1y.yyy.yy.yy:1521/ORCL
         User: SCOTT
         Database: Oracle Version: Oracle Database 11g Release 11.1.0.0.0 - Production
         Driver: Oracle JDBC driver Version: 10.1.0.5.0
    [EL Finest]: 2009-02-26 14:04:35.385--UnitOfWork(5746770)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--PERSIST operation called on: org.eclipse.persistence.example.jpa.server.business.Cell@9107088( id: null state: null left: null right: null parent: null references: null).
    [EL Fine]: 2009-02-26 14:04:35.807--ClientSession(5748500)--Connection(6653899)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--INSERT INTO EL_CELL (ID, STATE, TSEQ, RIGHT_ID) VALUES (?, ?, ?, ?)
         bind => [551, null, null, null]
    thank you
    /michael
    www.eclipselink.org

  • I have Mac Pro with Keynote and other essentials installed. How can I download the same on my IPAD without paying to download.

    I have Mac Pro with Keynote and other essentials installed. How can I download the same on my IPAD without paying to download.

    Try downloading them onto the iPad normally. If you're asked to pay for them, you can't.
    The developer needs to create the two versions separately.
    (116544)

  • The icon of microsoft security essentials disappear and i can't scan or update my computer and also some updates for microsoft security essentials they fail to update

    I have xp system, and the icon of microsoft security essentials disappear and i can't scan or update my computer

    Same also occour in Windows 7, happened with more than
    one
    occasion, so it,s seems not to be related to faliur in installalation or Windows XP. Have
    also
    seen
    it
    on several
    different
    Windows
    7
    clients.
    It is
    common way
    for many, response on problems, that explain the
    errors/problems are not related to
    MS products.
    "Just Reboot
    and reinstall".
    General
    conclusion is, the
    problem
    has
    most likely not root in current
    product,
    but in the second
    circumstance. And there stop the respons, (Please remember to click “Mark as Answer” on the post that helps you)

Maybe you are looking for

  • Problem with itouch headphone connection using Bose IE2

    Ok, so i've got a pair of Bose IE2 headphones that work fine in my computer, but there are connection issues in my itouch. If the input is turned at all I can only hear music through one ear piece. Very frustrating because I can't listen to music wit

  • MIRO : Moving average price for material is negative

    Hi, i post an invoice but the system gives me this message : "Moving average price for material is negative: 120462 M411" i tried to change the average price (MR21) but really it is not a solution. is there any other solution to post this invoice? Re

  • BAPI to Re-Open Work Order

    Dear all, Does anybode know of a BAPI that could re-open a work order (cancel tech completion) Thanks, John.

  • N80 PC Suite wont backup phone (connection lost)

    After i received my phone and played with it a bit i installed the Nokia PC Suite and made a backup successfully Now after a couple of weeks use i thought it would be a good idea to make an up-to-date backup of the phone, however now when i try and b

  • WebI reports getting corrupted after pointing to different version of the Universe

    Post Author: Sujitha CA Forum: WebIntelligence Reporting Hi I am facing a very difficult and weird problem ..plz help !!! I am curently working in a project which has different phases of testing.While migrating my reports from Dev environment to SYS,