Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e824b7bf8337f440769c4dc4bc355e8f81f690e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<chapter id="installation">
	<title>Installing @project.name@</title>
	<section id="installation-prereqs">
		<title>Prerequisites</title>
		<para>
			The @product.name@, or @short.product.name@ for short, requires Java SE 6 or later to be installed. Java is available from
			<ulink url="http://www.java.com/">http://www.java.com/</ulink> and elsewhere.
		</para>
	</section>
	<section id="installation-zip">
		<title>Installing from the ZIP Download</title>
		<itemizedlist>
			<listitem>
				<para>
					<ulink url="http://download.eclipse.org/equinox/">Download</ulink> the Equinox JAR, for example <ulink url="http://download.eclipse.org/equinox/drops/R-3.8.1-201209141800/download.php?dropFile=org.eclipse.osgi_3.8.1.v20120830-144521.jar">org.eclipse.osgi_3.8.1.v20120830-144521.jar</ulink>, and move it to a suitable directory (e.g. ~/gemini-web-test). 
					On the <ulink url="http://download.eclipse.org/equinox/">Download</ulink> page, first choose the desired Release or Build, then download the JAR from the Framework section. 
				</para>
			</listitem>
			<listitem>
				<para>
					@product.name@ is distributed as a ZIP file.
					<ulink url="http://www.eclipse.org/gemini/web/download">Download</ulink> @product.name@ and unzip it to ~/gemini-web-test/gemini-web. 
				</para>
			</listitem>
			<listitem>
				<para>
					Configure Equinox by creating a directory ~/gemini-web-test/configuration and create a file config.ini in the configuration directory. 
					Example file which works with 2.2.0.RELEASE is available in <ulink url="http://wiki.eclipse.org/images/2/23/Config.ini.2.2.0.zip">config.ini.zip</ulink>. 
					Essentially config.ini ensures that the dependencies of @product.name@, which come in the dep directory, are installed and then the @product.name@ bundles are installed and started. 
				</para>
			</listitem>
			<listitem>
				<para>
					Start Equinox as follows:
					<programlisting language="xml"><![CDATA[java -jar org.eclipse.osgi_3.8.1.v20120830-144521.jar -console]]></programlisting></para>
			</listitem>
			<listitem>
				<para>
					You can then deploy WAR files (a trivial example is available in <ulink url="http://wiki.eclipse.org/images/a/a0/Simple-war.war.zip">Simple-war.war.zip</ulink>) and web bundles using the install and start commands from the console.
					<programlisting language="xml"><![CDATA[osgi> install file:simple-war.war
Bundle id is 40
osgi> start 40]]></programlisting></para>
			</listitem>
			<listitem>
				<para>
					Drive the WAR or web bundle using a web browser, e.g. http://localhost:8080/simple-war should display "Hello World!". 
				</para>
			</listitem>
			<listitem>
				<para>
					Stop @product.name@ as follows:
					<programlisting language="xml"><![CDATA[osgi> close]]></programlisting>
					<tip>
						You need to stop any old instance of Gemini Web before starting it again. Otherwise, the new instance will not start correctly, because the old one still occupies the http port (and, perhaps, other system resources).
					</tip>
				</para>
			</listitem>
		</itemizedlist>
	</section>
</chapter>

Back to the top