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

[EMAIL PROTECTED] 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

-- 
Mauricio Souza Lima
Rational Consulting
[EMAIL PROTECTED]
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to