glassfish
  1. glassfish
  2. GLASSFISH-3317

Deploying a EJB Module containing persistence.xml and sun-resources.xml fails

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.1pe
    • Fix Version/s: not determined
    • Component/s: jca
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      3,317

      Description

      Win XP
      GlassFish b54

      Deploying an ejb project from NetBeans that contains both persistence.xml and
      sun-resources.xml
      containing the required resources fails with following exception,

      TopLink, version: Oracle TopLink Essentials - 2.0 (Build b52-rc (06/20/2007))
      Server: unknown
      RAR7010: Pool not reachable.
      RAR5114 : Error allocating connection : [This pool is not registered with the
      runtime environment]
      Exception occured in J2EEC Phase
      com.sun.enterprise.deployment.backend.IASDeploymentException:
      Internal Exception: java.sql.SQLException: This pool is not registered with the
      runtime environment

      Complete stacktrace is attached.

      It appears that the persistence.xml is loaded/executed before the
      sun-resources.xml is loaded and hence required resources are not found.

      Deploying the app containing persistence.xml but without the sun-resources.xml
      succeeds if resources are pre-registered on the server.
      Attached project : CustomerCMP-ejb

      Deploying the app containing sun-resources.xml but without the persistence.xml
      succeeds and the resources defined in the sun-resources.xml are successfully
      registered.
      Attached project : CustomerCMP-ejbWOPersistence

      Associated NetBeans issue : http://www.netbeans.org/issues/show_bug.cgi?id=106980

      1. CustomerCMP-ejbWOPersistence.zip
        22 kB
        nityad
      2. server.log
        4 kB
        nityad

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Jagadish
            Reporter:
            nityad
          • Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: