| |
| +---------------------------+ |
| | INSTALL FROM SOURCE | |
| +---------------------------+ |
| |
| |
| |
| 1) Set your JAVA_HOME, ANT_HOME and PATH environment, e.g. |
| |
| [unix] |
| export JAVA_HOME=/usr/local/j2sdk1.4.2 |
| export ANT_HOME=/usr/local/jakarta-ant-1.5.1 |
| export PATH=$ANT_HOME/bin:$PATH |
| |
| 2) Copy "build.properties.sample" to "build.properties" |
| |
| 3) Edit build.properties: |
| |
| The most important parameter to update is "cocoon.webapp.dir", which specifies |
| where the Cocoon webapp directory is located (first you need to build Cocoon). |
| |
| If you want to run Lenya on Tomcat then you should update the following |
| parameters: "install.dir" and "cache.dir". |
| |
| Lenya ships with Jetty, so you do not need Tomcat. |
| |
| 4) Build Lenya by typing |
| |
| ant install |
| |
| 5) Copy endorsed libraries |
| |
| 6) Start up your servlet engine, e.g. Tomcat or Jetty |
| |
| [unix] |
| /usr/local/jakarta-tomcat-4.1.24-LE-jdk14/bin/startup.sh |
| |
| or |
| |
| sh lenya.sh servlet |
| |
| 7) Open http://localhost:8080/lenya/ or http://127.0.0.1:8888 (Jetty) |
| |
| |
| |
| NOTES |
| ----- |
| |
| 1) In order to reload modified Java classes one might add |
| |
| <Context path="/lenya" docBase="lenya" debug="0" reloadable="true" crossContext="true"/> |
| |
| to the Tomcat configuration file conf/server.xml |