XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 4.11.0
    • 4.15.0
    • None
    • None
    • Workaround Exists
    • Hide

      example workaround from AS7 DataSourceDeploymentService:

      protected TransactionManager getTransactionManager() {
      AccessController.doPrivileged(new SetContextLoaderAction(com.arjuna.ats.jbossatx.jta.TransactionManagerService.class
      .getClassLoader()));
      try

      { return getTxm().getValue().getTransactionManager(); }

      finally

      { AccessController.doPrivileged(CLEAR_ACTION); }

      }

      Show
      example workaround from AS7 DataSourceDeploymentService: protected TransactionManager getTransactionManager() { AccessController.doPrivileged(new SetContextLoaderAction(com.arjuna.ats.jbossatx.jta.TransactionManagerService.class .getClassLoader())); try { return getTxm().getValue().getTransactionManager(); } finally { AccessController.doPrivileged(CLEAR_ACTION); } }

    Description

      I'm trying to load a JPA PersistenceProvider with AS7 and the thread context classloader seems to be used. Could this be changed please? Any chance to get a fix into AS7 in the next few days?

      This happens at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.<clinit>(TransactionImple.java:1859

      Full exception dump (there are other errors after that can be ignored): http://pastebin.com/1i9pqvGs

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-jhallida Jonathan Halliday
              smarlow1@redhat.com Scott Marlow
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: