Announcement Announcement Module
Collapse
No announcement yet.
LDAP Transaction Manager Eorror Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • LDAP Transaction Manager Eorror

    Hello everybody~

    After following the spring-ldap reference document, I implement my LDAP codes but got a error while configure the transaction for LDAP operations.

    My configuration code is as following :
    Code:
    <beans>
      <!-- 
      LDAP Context Source
       -->
      <bean id="ldapContextSource" class="org.springframework.ldap.core.support.LdapContextSource">
    	<property name="url" value="ldap://127.0.0.1:389" />
    	<property name="base" value="dc=myWorld,dc=com,dc=cn" />
    	<property name="userDn" value="cn=Root,dc=myWorld,dc=com,dc=cn" />
    	<property name="password" value="123456" />
    	<property name="pooled" value="false"></property> 
      </bean>
      <!-- 
      LDAP Transaction Configuration
      -->
      <bean id="tranAwareContextSourceProxy" 
                class="org.springframework.ldap.transaction.compensating.manager.TransactionAwareContextSourceProxy">
          <constructor-arg ref="ldapContextSource" />
       </bean>
       
       <bean id="transactionManager" 
                class="org.springframework.ldap.transaction.compensating.manager.ContextSourceTransactionManager">
    	  <constructor-arg ref="tranAwareContextSourceProxy"></constructor-arg>
       </bean>
    However, once the tomcat server startup, it runs into the following error:
    Code:
     1 constructor arguments specified but no matching constructor found in bean 'transactionManager' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)
    Why it shows this error?

    In additionally, is there any simple samples or doucment on LDAP transaction manage?
    I am still not very clear with how to implement the transaction by following the code in spring-ldap reference document .

    Thanks in advanced.
Working...
X