Announcement Announcement Module
Collapse
No announcement yet.
Problem initializating testLdap contextSource Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem initializating testLdap contextSource

    Hi All,

    I´m trying to integrate the spring ldap library under an spring-hibernate-jsf aplication.

    I´m generatin a context Source bean like that. If I work with class="org.springframework.ldap.core.support.LdapC ontextSource" instead of org.springframework.ldap.test.TestContextSourceFac toryBean" it doesn´t show any error.

    <bean id="contextSource" class="org.springframework.ldap.test.TestContextSo urceFactoryBean">
    <property name="defaultPartitionSuffix" value="dc=jayway,dc=se" />
    <property name="defaultPartitionName" value="jayway" />
    <property name="principal" value="${userDn}"/>
    <property name="password" value="${password}" />
    <property name="ldifFile" value="classpath:setup_data.ldif" />
    <property name="port" value="3900" />
    </bean>

    When i debug my application, i found this error on the console.


    GRAVE: Excepción enviando evento inicializado de contexto a instancia de escuchador de clase org.springframework.web.context.ContextLoaderListe ner
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'contextSource' defined in class path resource [spring/CCApplicationContext-LDAP.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.directory.server.core.schema.SchemaServ ice: method <init>()V not found
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1338)
    Caused by: java.lang.NoSuchMethodError: org.apache.directory.server.core.schema.SchemaServ ice: method <init>()V not found
    at org.apache.directory.server.core.configuration.Sta rtupConfiguration.setDefaultInterceptorConfigurati ons(StartupConfiguration.java:184)

    I don´t know if it would be a jar version problem. this is my classpath.

    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry Web/WEB-INF/lib/ant-antlr.jar"/>
    <classpathentry Web/WEB-INF/lib/antlr.jar"/>
    <classpathentry Web/WEB-INF/lib/asm.jar"/>
    <classpathentry Web/WEB-INF/lib/aspectjrt-1.5.3.jar"/>
    <classpathentry Web/WEB-INF/lib/aspectjweaver-1.5.3.jar"/>
    <classpathentry Web/WEB-INF/lib/cglib-2.1.3.jar"/>
    <classpathentry Web/WEB-INF/lib/chartcreator-1.2.0.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-beanutils.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-codec.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-collections.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-dbcp-1.2.2.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-digester.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-el-1.0.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-fileupload-1.1.1.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-httpclient.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-io.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-lang-2.1.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-lang.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-logging.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-pool-1.4.jar"/>
    <classpathentry Web/WEB-INF/lib/dom4j.jar"/>
    <classpathentry Web/WEB-INF/lib/fop.jar"/>
    <classpathentry Web/WEB-INF/lib/hibernate3.jar"/>
    <classpathentry Web/WEB-INF/lib/itext-2.0.6.jar"/>
    <classpathentry Web/WEB-INF/lib/jcommon-1.0.9.jar"/>
    <classpathentry Web/WEB-INF/lib/jfreechart.jar"/>
    <classpathentry Web/WEB-INF/lib/jmxremote_optional.jar"/>
    <classpathentry Web/WEB-INF/lib/jsf-api.jar"/>
    <classpathentry Web/WEB-INF/lib/jsf-facelets.jar"/>
    <classpathentry Web/WEB-INF/lib/jsf-impl.jar"/>
    <classpathentry Web/WEB-INF/lib/jstl-1.0.6.jar"/>
    <classpathentry Web/WEB-INF/lib/jta.jar"/>
    <classpathentry Web/WEB-INF/lib/jtds-1.2.2.jar"/>
    <classpathentry Web/WEB-INF/lib/junit.jar"/>
    <classpathentry Web/WEB-INF/lib/log4j.jar"/>
    <classpathentry Web/WEB-INF/lib/ocrs12.jar"/>
    <classpathentry Web/WEB-INF/lib/ojdbc14_g.jar"/>
    <classpathentry Web/WEB-INF/lib/ojdbc14.jar"/>
    <classpathentry Web/WEB-INF/lib/poi-2.5.1-final-20040804.jar"/>
    <classpathentry Web/WEB-INF/lib/portlet-api-1.0.jar"/>
    <classpathentry Web/WEB-INF/lib/resolver.jar"/>
    <classpathentry Web/WEB-INF/lib/richfaces-api.jar"/>
    <classpathentry Web/WEB-INF/lib/richfaces-impl.jar"/>
    <classpathentry Web/WEB-INF/lib/richfaces-ui.jar"/>
    <classpathentry Web/WEB-INF/lib/serializer-2.7.0.jar"/>
    <classpathentry Web/WEB-INF/lib/servlet-api.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-security-acl-2.0.4.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-security-core-2.0.4.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-security-core-tiger-2.0.4.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-security-taglibs-2.0.4.jar"/>
    <classpathentry Web/WEB-INF/lib/standard-1.0.6.jar"/>
    <classpathentry Web/WEB-INF/lib/tomahawk-1.1.3.jar"/>
    <classpathentry Web/WEB-INF/lib/xalan-2.7.0.jar"/>
    <classpathentry Web/WEB-INF/lib/xmlgraphics-commons-1.2.jar"/>
    <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.contain er"/>
    <classpathentry Web/WEB-INF/lib/spring-ldap-1.3.0.RELEASE-all.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-ldap-1.3.0.RELEASE-sources.jar"/>
    <classpathentry Web/WEB-INF/lib/axis.jar"/>
    <classpathentry Web/WEB-INF/lib/jaxrpc.jar"/>
    <classpathentry Web/WEB-INF/lib/activation-1.1.jar"/>
    <classpathentry Web/WEB-INF/lib/antlr-2.7.6.jar"/>
    <classpathentry Web/WEB-INF/lib/aopalliance-1.0.jar"/>
    <classpathentry Web/WEB-INF/lib/backport-util-concurrent-2.2.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-daemon-1.0.1.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-httpclient-3.1.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-io-1.4.jar"/>
    <classpathentry Web/WEB-INF/lib/commons-logging-1.0.4.jar"/>
    <classpathentry Web/WEB-INF/lib/daemon-bootstrappers-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/jaxb-api-2.1.jar"/>
    <classpathentry Web/WEB-INF/lib/jaxb-impl-2.1.jar"/>
    <classpathentry Web/WEB-INF/lib/jdbm-1.0.jar"/>
    <classpathentry Web/WEB-INF/lib/jsr173-1.0.jar"/>
    <classpathentry Web/WEB-INF/lib/jstl-1.2.jar"/>
    <classpathentry Web/WEB-INF/lib/log4j-1.2.9.jar"/>
    <classpathentry Web/WEB-INF/lib/mina-core-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/mina-filter-ssl-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/shared-asn1-0.9.5.5.jar"/>
    <classpathentry Web/WEB-INF/lib/shared-asn1-codec-0.9.5.5.jar"/>
    <classpathentry Web/WEB-INF/lib/shared-ldap-0.9.5.5.jar"/>
    <classpathentry Web/WEB-INF/lib/slf4j-api-1.2.jar"/>
    <classpathentry Web/WEB-INF/lib/slf4j-log4j12-1.0.1.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-beans-2.5.6.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-context-2.5.6.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-context-support-2.5.6.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-core-2.5.6.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-jdbc-2.5.6.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-tx-2.5.6.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-web-2.5.6.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-webmvc-2.5.6.jar"/>
    <classpathentry Web/WEB-INF/lib/stax-api-1.0-2.jar"/>
    <classpathentry Web/WEB-INF/lib/typica-1.3.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-core-shared-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-kerberos-shared-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-protocol-changepw-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-protocol-kerberos-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-protocol-ldap-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-protocol-ntp-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-protocol-shared-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-server-jndi-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-server-main-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-server-ssl-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-all-1.5.4.jar"/>
    <classpathentry Web/WEB-INF/lib/apacheds-core-1.0.2.jar"/>
    <classpathentry Web/WEB-INF/lib/spring-2.5.6.jar"/>
    <classpathentry kind="output" path="bin"/>
    </classpath>

    Anyone have a similar error?

    Thanks
Working...
X