Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8465

TransactionSynchronizationRegistry lookup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.0.0.M4
    • Fix Version/s: 6.0.0.Final
    • Component/s: Naming
    • Labels:
    • Environment:

      Windows 7, JDK 1.6.0_21

      Description

      Posts: 1

      posted Today 12:18:20 private message
      Quote
      Hi,

      When I lookup TransactionSynchronizationRegistry using the following code:

      try

      { Context ctx = new InitialContext(props); transactionRegistry = (TransactionSynchronizationRegistry) ctx.lookup("java:TransactionSynchronizationRegistry"); }

      catch (Exception e)

      { .. }

      I am getting the following exception

      Caused by: javax.naming.NamingException: Could not dereference object [Root exception is java.lang.ClassCastException: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple cannot be cast to javax.naming.spi.ObjectFactory]
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1508) [:5.0.5.Final]
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:824) [:5.0.5.Final]
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) [:5.0.5.Final]
      at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_21]
      .....

      The lookup seems to work when using jboss-5.1.0.GA

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jhalliday Jonathan Halliday
                  Reporter:
                  melquiades.fagundez Melquiades Fagundez
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: