Announcement Announcement Module
Collapse
No announcement yet.
NoClassDefFoundError: com.sun.jndi.ldap.ctl.ResponseControlFactory Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NoClassDefFoundError: com.sun.jndi.ldap.ctl.ResponseControlFactory

    I am currently implementing a dao, along the following lines:

    applicationContext.xml
    Code:
           <bean id="contextSource"
    		class="org.springframework.ldap.support.LdapContextSource">
    		<property name="url" value="ldap://blah.internal.net" />
    		<property name="base" value="o=company" />
    		<property name="userName" value="" />
    		<property name="password" value="" />
    	</bean>
    
    	<bean id="ldapTemplate"
    		class="org.springframework.ldap.LdapTemplate">
    		<constructor-arg ref="contextSource" />
    	</bean>
    
    	<bean id="springPersonDao"
    		class="example.dao.spring.PersonDaoImpl">
    		<property name="ldapTemplate" ref="ldapTemplate" />
    	</bean>
    When I run my junit test, the following console output occurs:
    Error creating bean with name 'contextSource' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com.sun.jndi.ldap.ctl.ResponseControlFactory

    I have Googled the com.sun.jndi.ldap.ctl.ResponseControlFactory class, but can find nothing relevent.

    Any ideas, anyone?

    Thanks

  • #2
    Are you running the latest version (1.2.1)?

    Comment

    Working...
    X