How do I use openjpa2.0 instead of openjpa1.0

I use openjpa1.0 provider in weblogic10.3.4 before.
now I want use openjpa2.0 instead of openjpa1.0.
I according to this article (http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/weblogic#Problem_2:_JPA_2.0_persistence.xml_XSD_Enablement) to enable jpa2.0 .
but failed. it throws exception:
what do i do: seems an odd quirk of the EJB spec. The exception is:java.lang.AbstractMethodError: org.apache.openjpa.persistence.EntityManagerImpl.getMetamodel()Ljavax/persistence/metamodel/Metamodel;
     at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:111)
I try to delete openjpa1.0 jar file from modules directory.
the servier throws java.lang.NoClassDefFoundError org/apache/openjpa/conf/OpenJPAVersion
it seems the weblogic can't load the openjpa2.0 jar.
can somebody help me?

Hi,
My page quoted above is mostly for older versions of WebLogic 10.3.3.0 and below that could not handle container managed JPA 2.0 injection. For WebLogic 10.3.5.0 and 10.3.4.0 JPA 2.0 is fully functional but will need to be enabled (the best way is to install OEPE, create a server profile to your WebLogic 10.3.4/10.3.4 instance - and select the "Java Persistence 2.0 - Install" link on the dialog in the Eclipse IDE). However, Kodo (based on OpenJPA) is not actively developed. I would switch to EclipseLink which is the Java EE 6 reference implementation. You can do this by changing the default persistence provider in the console from Kodo to TopLink (wraps EclipseLink) or specifying the provider in your persistence.xml.
The link you quote is the section for WebLogic 10.3.3.0
What you need is the new section I wrote in Jan 2011 for the 10.3.4.0
http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/weblogic#20110115:_JPA_2.0_using_EclipseLink_on_WebLogic_10.3.4.0
See my tutorials for details - where you can also see the source.
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial
http://wiki.eclipse.org/EclipseLink/Examples/Distributed
thank you
Michael O'Brien
http://www.eclipselink.org

Similar Messages

  • How can i use text only instead of text plus the folder icon in the bookmarks toolbar; older firefox allowed this.

    I prefer using text only instead of text plus a folder icon in the bookmarks toolbar because it used less space and I can display more bookmark folders in that toolbar. Is that possible in Firefox 4.0? It was possible in the earlier versions of Firefox. If it is possible in Firefox 4.0 how do I do that? Thank you.

    First install the "Stylish:" extension then you have thousands of styles available to choose from, most consist of only a few lines, and you can modify them to suit yourself.
    * '''Stylish''' :: Add-ons for Firefox<br>https://addons.mozilla.org/firefox/addon/stylish/
    * '''Bookmarks Toolbar Fx4 Blue/Folders, Red/Bookmarks'''<br>http://userstyles.org/styles/46947/
    * '''some styles I use:'''<br>http://kb.mozillazine.org/User:Dmcritchie

  • How do I use the money on my iTunes account instead of the credit card on family share

    I have money on my iTunes account from a gift card, but how do I use that money instead of the credit card on the family share account. Every time I try to make a purchase asked for the security code for the credit card instead of just using the money on my account.

    Buy stuff.
    If you are asking about getting the cash value out, it is not possible.  The credit balance can only be used for purchases in the iTunes Store.

  • How can I use the credit on my account instead of credit card to buy apps?

    I have a gift card credit on my account but when I want to buy an app it takes me to my credit card details. How can I use my credit on my account instead of credit card?

    You shouldn't have to put in a credit card, no, but from time to time the iTunes Store seems for some reason to try to insist on one. If just confirming your mailing address doesn't stop it from complaining, go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • How to maintain Ztable using function module instead of SM30

    Hi Friends,
    please tell me , How to maintain Ztable or view using function module instead of SM30.
    Thanks,
    Veerendra.

    Hi,
    You can design your report and use Function module VIEW_MAINTENANCE_CALL for that.
    You need to use Action type as 'S' for displaying and 'U' for maintaining the table.
    Ex:
    CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
      EXPORTING
        ACTION                               =  'S'
        VIEW_NAME                            =  'Table Name'
    EXCEPTIONS
       CLIENT_REFERENCE                     = 1
       FOREIGN_LOCK                         = 2
       INVALID_ACTION                       = 3
       NO_CLIENTINDEPENDENT_AUTH            = 4
       NO_DATABASE_FUNCTION                 = 5
       NO_EDITOR_FUNCTION                   = 6
       NO_SHOW_AUTH                         = 7
       NO_TVDIR_ENTRY                       = 8
       NO_UPD_AUTH                          = 9
       ONLY_SHOW_ALLOWED                    = 10
       SYSTEM_FAILURE                       = 11
       UNKNOWN_FIELD_IN_DBA_SELLIST         = 12
       VIEW_NOT_FOUND                       = 13
       OTHERS                               = 14.
    Hope this helps.
    Message was edited by: Imtiaz Ahmed

  • How do i use my number for imessaging instead of my email

    how do i use my number for imessage instead of email

    Hello there, qbullard.
    The following Knowledge Base article reviews the process for adding your number to iMessage:
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • How can I use my external hard drive for my iphoto instead of my mac book pro memory?

    i don't know if this question has been asked before: how can I use my external hard drive for my iphoto instead of my mac book pro memory? just like itunes all my song are save on my external hard drive. make sense?

    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • How can I assign a period (instead of B) in Keynote for blank screen so I can use a Logitech R800 presenter? An option in next version?

    I have recently bought a Logitech R800 presenter which works very well with Keynote on a MacBook Pro. The start/stop presentation key does not work but that can be easily fixed by assigning F5 to "Start presentation" for Keynote in the keyboard system preferences. The remaining issue is that the blank screen button sends a period (".") which works as a prompt for a blank screen in PowerPoint, but in Keynote it causes the slideshow to end. Keynote uses the letter "B" for blank screen.
    How can I assign a period (instead of B) in Keynote for blank screen? Some sort of work around would be very useful as I often use blank screen in my presentations and much prefer Keynote to PowerPoint.
    Perhaps it will be an option in next version of Keynote?
    Thanks

    As far as I know you can not change these keystrokes without changing the Program files. I am sure it is possible there, but I have no idea where to even start to tell you where to find it.
    Your best bet it to go to the Keynote Menu>Provide Keynote Feedback and let Apple know you would like the option to change them.

  • HT204053 I am not able to update my apps because every time I am doing this, it is asking for a password which I have never used and the person who used it is in no more contact. how can i get my id instead of his??

    I am not able to update my apps because every time I am doing this, it is asking for a password which I have never used and the person who used it is in no more contact. how can i get my id instead of his??

    Apps can only be updated using the same Apple ID and password they were originally purchased with.

  • How to use URL class instead of Socket

    Hi all. I am developing a small inventory control system for a warehouse.
    I am suing a Java desktop application that connects to a servlet via Internet.
    I have been searching the net how to use JSSE for my application since i am new to secure sockets and JSSE.
    Since I havent implemented security In my current system yet, i am using URLConnection conn = url.openConnection(); to connect to a servlet.
    However, in a good tutorial that I found about JSSE, sockets are used directly for connection, insted of URLCOnnection. They use the code like this: SSLSocketFactory sf = sslContext.getSocketFactory();
    SSLSocket socket = (SSLSocket)sf.createSocket( host, port ); Since, using sockets is overly complex for me, I want to make use of the URLConnection class instead to keep it simple.
    Could anyone please tell me how to make use of the URLConnection class to establish secure http connection.
    by the way, the tutorial is here:
    http://www.panix.com/~mito/articles/articles/jsse/j-jsse-ltr.pdf
    thanks.

    Here you go. The following code snippet allows you post data to http URL. If you have to do the same to https URL , please let me know.
    OutputStream writeOut = null;
    HttpURLConnection appConnection = null;
    URL appUrlOpen = null;
    //data to be posted.
    String data = "This is the test message to post";
    byte[] bytesData = this.data.getBytes();
    appUrlOpen = new URL(""Your Servlet URL");
    appConnection = (HttpURLConnection) appUrlOpen.openConnection();
    appConnection.setDoOutput(true);
    appConnection.setDoInput(true);
    appConnection.setUseCaches(false);
    appConnection.setInstanceFollowRedirects(false);
    appConnection.setRequestMethod("post");
    appConnection.setRequestProperty("Content-Type","application/text");
    appConnection.setRequestProperty("Content-length", String.valueOf(bytesData.length));
    writeOut=appConnection.getOutputStream();
    writeOut.write(bytesData);
    writeOut.flush();
    writeOut.close();
    String inputLine;
    StringBuffer sb = new StringBuffer();
    reader = new BufferedReader(new InputStreamReader(appConnection.getInputStream()));
    char chars[] = new char[1024];
    int len = 0;
    //Write chunks of characters to the StringBuffer
    while ((len = reader.read(chars, 0, chars.length)) >= 0)
    sb.append(chars, 0, len);
    System.out.println("Response " + sb.toString());
    reader.close();
    sb=null;
    chars = null;
    responseBytes = null;
    ******************************************************************************************

  • How to use Spring MVC instead of assembler.jsp in endeca 3.1.0

    Hi ,
    I am new to Endeca . I want to use spring MVC instead of assembler.jsp .Some body please help
    me how can i do it. Wht all i have to do to achieve it.
    Thanks
    Mark

    Hi Mark,
    When using the 3.1 Assembler in your application, you can use either the jar file directly or set up the Assembler as an HTTP service and process the XML or JSON responses. Neither of these approaches conflicts with using Spring in your application.
    Sean

  • How can I use the desktop gmail instead of mobile?

    How can I use the desktop gmail on iPad2 -
    instead of the mobile version or app?

    Scroll all the way to the bottom of the screen in the mobile site. There is (or at least there used to be) a link to the standard site.
    Really, though, the experience through the Gmail app is much better.
    Best of luck.

  • How can i use the project code instead of project xml?

    hello
    i use the sessionbean+toplink structure,after i finish the o-r mapping by using the mapping work bench,i generate the project xml file,then in the "session.xml" file,i refer to the project xml,then i can use it from sessionbean.
    i hear that if i use the project code instead of project xml file,it will be more performant,is that true?
    otherwise,how can i use the project code instead of project xml file?i mean, in "session.xml", i can use the "<project-xml>" tag to refer to the project xml file,then in my session bean,i get the server session by read the "session.xml" file.but if i use the project code,how can i refer it from the "session.xml"?the examples that come with the toplink installation only tell me how can i use the project xml file within the session bean,it don't give me any clue about using the project code in the sesion bean,who can give me a step-by-step instruction and code snippet?
    thank you very much?

    There is a slight performance gain during session load at startup but there is no difference at runtime. The choice of which to use is dependent upon you build process. Whether it is easier to submit a new version of the class into the comile build process vs an XML file. In most cases it is just a preference of the development team.
    When you use the project-class you'll need to generate the source code and compile it into your system. Typically it is packaged with the persistent classes. You may need to configure your environment so that the class-loaders have access to these classes (same for the XML case).
    When using the project-class you simply replace the project-xml entry like this:
    <project-class>oracle.toplink.demos.employee.relational.EmployeeProject</project-class>
    The DTD for the session.xml file is found at <TOPLINK_HOME>\core\sessions_4_5.dtd. It is also in the documentation at:
    http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/toplink.903/b10064/a-sessio.htm#634246
    Doug Clarke
    Product Manager
    Oracle9iAS TopLink

  • How to generate PDF report directly instead of RPT report by using JRC ?

    Hi,
    Good Day !
    How to generate PDF report directly instead of RPT report by using Crystal Reports XI Release 2 Java Reporting Component (JRC) in desktop (Swing thick-client) ?
    My GUI program will generate a RPT report, then i can export to PDF file, this is ok, no problem.
    BUT
    i want it direct to generate a PDF report, not a RPT report.
    The code like below (2 java files)
    ClassA.java
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(XXX, 0);  
    ParameterFieldController paramFieldController = reportClientDoc.getDataDefController().getParameterFieldController();
    paramFieldController.setCurrentValue("", "XXX", DomainClass.getXXX());        
    new ReportViewerFrame(reportClientDoc);
    // End of ClassA.java
    // Begin ReportViewerFrame.java
    public class ReportViewerFrame extends JFrame
           //Initial window frame properties.
         private final int XPOS = 80;
         private final int YPOS = 60;
         private final int WIDTH = 760;
         private final int HEIGHT = 550;
         private ReportViewerBean reportViewer = new ReportViewerBean();     
         private ReportClientDocument reportClientDoc = new ReportClientDocument();     
         public ReportViewerFrame(ReportClientDocument reportClientDoc) throws    Exception
              //Initialize frame properties.
              this.setResizable(true);
              this.setLocation(XPOS, YPOS);
              this.setSize(WIDTH, HEIGHT);
              this.setTitle("Crystal Report Java Viewer");
              //Add GUI components to the frame including the ReportViewerBean.
              addComponents();
              //Add GUI listeners to the frame.
              addListeners();
              //Set the report that the ReportViewerBean will display.
              this.reportClientDoc = reportClientDoc;
              reportViewer.setReportSource(reportClientDoc.getReportSource());     
              reportViewer.init();
              reportViewer.start();
              //Display the frame.
              this.setVisible(true);     
    How to set the export option to PDF base on existing code ?
    Where can i download this package/jar ?
    regards

    Please find a console app that you can extend it to a JFrame app by importing the relevant swing package:
    //Crystal Java Reporting Component (JRC) imports.
    import com.crystaldecisions.reports.sdk.*;
    import com.crystaldecisions.sdk.occa.report.lib.*;
    import com.crystaldecisions.sdk.occa.report.exportoptions.*;
    //Java imports.
    import java.io.*;
    public class ExportReport {
         static final String REPORT_NAME = "ExportReport.rpt";
         static final String EXPORT_FILE = "C:\\myExportedReport.pdf";
         public static void main(String[] args) {
              try {
                   //Open report.               
                   ReportClientDocument reportClientDoc = new ReportClientDocument();               
                   reportClientDoc.open(REPORT_NAME, 0);
                   //NOTE: If parameters or database login credentials are required, they need to be set before.
                   //calling the export() method of the PrintOutputController.
                   //Export report and obtain an input stream that can be written to disk.
                   //See the Java Reporting Component Developer's Guide for more information on the supported export format enumerations
                   //possible with the JRC.
                   ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
                   //Release report.
                   reportClientDoc.close();
                   //Use the Java I/O libraries to write the exported content to the file system.
                   byte byteArray[] = new byte[byteArrayInputStream.available()];
                   //Create a new file that will contain the exported result.
                   File file = new File(EXPORT_FILE);
                   FileOutputStream fileOutputStream = new FileOutputStream(file);
                   ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());
                   int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());
                   byteArrayOutputStream.write(byteArray, 0, x);
                   byteArrayOutputStream.writeTo(fileOutputStream);
                   //Close streams.
                   byteArrayInputStream.close();
                   byteArrayOutputStream.close();
                   fileOutputStream.close();
                   System.out.println("Successfully exported report to " + EXPORT_FILE);
              catch(ReportSDKException ex) {
                   ex.printStackTrace();
              catch(Exception ex) {
                   ex.printStackTrace();
    As to the relevant jar(s) deployment refer to this link (Java Reporting Component Configuration):
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/JRC_SDK/jrc_java_dg_doc/doc/jrcsdk_java_dg/WorkingWithJRC2.html#1004391
    Cheers

  • How could i use resource bundle in managed bean instead of harding coding?

    component is created in managed bean programmatically, so how to set attributes(e.g. text, value) using resource bundling instead of hard coding, as like coding on the page directlly?
    Thanks for your help!
    Kevin.

    component is created in managed bean programmatically, so how to set attributes(e.g. text, value) using resource bundling instead of hard coding, as like coding on the page directlly?
    Thanks for your help!
    Kevin.

Maybe you are looking for

  • Import EPS and make transparent background

    Hi all, I'm basically a n00b with Illustrator.  I have an EPS logo (downloaded from here: http://www.allfreelogo.com/logo/federal-bureau-of-investigation-fbi-logo.html) and it imports perfectly to Illustrator. However, after I resize it, when I do th

  • Is it only me or is this laptop quite loud?

    First of all let me tell you that this is the first gaming notebook I've bought, since I absolutely need it due to the mobility of my job. Now I've been wondering why it seems to be really loud (the fans). I understand that notebooks may be a tick lo

  • Very large report

    Post Author: ny3ranger CA Forum: Crystal Reports Can anyone tell me if the crystal report xi developer supports the generation of very large reports. Like a report that is 30 inches wide lets say. What we are trying to to do is either 1. Generate ver

  • Help in CIN

    can anybody help me in understanding CIN, as i m new to SD. I have read a few topics too, but not not very clear from them. any pdf would be of great help.

  • How to best input shortcut phrases in progress?

    This feels very iOS 101, but when I start typing a word or phrase that I've set up,as a keyboard shortcut, or Auto Spell tries to complete for me. You get the little pop over window with the "x" at the end to stop it. Since iDevices don't have an Ent