cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: [C2] Problems build Cocoon with Php
Date Mon, 09 Apr 2001 15:58:19 GMT
Jens Steinborn wrote:
> 
> Hi
> 
> > Where do I get the PHP library, I can try to help get this
> > compilable if I have it?

Thanks Jens for sending me the jar.  The problem was two fold:
the PhpGenerator needed to explicitly cast the Request, Response,
and Context parameters; and the getLogger() methods needed to
reference the parent class's getLogger() method.

If you get the current version from CVS, it should compile now.
I cannot avow for it's functionality though.

>  From cocoon-dev mailing-list:
>  rubys@us.ibm.com wrote:
>  > To build, one needs to first build PHP as a servlet.  Then copy
>  the
>  > resulting phpsrvlt.jar into xml-cocoon-lib and build cocoon.
>  Then copy
>   > both phpsrvlt.jar and cocoon.jar into Tomcat's lib directory,
>  and add the
>   > php servlet DLL or shared library to your path/LD_LIBRARY_PATH.
>   >
>   > To configure, simply add the following to your configuration
>   >
>   >    <generator name="php"
>   >    class="org.apache.cocoon.generators.PhpGenerator"/>
>   >
>   > ...and then use this generator in a process.
> 
> So, I build php with the options (--with-java=/path/to/java and
> --with-servlet=/path/to/JSDK), copy the phpsrvlt.jar file into
> xml-cocoon-lib and try to rebuild cocoon.
> 
> That's the result:
> 
> > > compile:
> > > [javac] Compiling 1 source file to
> > > /home/spdj/xml-cocoon/build/cocoon/classes
> > > [javac]
> > > /home/spdj/xml-cocoon/build/cocoon/src/org/apache/cocoon/genera
> > >tion/PhpGenerator.java:81: No method matching getLogger() found
> > > in class
> > > org.apache.cocoon.generation.PhpGenerator.
> > > [javac]
> > > getLogger().debug("PhpGenerator.write()", e);
> > > [javac]                          ^
> > > [javac]
> > > /home/spdj/xml-cocoon/build/cocoon/src/org/apache/cocoon/genera
> > >tion/PhpGenerator.java:94: No method matching getLogger() found
> > > in class
> > > org.apache.cocoon.generation.PhpGenerator.
> > > [javac]                 getLogger().error("PhpGenerator.run()",
> > > e); [javac]                          ^
> > > [javac]
> > > /home/spdj/xml-cocoon/build/cocoon/src/org/apache/cocoon/genera
> > >tion/PhpGenerator.java:101: No method matching getLogger() found
> > > in class
> > > org.apache.cocoon.generation.PhpGenerator.
> > > [javac]
> > > getLogger().error("PhpGenerator.run():SHOULD NEVER HAPPEN", e);
> > > [javac]                          ^
> > > [javac]
> > > /home/spdj/xml-cocoon/build/cocoon/src/org/apache/cocoon/genera
> > >tion/PhpGenerator.java:126: Incompatible type for constructor.
> > > Explicit cast needed to convert
> > > org.apache.cocoon.environment.Context to
> > > javax.servlet.ServletContext.
> > > [javac]             php.init(new config(context));
> > > [javac]                                 ^
> > > [javac]
> > > /home/spdj/xml-cocoon/build/cocoon/src/org/apache/cocoon/genera
> > >tion/PhpGenerator.java:129: Incompatible type for method.
> > > Explicit cast needed to convert
> > > org.apache.cocoon.environment.Request to
> > > javax.servlet.http.HttpServletRequest.
> > > [javac]             php.setRequest(request);
> > > [javac]                            ^
> > > [javac]
> > > /home/spdj/xml-cocoon/build/cocoon/src/org/apache/cocoon/genera
> > >tion/PhpGenerator.java:130: Incompatible type for method.
> > > Explicit cast needed to convert
> > > org.apache.cocoon.environment.Response to
> > > javax.servlet.http.HttpServletResponse.
> > > [javac]             php.setResponse(response);
> > > [javac]                             ^
> > > [javac]
> > > /home/spdj/xml-cocoon/build/cocoon/src/org/apache/cocoon/genera
> > >tion/PhpGenerator.java:134: Method
> > > getComponent(java.lang.String) not found in interface
> > > org.apache.avalon.ComponentManager.
> > > [javac]             Parser
> > > parser=(Parser)this.manager.getComponent("org.apache.cocoon.com
> > >ponents.parser.Parser"); [javac]
> > >                           ^ [javac] 7 errors
> > > BUILD FAILED
> 
> Jens
> --
> -\*SPDJ*/-
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message