Hello,
i have made a small step by step manual for the installation of Tomcat and
Jetspeed under Windows here is the text only version. Anyone is invited to send
corrections or hints. If you want to have a Word version with screenshots (670
kb) mail me: [EMAIL PROTECTED]
Installation of Jetspeed under Windows
(Warning: this is only a private document, no offical Dokumentation, read the
notes at the end of this Doc !)
This is a step by step instruction for installing Jetspeed under Windows
1. Download Java 2 SDK v 1.2.2_006 Windows 95/98/2000/NT Production Release
from http://java.sun.com/products/jdk/1.2/
2. Download Tomcat 3.1 from
http://jakarta.apache.org/downloads/binindex.html
3. Download Jetspeed-1.1.zip from http://java.apache.org/jetspeed/dist/
4. Install the jdk-1_2_2_006-win.exe by double-clicking it to E:\jdk1.2.2
(for example) and E:\JavaSoft
5. Unzip the Jakarta-Tomcat.zip to F:\ (the jakarta-tomcat directory and the
subfolders are automatically created by Winzip)
6. Unzip the Jetspeed-1.1.zip to F:\ (the jetspeed-1.1 directory and the
subfolders are automatically created by Winzip)
7. Add the following lines to your Autoexec.bat (normaly located in C:\
set TOMCAT_HOME=F:\jakarta-tomcat
set JAVA_HOME=E:\jdk1.2.2
set JETSPEED_HOME=F:\jetspeed-1.1
8. Add to the Path in your Autoexec.bat file E:\JDK1.2.2\Bin resulting in
something like
set PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;E:\JDK1.2.2\Bin
9. Open the hosts file in the Directory C:\Windows and enter your IP-Adress and
computername (if it is not already there) resulting in
something like
127.0.0.1 localhost
192.92.92.1 mycomputer
10. Go to the jakarta-tomcat\bin directory, right-click on the tomcat.bat,
select properties and then Memory, change the value of the
first row, right coloum (in German urspruenglicher Umgebungsspeicher)
11. Enter in marked field 1024
12. Do the same to the files startup.bat and shutdown.bat, but enter 4096 in
the marked properies/Memory field (maybe less would be sufficent but i haven�t
tested it).
13. Execute the startup.bat file, a DOS window opens and a second DOS window
opens and the first one is closed. (the second is named java and keeps open.
14. Open a browser (I used Netscape Ok Tomcat is ok and) and point it to
http://localhost:8080/
15. OK Tomcat is working now, you can try the JSP Examples and the Servlet
Examples.
16. End Tomcat with by executing the shutdown.bat file
17. Copy the F:\jetspeed-1.1\src\content folder to F:\jakarta-tomcat\webapps,
resulting in a F:\jakarta-tomcat\webapps\content folder.
18. Create in F:\jakarta-tomcat\webapps a folder jetspeed-system
19. Create in F:\jakarta-tomcat\webapps\jetspeed-system a folder cache
20. Create in F:\jakarta-tomcat\webapps\jetspeed-system a folder conf
21. Create in F:\jakarta-tomcat\webapps\jetspeed-system a folder logs
22. Create in F:\jakarta-tomcat\webapps\jetspeed-system\logs a empty Textfile:
Click right into the folder, select new, select Textdocument. Then rename the
Textdocument to jetspeed-turbine.log
23. Copy the four files in F:\jetspeed-1.1\src\config (cocoon.properies ;
javamail.providers ; JetspeedResources.properties and
TurbineResources.properties) into the folder
F:\jakarta-tomcat\webapps\jetspeed-system\conf.
24. Open the F:\jakarta-tomcat\bin\tomcat.bat file and and the following lines
set CLASSPATH=.
set CLASSPATH=%TOMCAT_HOME%\classes
set CLASSPATH=%CLASSPATH%;%JETSPEED_HOME%\lib\xerces.jar
set CLASSPATH=%CLASSPATH%;%JETSPEED_HOME%\Jetspeed.jar
set CLASSPATH=%CLASSPATH%;%JETSPEED_HOME%\lib\castor-0.7.4.jar
set CLASSPATH=%CLASSPATH%;%JETSPEED_HOME%\lib\cocoon.jar
set CLASSPATH=%CLASSPATH%;%JETSPEED_HOME%\lib\coocon-ext-servlet2.2.jar
set CLASSPATH=%CLASSPATH%;%JETSPEED_HOME%\lib\ecs.jar
set CLASSPATH=%CLASSPATH%;%JETSPEED_HOME%\lib\turbine-2.0.jar
set CLASSPATH=%CLASSPATH%;%JETSPEED_HOME%\lib\village.jar
set CLASSPATH=%CLASSPATH%;%JETSPEED_HOME%\lib\xalan.jar
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
if "%cp%" == "" goto next
25. Open the F:\jakarta-tomcat\webapps\Root\Web-inf\web.xml file and change it
to this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>
jetspeed
</servlet-name>
<servlet-class>
Turbine
</servlet-class>
<init-param>
<param-name>
properties
</param-name>
<param-value>
F:/jakarta-tomcat/webapps/jetspeed-system/conf/TurbineResources.properties
</param-value>
</init-param>
</servlet>
</web-app>
26. Open the
F:\jakarta-tomcat\webapps\jetspeed-system\conf\JetspeedResources.properties
file and change the following lines
cache.directory=/f:/jakarta-tomcat/webapps/jetspeed-system/cache
public.cache.directory=/jakarta-tomcat/webapps/jetspeed-system/cache
public.cache.url=/jetspeed-system/cache
xmlportletcontroller.stylesheet=
/jakarta-tomcat/webapps/content/xml/defaultstyle.xsl
cocoon.properties.file=
/jakarta-tomcat/webapps/jetspeed-system/conf/cocoon.properties
temp.directory=/jakarta-tomcat/webapps/jetspeed-system/cache
27. Open the
F:\jakarta-tomcat\webapps\jetspeed-system\conf\TurbineResources.properties file
and change the following lines
module.packages=org.apache.jetspeed.turbine.actions,org.apache.jetspeed.turbine.layouts,org.apache.jyve,org.apache.jetspeed.turbine,org.apache.turbine.modules
screen.ImageServer.root=F:/jakarta-tomcat/webapps/content/images
logfile=F:/jakarta-tomcat/webapps/jetspeed-system/logs/jetspeed-turbine.log
28. Open the F:\jakarta-tomcat\conf\web.xml file and add those lines
<mime-mapping>
<extension>
rss
</extension>
<mime-type>
text/xml
</mime-type>
</mime-mapping>
<mime-mapping>
<extension>
cdf
</extension>
<mime-type>
text/xml
</mime-type>
</mime-mapping>
<mime-mapping>
<extension>
ocs
</extension>
<mime-type>
text/xml
</mime-type>
</mime-mapping>
<mime-mapping>
<extension>
xml
</extension>
<mime-type>
text/xml
</mime-type>
</mime-mapping>
29. Start Tomcat by executing F:\jakarta-tomcat\bin\startup.bat
30. Go Online (if you are not already) open your browser point it to
http://localhost:8080/servlet/jetspeed
31. The Coocon Portlet Example sends a error Message (do not know why, still
working on it).
32. Close the browser and end tombat with the
F:\jakarta-tomcat\bin\shutdown.bat file
Notes: The installation of Jetspeed can be quite tricky. It took me two weeks
(7 hours a day) to make it run. This configuration is NOT perfect ! It is the
result of serveral Webdocuments, the Working-dogs Forum (many thanks to Carol
Jones!) and a lot of try and error. I �m still working on it, every hint would
be helpful.
I used older versions of JDK and Jetspeed, as soon as i have time i will update
to the newest versions. Also the HD-Drives and Foldernames i chose randomly,
so if you do not have a F: drive, just replace every F: with a C:
Thomas Schwarz Ulm 18/10/00 [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]