cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marian Steinbach <>
Subject LDAP; Exception: java.lang.ClassCastException: [B
Date Mon, 03 Jul 2000 09:15:11 GMT

I still have this problem with LDAP processing, so I try to pose the
question more clearly.

When I let cocoon process XSL pages using the LDAP processor I get the
following error message:

  Exception: java.lang.ClassCastException: [B

The page doesn´t show any result, only the page header ans the search filter
(value of ldap-query) appears in the page.

When I leave the search-base in my xml file empty, just like in the examples
coming with Cocoon, I get an error message from the LDAP server (code 32, no
such object...). This shows for me that LDAP the connection is correct.

Again, my platform:

- 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)

Thanks in advance for any hint!


Again, the XML and XSL files:

<!-- 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