glassfish
  1. glassfish
  2. GLASSFISH-4005

Glassfish call to createContainerEntityManagerFactory contains parameter that causes TopLink JPA provider to fail initialization

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 9.1pe
    • Fix Version/s: 9.0pe
    • Component/s: entity-persistence
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      4,005
    • Status Whiteboard:
      Hide

      911Approved

      Show
      911Approved

      Description

      GlassFish calls createContainerEntityManagerFactory with the property:

      toplink.target-
      server=oracle.toplink.essentials.platform.server.sunas.SunAS9ServerPlatform

      This causes an initialization error when using Oracle TopLink because Oracle
      TopLink consumes the same property. This causes the following error when the
      server platform is initialized because Oracle TopLink tries to instantiate the
      TopLink Essentials version of the SunAS9ServerPlatform:

      Internal Exception: java.lang.NoSuchMethodException:
      oracle.toplink.essentials.platform.server.sunas.SunAS9ServerPlatform.<init>
      (oracle.toplink.sessions.DatabaseSession)

      The solution is to change the property that is specified to:

      toplink.target-server=SunAS9

      This string can be correctly interpretted by both Oracle TopLink and TopLink
      Essentials.

        Activity

        Hide
        harpreet added a comment -

        Approved for 911.

        Show
        harpreet added a comment - Approved for 911.
        Hide
        scm_issue_link added a comment -

        Code changed in glassfish
        User: mm110999
        Path:
        /glassfish/cmp/support/ejb/src/com/sun/jdo/spi/persistence/support/ejb/ejbc/PersistenceProcessor.java (1.17.6.2)
        /glassfish/appserv-core/src/java/com/sun/enterprise/server/PersistenceUnitLoaderImpl.java (1.17.2.1)
        /glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/persistence/DefaultProviderVerification.java (1.11.2.1)
        http://fisheye5.cenqua.com/changelog/glassfish/?cs=SJSAS91_FCS_BRANCH:mm110999:20080425224204

        Log:
        IN=112505 Make V2 codebase compatibe with more providers fromtoplink family. Issue 4005

        Show
        scm_issue_link added a comment - Code changed in glassfish User: mm110999 Path: /glassfish/cmp/support/ejb/src/com/sun/jdo/spi/persistence/support/ejb/ejbc/PersistenceProcessor.java (1.17.6.2) /glassfish/appserv-core/src/java/com/sun/enterprise/server/PersistenceUnitLoaderImpl.java (1.17.2.1) /glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/persistence/DefaultProviderVerification.java (1.11.2.1) http://fisheye5.cenqua.com/changelog/glassfish/?cs=SJSAS91_FCS_BRANCH:mm110999:20080425224204 Log: IN=112505 Make V2 codebase compatibe with more providers fromtoplink family. Issue 4005
        Show
        Mitesh Meswani added a comment - Fisheye link http://fisheye5.cenqua.com/changelog/glassfish/?cs=SJSAS91_FCS_BRANCH:mm110999:20080425224204

          People

          • Assignee:
            Mitesh Meswani
            Reporter:
            tware
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: