Try the following: <?xml version="1.0" encoding="KOI8-R"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:ldap="http://apache.org/cocoon/LDAP/1.0">
instead of <xsp:page language="java" xmlns:ldap="http://www.apache.org/2000/LDAP" xmlns:xsp="http://apache.org/xsp" xmlns:session="http://apache.org/xsp/session/2.0" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:xsp-request="http://apache.org/xsp/request/2.0" > Yes, that works. now, how can I use it? When I use it like : > <map:pipeline> > <map:match pattern="testldap"> > <map:generate type="serverpages" > src="workflowmanager/documents/{1}.xsp"/> > <map:transform type="ldap"/> > <map:serialize/> > </map:match> > </map:pipeline> > and in the xsp page I write this sample page (from the apache site). And > then I just get text as result. The tags aren't interpreted. > > <xsp:page language="java" > xmlns:ldap="http://www.apache.org/2000/LDAP" > xmlns:xsp="http://apache.org/xsp" > xmlns:session="http://apache.org/xsp/session/2.0" > xmlns:esql="http://apache.org/cocoon/SQL/v2" > xmlns:xsp-request="http://apache.org/xsp/request/2.0" > > > > > <page> > <ldap:execute-query> > <ldap:server-url>ldap://ldap.innosoft.com</ldap:server-url> > <ldap:query>(&(objectclass=pet)(cn=B*))</ldap:query> > <ldap:search-base>ou=Pets,dc=Innosoft,dc=com</ldap:search-base> > > <ldap:scope>one</ldap:scope> > <ldap:deref-link>true</ldap:deref-link> > <ldap:count-limit>10</ldap:count-limit> > <ldap:attributes>owner,givenname,description</ldap:attributes> > <ldap:relative-dn>false</ldap:relative-dn> > </ldap:execute-query> > </page> > </xsp:page> > > > > -----Original Message----- > From: Yury Mikhienko [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 04, 2003 2:39 PM > To: [EMAIL PROTECTED] > Subject: Re: XSP & LDAP > > > Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional > Check the $COCOON_SRC_DIR/lib/jars.xml > for following lines: > <file> > <title>jndi LDAP API</title> > <description>Java API for LDAP works</description> > <used-by>LDAP Transformer</used-by> > <lib>optional/jndi.jar</lib> > <homepage>http://java.sun.com/products/jndi</homepage> > </file> > > and rebuild the cocoon. > > After rebuilding, in the > $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation > you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class > > > there aren't in the cocoon.jar (org/apache/cocoon/transformation) > > Should I add them? Where can I find them? > > > > Check the : > > LDAPTransformer.class > > LDAPTransformer$LDAPQuery.class > > in the your cocoon.jar (org/apache/cocoon/transformation) > > > > > I have them, into the cocoon/web-inf/lib I have these libs : > > > jndi.jar > > > jaas.jar > > > ldap.jar > > > ldapbp.jar > > > ldapsec.jar > > > providerutil.jar > > > > > > but I doesn't work. Still have the "class not found" error > > > > > > > When I declare the transformer > > > > <map:transformer name="ldap" > > > > src="org.apache.cocoon.transformation.LDAPTransformer"/> > > > > in the sitemap I get the error "class not found". > > > > Do I need some special libs? > > > > > > You must have the jndi.jar or use the J2SDK 1.4.1 family > > > > > > >I have tomcat 4.1.24 & cocoon 2.0 > > > > > > > > Thanks > > > > > > > > -----Original Message----- > > > > From: Martin Holz [mailto:[EMAIL PROTECTED] > > > > Sent: Wednesday, June 04, 2003 11:15 AM > > > > To: [EMAIL PROTECTED] > > > > Subject: Re: XSP & LDAP > > > > > > > > > > > > <[EMAIL PROTECTED]> writes: > > > > > > > > > Hello, > > > > > I would like to get some information about how to use the LDAP > > > > > transformer (first of all, in wich library the classes are), > > > > > > > > In cocoon-naming-block.jar. > > > > > > > > > > > -- > > > > Best regards, > > Yury Mikhienko. > > IT engineer, ZAO "Mobicom-Kavkaz" > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- > > Best regards, > Yury Mikhienko. > IT engineer, ZAO "Mobicom-Kavkaz" > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]