You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jeremy Crosbie <je...@go2.com> on 2001/12/10 19:25:07 UTC
RE: Java code being dumped to browser. (newbie question)
My guess is you need to specify you are using the LDAP transformer like so
<map:transform type="ldap" src="crocker/eldap.xsl" /> . This requires that
you have defined this transformer in the first place, which is not done in
the default sitemap in the distribution. Add:
<map:transformer name="ldap"
src="org.apache.cocoon.transformation.LDAPTransformer" />
to the <map:transformers> element in the sitemap.
> -----Original Message-----
> From: Matthew Crocker [mailto:matthew@crocker.com]
> Sent: Monday, December 10, 2001 10:27 AM
> To: cocoon-users@xml.apache.org
> Subject: Java code being dumped to browser. (newbie question)
>
>
> Hello all,
>
> I'm setting up cocoon2 with tomcat, both are latest versions from the
> website. The examples from tomcat and cocoon2 work fine. I'm also
> trying to setup ELDAP and I'm having some trouble. I created a
> pipeline in sitemap.xmap and when I bring up the URL in the browser I
> see that the eldapbasiccample.xml is being transformed by the eldap.xsl
> logicsheet but then the resulting java code is dumped to the browser. I
> need to know how to get cocooon2 to execute the code and the process the
> resulting XML -> HTML for display on the browser.
>
> Here is my pipeline info, I'm sure it is something I'm missing but I
> just can't figure it out with the docs in the distrbution.
>
> <map:pipeline>
> <map:match pattern="crocker">
> <map:generate src="crocker/eldapbasicsample.xml"/>
> <map:transform src="crocker/eldap.xsl"/>
> <map:serialize type="html"/>
> </map:match>
> </map:pipeline>
>
>
> I'm assuming I just need another transform entry to process the java but
> I don't know which one to put it.
>
> Thanks for any help
>
> -Matt
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Java code being dumped to browser. (newbie question)
Posted by Hubert NEOtyk Iwaniuk <hu...@office.ferienwelt.com.pl>.
On Mon, Dec 10, 2001 at 01:50:24PM -0500, Matthew Crocker wrote:
> Jeremy Crosbie wrote:
>
> >My guess is you need to specify you are using the LDAP transformer like so
> ><map:transform type="ldap" src="crocker/eldap.xsl" /> . This requires that
> >you have defined this transformer in the first place, which is not done in
> >the default sitemap in the distribution. Add:
> >
> ><map:transformer name="ldap"
> >src="org.apache.cocoon.transformation.LDAPTransformer" />
> >
> >to the <map:transformers> element in the sitemap.
> >
>
> I already put in the map:transformer entry and when I add 'type="ldap"'
> to my transformer line in the pipe line I get :
>
> ldap://localhost uid=matthew dc=crocker,dc=com base true 0 * 0 false
> error objectClass
>
> as output to the browser. This looks like the ldap transformer is
> parsing the eldapbasicsample.xml file and dumping it the screen without
> actually doing any LDAP look. I have slapd running in another window
> and I do not see any connection attempts made to the ldap server.
>
> The above output happens when I have the following pipeline
>
> <map:pipeline>
> <map:match pattern="crocker">
> <map:generate src="crocker/eldapbasicsample.xml"/>
Try this:
<map:generate type="serverpages"
src="crocker/eldapbasicsample.xml"/>
this is my guessing.
> <map:transform type="ldap" src="crocker/eldap.xsl"/>
> <map:serialize type="html"/>
> </map:match>
> </map:pipeline>
>
> And I have the following in my transformer map
>
> <map:transformer name="ldap"
> src="org.apache.cocoon.transformation.LDAPTransformer"/>
> </map:transformers>
>
>
HTH,
hubert.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Java code being dumped to browser. (newbie question)
Posted by Matthew Crocker <ma...@crocker.com>.
Jeremy Crosbie wrote:
>My guess is you need to specify you are using the LDAP transformer like so
><map:transform type="ldap" src="crocker/eldap.xsl" /> . This requires that
>you have defined this transformer in the first place, which is not done in
>the default sitemap in the distribution. Add:
>
><map:transformer name="ldap"
>src="org.apache.cocoon.transformation.LDAPTransformer" />
>
>to the <map:transformers> element in the sitemap.
>
I already put in the map:transformer entry and when I add 'type="ldap"'
to my transformer line in the pipe line I get :
ldap://localhost uid=matthew dc=crocker,dc=com base true 0 * 0 false
error objectClass
as output to the browser. This looks like the ldap transformer is
parsing the eldapbasicsample.xml file and dumping it the screen without
actually doing any LDAP look. I have slapd running in another window
and I do not see any connection attempts made to the ldap server.
The above output happens when I have the following pipeline
<map:pipeline>
<map:match pattern="crocker">
<map:generate src="crocker/eldapbasicsample.xml"/>
<map:transform type="ldap" src="crocker/eldap.xsl"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
And I have the following in my transformer map
<map:transformer name="ldap"
src="org.apache.cocoon.transformation.LDAPTransformer"/>
</map:transformers>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>