tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holscher, David M" <David.Holsc...@NAV-INTERNATIONAL.com>
Subject TC 4.0 Final breaks my ldap
Date Tue, 18 Sep 2001 12:55:32 GMT

For some reason TC 4.0 Final includes more jars in the common/lib directory
that the release candidates. My ldap connections are no longer work without
removing ldap.jar. (I further suspect that including other jars that weren't
included before like jaxp and crimson will break other applications.)
Shouldn't it be up to users of JRE's prior to 1.3 to include the LDAP
library on their own? I'm simply trying to make an LDAP connection:

      ldap = (new InitialDirContext()).open(ictx,
"ldap://ldapserver/cn=Recipients,ou=USAEXCH01,o=NAV")

I suspect there is some conflict with the LDAP library included with TC and
the one included with 1.3. Here is the exception I get:

java.lang.NoClassDefFoundError: com/sun/jndi/toolkit/chars/CharacterEncoder
	at com.sun.jndi.ldap.Connection.(Connection.java:238)
	at com.sun.jndi.ldap.LdapClient.(LdapClient.java:113)
	at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2384)
	at com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:244)
	at
com.sun.jndi.url.ldap.ldapURLContextFactory.getUsingURLIgnoreRootDN(ldapURLC
ontextFactory.java:55)
	at
com.sun.jndi.url.ldap.ldapURLContext.getRootURLContext(ldapURLContext.java:4
7)
	at com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)
	at
com.sun.jndi.url.ldap.ldapURLContext.lookup(ldapURLContext.java:80)
	at javax.naming.InitialContext.lookup(Unknown Source)
	at itec.biz.Contact.open(Contact.java:38)
	at itec.biz.Contact.ldapConnection(Contact.java:48)
	at itec.biz.Contact.reallySearch(Contact.java:100)
	at itec.biz.Contact.search(Contact.java:131)
	at itec.biz.Contact.search(Contact.java:127)
	at org.apache.jsp.Home$jsp._jspService(Home$jsp.java:105)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:215)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:518)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1005)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098
)
	at java.lang.Thread.run(Unknown Source)



_______________________
David Holscher 
"It is a painful thing to look at your own trouble and know that you
yourself and no one else has made it." - Sophocles, Ajax, c. 450 B.C. 

Mime
View raw message