cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marian Steinbach <>
Subject Bad Luck witch LDAP processing
Date Fri, 30 Jun 2000 23:20:41 GMT

Yet another LDAP problem. I allready read the archive, so:

I got

- Servlet Engine:  Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java
1.3.0rc1; Windows 98 4.10 x86; java.vendor=Sun Microsystems Inc.)
- Cocoon 1.7.4
- jndi.jar, ldap.jar, providerutil.jar, ... in my classpath (passed via
tomcat.bat script on startup)

The Problem:

When I try to run my ldap.xml (configured by myself) I get the error message

  Exception: java.lang.ClassCastException: [B

It doesn´t matter if I have the jndi jars include in the classpath or not,
and there is nerly no difference between different ldap examples i use. The
reason is, for sure, not the search-base.

Unfortunately I have no clue what the error message means.

I post you the XML and XSL. Thanks for help!


<!-- begin ldap.xml -->

<?xml version="1.0"?>
<?xml-stylesheet href="ldap.xsl" type="text/xsl"?>
<?cocoon-process type="ldap"?>
<?cocoon-process type="xslt"?>


    <ldap-server name="ratz">
    <ldap-querydefs name="standard" default="yes"/>	

  <ldap-query server="ratz" ldap-searchbase="ou=Design,o=Fachhochschule
Koeln,c=DE" defs="standard">

<!-- end ldap.xml -->

<!-- begin ldap.xsl -->

<?xml version="1.0"?>

<!-- <xsl:stylesheet xmlns:xsl=""> -->

<xsl:stylesheet version="1.0"

  <xsl:template match="page">
      LDAP Search Results
    <body bgcolor="#ffffff">

 <xsl:template match="searchresult">
	<table cellspacing="0" cellpadding="6">
     <xsl:apply-templates select="cn"/>
     <xsl:apply-templates select="currentorganization"/>
     <xsl:apply-templates select="mail"/>
     <xsl:apply-templates select="telephonenumber"/>
     <xsl:apply-templates select="securephonenumber"/>
 <xsl:template match="cn">
	 <th bgcolor="tan" align="right">Common Name</th>

 <xsl:template match="currentorganization">
	 <th bgcolor="tan" align="right">Org</th>

 <xsl:template match="telephonenumber">
	 <th bgcolor="tan" align="right">Tel (work) #</th>

 <xsl:template match="securephonenumber">
	 <th bgcolor="tan" align="right">Secure #</th>

 <xsl:template match="mail">
	 <th bgcolor="tan" align="right">E-mail</th>
	   <xsl:attribute name="href">

 <xsl:template match="comment">


<!-- end ldap.xsl -->

View raw message