<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://airwiki.deib.polimi.it/index.php?action=history&amp;feed=atom&amp;title=Installing_JSPWiki_and_Tomcat</id>
		<title>Installing JSPWiki and Tomcat - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://airwiki.deib.polimi.it/index.php?action=history&amp;feed=atom&amp;title=Installing_JSPWiki_and_Tomcat"/>
		<link rel="alternate" type="text/html" href="https://airwiki.deib.polimi.it/index.php?title=Installing_JSPWiki_and_Tomcat&amp;action=history"/>
		<updated>2026-05-03T08:26:39Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.6</generator>

	<entry>
		<id>https://airwiki.deib.polimi.it/index.php?title=Installing_JSPWiki_and_Tomcat&amp;diff=1393&amp;oldid=prev</id>
		<title>DavideEynard at 13:30, 3 November 2007</title>
		<link rel="alternate" type="text/html" href="https://airwiki.deib.polimi.it/index.php?title=Installing_JSPWiki_and_Tomcat&amp;diff=1393&amp;oldid=prev"/>
				<updated>2007-11-03T13:30:50Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Quick notes (maybe they will become a full tutorial one day...):&lt;br /&gt;
&lt;br /&gt;
* be sure you have [http://java.sun.com/javase/downloads/?intcmp=1281 JDK] installed (Java5 or Java6 should be both fine) and Eclipse (choose &amp;quot;Eclipse Classic&amp;quot; from [http://www.eclipse.org/downloads/ here])&lt;br /&gt;
* be sure your environment variables are set the proper way (in particular, JAVA_HOME. See below for final setup)&lt;br /&gt;
* download both Tomcat binaries and JSPWiki sources: for Tomcat, we're using v5.5, that you can download from [http://tomcat.apache.org/download-55.cgi here] (direct links: [http://mirror.tomato.it/apache/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.tar.gz linux binaries], [http://mirror.tomato.it/apache/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.exe windows installer]). For JSPWiki sources, you might want to download either stable or beta [http://jspwiki.org/wiki/JSPWikiDownload here] (link to stable sources [http://www.ecyrd.com/~jalkanen/JSPWiki/2.4.104/JSPWiki-2.4.104-src.zip here])&lt;br /&gt;
* extract Tomcat in one directory (here we chose '''/opt/tomcat5.5'''). Tomcat can then be started just by calling its startup file, in our case '''/opt/tomcat5.5/bin/startup.sh'''. Once started, try to connect to your local Tomcat server just by entering the following URL in your browser:&lt;br /&gt;
&lt;br /&gt;
 http://localhost:8080&lt;br /&gt;
&lt;br /&gt;
* Now you can import the JSPWiki sources into a new Eclipse project: to do this, just open Eclipse, choose '''File-&amp;gt;Import''' and then '''Existing Projects into Workspace'''. Choose '''Select archive file''' and then select the JPSWiki sources ZIP file. Click Finish and the project will be imported!&lt;br /&gt;
&lt;br /&gt;
* The '''build.xml''' file needs a patch: change all (two) occurrencies of '''keytool''' with '''${env.JAVA_HOME}/bin/keytool''' inside this file&lt;br /&gt;
&lt;br /&gt;
* The installation script file can be modified in an easier way to work with your system: just copy the following inside your install.sh file&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #&lt;br /&gt;
 #  A very simple installer script which restarts tomcat as well.&lt;br /&gt;
 #&lt;br /&gt;
 #  This is just a sample.&lt;br /&gt;
 #&lt;br /&gt;
  echo &amp;quot;Installing in private&amp;quot;&lt;br /&gt;
  TOMCAT_HOME=/opt/tomcat5.5&lt;br /&gt;
  private=1&lt;br /&gt;
 #&lt;br /&gt;
  $TOMCAT_HOME/bin/shutdown.sh&lt;br /&gt;
 #&lt;br /&gt;
  ant clean&lt;br /&gt;
  ant war&lt;br /&gt;
 #&lt;br /&gt;
  rm -rf $TOMCAT_HOME/webapps/JSPWiki&lt;br /&gt;
  USER=`whoami`&lt;br /&gt;
  cp /tmp/$USER/JSPWiki/install/*.war $TOMCAT_HOME/webapps&lt;br /&gt;
 #&lt;br /&gt;
  cd $TOMCAT_HOME/webapps&lt;br /&gt;
  rm -rf JSPWiki&lt;br /&gt;
  mkdir JSPWiki&lt;br /&gt;
  cd JSPWiki&lt;br /&gt;
  jar xf ../JSPWiki.war&lt;br /&gt;
 #&lt;br /&gt;
  $TOMCAT_HOME/bin/startup.sh&lt;br /&gt;
&lt;br /&gt;
* After this, just running install.sh '''as root''' from the JSPWiki directory inside your workspace will recompile and redeploy the wiki into your system.&lt;br /&gt;
&lt;br /&gt;
* Finally, an excerpt from /etc/environment. This should help you to understand which environment variables have to be set and how. Also remember that '''${JAVA_HOME}/bin''' and '''${ANT_HOME}/bin''' have to be added to your path.&lt;br /&gt;
&lt;br /&gt;
 JAVA_HOME=&amp;quot;/java&amp;quot;  ''(a symlink from /java to /opt/jdk.version has been created)''&lt;br /&gt;
 CATALINA_HOME=&amp;quot;/opt/tomcat5.5&amp;quot;  ''(/opt/tomcat5.5 is where the Tomcat tgz has been extracted)''&lt;br /&gt;
 CATALINA_BASE=&amp;quot;/opt/tomcat5.5&amp;quot;&lt;br /&gt;
 CATALINA_TMPDIR=&amp;quot;/opt/tomcat5.5/temp&amp;quot;&lt;br /&gt;
 ECLIPSE_HOME=&amp;quot;/home/mala/eclipse&amp;quot;  ''(this is the dir where eclipse has been extracted)''&lt;br /&gt;
 ANT_HOME=&amp;quot;${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5&amp;quot; ''(note: ant version might change)''&lt;/div&gt;</summary>
		<author><name>DavideEynard</name></author>	</entry>

	</feed>