cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauricio Souza Lima <maurici...@terra.com.br>
Subject Re: Cocoon+PHP
Date Tue, 18 Dec 2001 13:41:12 GMT
Look at the sitemap...

What it the type specified in the map? serverpages or php?

So look at the generated source at:
$TOMCAT_HOME/work/localhost/cocoon/org/...

You will see...

rimo@ufs.kiev.ua wrote:
> 
> Hi, Cocoon-Users!
> 
> Have someone managed to get subj. working?
> I'm desperately looking for someone who did it, except Sam Ruby ;) -
> he is the master.
> 
> My problem is I can't force cocoon to use PhpGenerator.
> I do have it successfully built with phpservlet.jar and with
> <map:generator name="php"
> src="org.apache.cocoon.generators.PhpGenerator" /> in my sitemap.
> 
> But when I try to execute something like:
> 
>  <?xml version="1.0" ?>
>  <xsp:page language="php" xmlns:xsp="http://apache.org/xsp">
>    <xsp:logic><![CDATA[
>       $Author = "Rimo";
> 
>    ]]></xsp:logic>
> 
>    <page>
>    <title>PHP test</title>
>    <body>
>          <para><xsp:expr>$Author</xsp:expr></para>
>    </body>
>    </page>
> 
>   </xsp:page>
> 
>   I have the following result:
> 
> org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException:
Error compiling phptest_xsp:
> Line 133, column 4:  Undefined variable: $Author
> Line 0, column 0:
> 1 error
> 
> org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException:
Error compiling phptest_xsp:
> Line 133, column 4:  Undefined variable: $Author
> Line 0, column 0:
> 1 error
> 
>         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:274)
>         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188)
>         at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:170)
>                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>                                 I expect to see PHPGenerator here? Am
>                                 I wrong?
>         at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:142)
>         at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:239)
>         at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
>         at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:277)
>         at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN4003F1(sitemap_xmap.java:6542)
> 
> Thanks for any help!
> Rimo
> 
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

-- 
Mauricio Souza Lima
Rational Consulting
mauriciosl@terra.com.br
Rua Helena, 140 / cj. 82
São Paulo - SP - Brazil
Fone / Direct: +55 11 3842-7138

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message