Installing Lenya on Resin 2.x branch (Resin 2.0.4+)

1. Follow Steps 1-6 of the standard installation, then follow the steps below. I'll assume you downloaded the Lenya source to /usr/local/lenya. I'll call this directory $LENYA_HOME for shorthand.

2. Configure Lenya:

To install Lenya with Resin, you need to edit your build properties. To do this, copy $LENYA_HOME/ to $LENYA_HOME/

Edit For the described configuration the following settings will work (MS Windows: Don't use backslashes "\" for directory separation.) Although the Lenya properties file uses variable names specific to Tomcat, we'll ignore the name and use variables specific to Resin instead. Replace $RESIN_WEB_HOME with your Resin directory (the directory containing your Resin webapps and web files).

Edit the following parameters in your

3. Build Lenya: ant webapp 4. Copy the Lenya WAR file to your webapps directory. (usually $RESIN_HOME/webapps) 5. Add the Lenya web-app to resin.conf:

<web-app id="/lenya">
<!-- enable precidence of xerces and xsl processors-->

(TODO) - using the servlet-classloader-hack is discouraged by Resin, but needed to run Lenya under Resin 2.x. However, an alternate way of specifiying xml processors exists (started below). This is not complete but encouraged to play with:

<web-app id="/lenya">
<classpath id="WEB-INF/lib/xml-apis.jar" compile="false" />
<classpath id="WEB-INF/lib/xercesImpl-2.6.2.jar" compile="false" />
<classpath id="WEB-INF/lib/xalan-2.6.0.jar" compile="false" />

<!-- override default sax, dom and trax processors with xerces (needed by Cocoon)-->
<system-property javax.xml.parsers.SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl" />
<system-property javax.xml.parsers.DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" />
<system-property javax.xml.transform.TransformerFactory = "org.apache.xalan.processor.TransformerFactoryImpl"/>
<system-property org.xml.sax.driver = "org.apache.xerces.parsers.SAXParser"/>

6. Start Resin.

HowToResinInstallation (last edited 2009-09-20 23:27:51 by localhost)