0 Replies Latest reply on Mar 21, 2016 3:06 AM by rishianand50

    Spring configuration error ! I am getting some error while configuring modeshape with spring

    rishianand50

      I am getting below error :

       

      'repositoryFactory' while setting bean property 'repository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'atomikosTransactionManagerLookup' defined in file [/usr/local/apache-tomcat-8.0.29/webapps/ROOT/WEB-INF/classes/spring/service/cliqr-mgmt-content-repository-context.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'atomikosTransactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in file [/usr/local/apache-tomcat-8.0.29/webapps/ROOT/WEB-INF/classes/spring/service/mgmt-content-repository-context.xml]: Invocation of init method failed; nested exception is com.atomikos.icatch.SysException: UserTransactionServiceImp: property not defined: com.atomikos.icatch.service


      repository-configuration.json :


      {

          "name" : "sample",

          "jndiName" : "",

          "monitoring" : {

              "enabled" : true

          },

          "storage" : {

              "transactionManagerLookup" : {

                  "name" : "com.abc.mgmt.modeshape.

      jcr.AtomikosTransactionManagerLookup"
              },
              "binaryStorage" : {
                  "type" : "file",
                  "directory": "${java.io.tmpdir}/modeshape_spring_sample/binaries",
                  "minimumBinarySizeInBytes" : 40
              }
          },
          "workspaces" : {
              "default" : "default",
              "allowCreation" : true
          },
          "security" : {
              "anonymous" : {
                  "roles" : ["readonly","readwrite","admin"],
                  "useOnFailedLogin" : false
              }
          }
      }