Step by Step: Lenya on Windows
"Jan Prill" <[email protected]> Fri, 28 Mar 2003 17:02:50 +0100
| Newsgroups | gmane.comp.cms.wyona.user,gmane.comp.cms.wyona.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. ------=_NextPart_000_0031_01C2F54B.DD311950 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks to the Documentation under = http://www.wyona.org/download/downloading_and_installing.html i was able = to install Lenya on my Windows Box. Since a lot of people are testing on = Windows this might be interesting -->This is what i did: 1. Get the last Tomcat Release Binary under = http://jakarta.apache.org/site/binindex.cgi (right now its Tomcat = 4.1.24) 2. Install Tomcat like described in = http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt . Basically = this is setting the JAVA_HOME environment variable and double-clicking = on tomcat-4.1.24.exe. Decide to run tomcat as a Windows = NT/2000/XP-Service. 3. Check if tomcat is running: http://localhost:8080=20 4. Stop the Tomcat Service (if you don't know how, try Start > Help > = Services ) 5. Get the latest binary of ant under: = http://ant.apache.org/bindownload.cgi currently this is = apache-ant-1.5.2-bin.zip . Extract the zip to C:\Programme\Apache = Group\. After this step you got the binaries under C:\Programme\Apache = Group\apache-ant-1.5.2 . 6. Set a few environment variables. Mine are: JAVA_HOME =3D C:\Programme\j2sdk1.4.1_01 ANT_HOME =3D C:\Programme\Apache Group\apache-ant-1.5.2 CATALINA_HOME =3D C:\Programme\Apache Group\Tomcat 4.1 CLASSPATH =3D .\;C:\Programme\Apache Group\apache-ant-1.5.2\lib PATH =3D <snip>;C:\Programme\j2sdk1.4.1_01\bin;C:\Programme\Apache = Group\apache-ant-1.5.2\bin 5. Get cocoon-2.1-build-2003.03.11.23.15.tar.gz=20 endorsed.tar.gz=20 and the latest lenya-dev-src (right now its = lenya-0.8-dev-src-20030328125056.tar.gz ) from http://www.wyona.org/lenya=20 6. Extract cocoon-2.1-build-2003.03.11.23.15.tar.gz to a directory of = your choice (in my example i chose C:\Downloads\lenya) 7. Copy the directory = C:\Downloads\lenya\cocoon-2.1-build-2003.03.11.23.15\cocoon-2.1-build-200= 3.03.11.23.15\build\cocoon (includes three directorys, sitemap.xmap, = welcome.xml, welcome.xslt) to C:\Programme\Apache Group\Tomcat = 4.1\webapps 8. Extract the latest lenya-dev-src to a directory of your choice (Mine = was = C:\Downloads\lenya\lenya-0.8-dev-src-20030328125056\lenya-0.8-dev-src-200= 30328125056). Copy the content of this directory to C:\Programme\Apache = Group\lenya-0.8 9. Make a Copy of C:\Programme\Apache = Group\lenya-0.8\build.properties.sample to C:\Programme\Apache = Group\lenya-0.8\build.properties 10. Edit this build.properties. For the described configuration the = following settings will work (don't use backslashes "\" for the = paths!!!) src.cocoon.dir=3D../Tomcat 4.1/webapps/cocoon pubs.root.dirs=3Dsrc/webapp/lenya/pubs install.dir=3D../Tomcat 4.1/webapps/lenya cache.dir=3D../Tomcat 4.1/work/Standalone/localhost/lenya 11. Open a console: >cd C:\Programme\Apache Group\lenya-0.8 >ant install 12. Extract the endorsed.tar.gz. Copy the content of this archive to = C:\Programme\Apache Group\Tomcat 4.1\common\endorsed 13. Rename the C:\Programme\Apache Group\Tomcat = 4.1\common\endorsed\xercesImpl.jar or remove it completly. 14. Restart the Tomcat Service 15. Test: http://localhost:8080/lenya Feel free to correct my bad english and publish this instruction on = www.wyona.org Regards Jan Prill ------=_NextPart_000_0031_01C2F54B.DD311950 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>Thanks to the Documentation under <A=20 href=3D"http://www.wyona.org/download/downloading_and_installing.html">ht= tp://www.wyona.org/download/downloading_and_installing.html</A> i=20 was able to install Lenya on my Windows Box. Since a lot of people are = testing=20 on Windows this might be interesting -->This is what i = did:</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>1.</STRONG> Get the last Tomcat Release = Binary under=20 <A=20 href=3D"http://jakarta.apache.org/site/binindex.cgi">http://jakarta.apach= e.org/site/binindex.cgi</A> (right=20 now its Tomcat 4.1.24)</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>2.</STRONG> Install Tomcat like described in = <A=20 href=3D"http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt">http= ://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt</A> .=20 Basically this is setting the JAVA_HOME environment variable=20 and double-clicking on tomcat-4.1.24.exe. Decide to run tomcat as a = Windows=20 NT/2000/XP-Service.</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>3.</STRONG> Check if tomcat is running: <A=20 href=3D"http://localhost:8080">http://localhost:8080</A> </FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>4.</STRONG> Stop the Tomcat Service (if you = don't know=20 how, try Start > Help > Services )</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>5.</STRONG> Get the latest binary of ant = under:=20 </FONT><A href=3D"http://ant.apache.org/bindownload.cgi"><FONT=20 size=3D2>http://ant.apache.org/bindownload.cgi</FONT></A><FONT=20 size=3D2> currently this is </FONT><A=20 href=3D"http://www.apache.de/dist/ant/binaries/apache-ant-1.5.2-bin.zip">= <FONT=20 size=3D2>apache-ant-1.5.2-bin.zip</FONT></A><FONT size=3D2> . = Extract the zip=20 to C:\Programme\Apache Group\. After this step you got the binaries = under=20 C:\Programme\Apache Group\apache-ant-1.5.2 .</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>6.</STRONG> Set a few environment variables. = Mine=20 are:</FONT></DIV> <DIV><FONT size=3D2>JAVA_HOME =3D = C:\Programme\j2sdk1.4.1_01</FONT></DIV> <DIV><FONT size=3D2>ANT_HOME =3D C:\Programme\Apache=20 Group\apache-ant-1.5.2</FONT></DIV> <DIV><FONT size=3D2>CATALINA_HOME =3D C:\Programme\Apache Group\Tomcat=20 4.1</FONT></DIV> <DIV><FONT size=3D2>CLASSPATH =3D .\;C:\Programme\Apache=20 Group\apache-ant-1.5.2\lib</FONT></DIV> <DIV><FONT size=3D2>PATH =3D=20 <snip>;C:\Programme\j2sdk1.4.1_01\bin;C:\Programme\Apache=20 Group\apache-ant-1.5.2\bin</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>5.</STRONG> Get </FONT><A=20 href=3D"http://wyona.org/lenya/cocoon-2.1-build-2003.03.11.23.15.tar.gz">= <FONT=20 size=3D2>cocoon-2.1-build-2003.03.11.23.15.tar.gz</FONT></A><FONT = size=3D2>=20 <BR></FONT><A href=3D"http://wyona.org/lenya/endorsed.tar.gz"><FONT=20 size=3D2>endorsed.tar.gz</FONT></A><FONT size=3D2> <BR></FONT><FONT = size=3D2>and the=20 latest lenya-dev-src (right now its </FONT><A=20 href=3D"http://wyona.org/lenya/lenya-0.8-dev-src-20030328125056.tar.gz"><= FONT=20 size=3D2>lenya-0.8-dev-src-20030328125056.tar.gz</FONT></A><FONT = size=3D2>=20 )</FONT></DIV> <DIV><FONT size=3D2>from <A=20 href=3D"http://www.wyona.org/lenya">http://www.wyona.org/lenya</A> = </FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>6.</STRONG> Extract=20 cocoon-2.1-build-2003.03.11.23.15.tar.gz to a directory of your choice = (in my=20 example i chose C:\Downloads\lenya)</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>7.</STRONG> Copy the directory=20 C:\Downloads\lenya\cocoon-2.1-build-2003.03.11.23.15\cocoon-2.1-build-200= 3.03.11.23.15\build\cocoon=20 (includes three directorys, sitemap.xmap, welcome.xml, welcome.xslt) to=20 C:\Programme\Apache Group\Tomcat 4.1\webapps</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>8.</STRONG> Extract the latest lenya-dev-src = to a=20 directory of your choice (Mine was=20 C:\Downloads\lenya\lenya-0.8-dev-src-20030328125056\lenya-0.8-dev-src-200= 30328125056).=20 Copy the content of this directory to C:\Programme\Apache=20 Group\lenya-0.8</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>9.</STRONG> Make a Copy of = C:\Programme\Apache=20 Group\lenya-0.8\build.properties.sample to C:\Programme\Apache=20 Group\lenya-0.8\build.properties</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>10.</STRONG> Edit this build.properties. For = the=20 described configuration the following settings will work (don't use = backslashes=20 "\" for the paths!!!)</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2><FONT size=3D2>src.cocoon.dir=3D../Tomcat = 4.1/webapps/cocoon</DIV> <DIV> <P>pubs.root.dirs=3Dsrc/webapp/lenya/pubs</P> <P>install.dir=3D../Tomcat 4.1/webapps/lenya</P> <P>cache.dir=3D../Tomcat 4.1/work/Standalone/localhost/lenya</P> <P><STRONG>11. </STRONG>Open a console:</P> <P>>cd C:\Programme\Apache Group\lenya-0.8<BR>>ant install</P> <P><STRONG>12.</STRONG> Extract the endorsed.tar.gz. Copy the content of = this=20 archive to C:\Programme\Apache Group\Tomcat 4.1\common\endorsed</P> <P><STRONG>13.</STRONG> Rename the C:\Programme\Apache Group\Tomcat=20 4.1\common\endorsed\xercesImpl.jar or remove it completly.</P> <P><STRONG>14.</STRONG> Restart the Tomcat Service</P> <P><STRONG>15.</STRONG> Test: <A=20 href=3D"http://localhost:8080/lenya">http://localhost:8080/lenya</A></P> <P>Feel free to correct my bad english and publish this instruction on = <A=20 href=3D"http://www.wyona.org">www.wyona.org</A></P> <P>Regards</P> <P>Jan Prill</P></FONT></FONT></DIV></BODY></HTML> ------=_NextPart_000_0031_01C2F54B.DD311950--