Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-13343

TransactionManager not injected into a servlet module in a v2 plugin

    XMLWordPrintable

    Details

      Description

          private PlatformTransactionManager transactionManager;
          
          public void setTransactionManager(PlatformTransactionManager transactionManager)
          {
              this.transactionManager = transactionManager;
          }
      

      When the doGet() method is executed, transactionManager is null. If I try to get the transactionManager from the ContainerManager and assign it to the transactionManager field in the servlet, I get a ClassCastException.

      If I revert the plugin to v1, the problem is gone. Was able to reproduce with Confluence 2.10-SNAPSHOT as of Oct 10, 2008.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              akazatchkov Anatoli
              Reporter:
              dchui DavidA
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: