Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 330110
Collapse All | Expand All

(-)a/build-web-container/build.xml (+17 lines)
Lines 35-40 Link Here
35
		<pathelement location="../test-bundles/war-with-context-xml-cross-context"/>
35
		<pathelement location="../test-bundles/war-with-context-xml-cross-context"/>
36
	</path>
36
	</path>
37
37
38
	<path id="doc.bundles">
39
		<pathelement location="../org.eclipse.gemini.web.documentation/user-guide"/>
40
		<pathelement location="../org.eclipse.gemini.web.documentation/programmer-guide"/>
41
	</path>
42
38
	<target name="test" depends="build-test-apps, quality-multi-bundle.test" description="Rebuild all the test apps before running the test suites">
43
	<target name="test" depends="build-test-apps, quality-multi-bundle.test" description="Rebuild all the test apps before running the test suites">
39
	</target>
44
	</target>
40
45
Lines 62-71 Link Here
62
			<fileset dir="${basedir}/resources"/>
67
			<fileset dir="${basedir}/resources"/>
63
		</copy>
68
		</copy>
64
69
70
		<all-bundles target="package" buildpathRef="doc.bundles">
71
			<property name="package.output.dir" value="${package.output.dir}"/>
72
		</all-bundles>
73
65
		<mkdir dir="${artifacts.dir}"/>
74
		<mkdir dir="${artifacts.dir}"/>
66
		<zip destfile="${package.output.file}">
75
		<zip destfile="${package.output.file}">
67
			<zipfileset dir="${package.dir}"/>
76
			<zipfileset dir="${package.dir}"/>
68
		</zip>
77
		</zip>
69
	</target>
78
	</target>
70
79
80
	<target name="doc">
81
		<all-bundles target="doc" buildpathRef="doc.bundles"/>
82
	</target>
83
84
	<target name="doc-html">
85
		<all-bundles target="doc-html" buildpathRef="doc.bundles"/>
86
	</target>
87
71
</project>
88
</project>
(-)a/org.eclipse.gemini.web.documentation/build.properties (+15 lines)
Added Link Here
1
version=1.2.0
2
release.type=integration
3
javadoc.exclude.package.names=**/internal/**,**/internal
4
ivy.cache=ivy-cache
5
ivy.cache.dir=${basedir}/../../${ivy.cache}
6
integration.repo.dir=${basedir}/../../integration-repo
7
findbugs.enforce=true
8
clover.enforce=true
9
clover.coverage=40%
10
local.repository.dir=${basedir}/../../ivy-repository
11
12
project.name=Gemini Web
13
natural.name=gemini-web
14
project.key=GW
15
(-)a/org.eclipse.gemini.web.documentation/programmer-guide/build.xml (+13 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project name="gemini-web-programmer-guide">
3
4
	<property file="${basedir}/../build.properties"/>
5
	<property file="${basedir}/../../build.versions"/>
6
	<import file="${basedir}/../../virgo-build/docbook/default.xml"/>
7
8
	<filterset id="docbook.filters">
9
		<filter token="bundle.version" value="${bundle.version}"/>
10
		<filtersfile file="${basedir}/filters.properties"/>
11
	</filterset>
12
13
</project>
(-)a/org.eclipse.gemini.web.documentation/programmer-guide/filters.properties (+3 lines)
Added Link Here
1
project.name=Gemini Web
2
product.name=Gemini Web Container
3
short.product.name=GW
(-)a/org.eclipse.gemini.web.documentation/programmer-guide/ivy.xml (+22 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<?xml-stylesheet type="text/xsl" href="http://ivyrep.jayasoft.org/ivy-doc.xsl"?>
3
<ivy-module
4
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
		xsi:noNamespaceSchemaLocation="http://incubator.apache.org/ivy/schemas/ivy.xsd"
6
		version="1.3">
7
8
	<info organisation="org.eclipse.gemini.web" module="${ant.project.name}"/>
9
10
	<configurations>
11
		<include file="${virgo.build.dir}/common/default-ivy-configurations.xml"/>
12
		<conf name="doc" visibility="public" description="Documentation"/>
13
	</configurations>
14
15
	<publications>
16
		<artifact name="${ant.project.name}" ext="zip" type="zip"/>
17
		<artifact name="${ant.project.name}-single" ext="zip" type="zip"/>
18
	</publications>
19
20
	<dependencies/>
21
22
</ivy-module>
(-)a/org.eclipse.gemini.web.documentation/programmer-guide/src/gemini-web-programmer-guide.xml (+12 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
3
<book xmlns:xi="http://www.w3.org/2001/XInclude">
4
	<bookinfo>
5
		<title>@project.name@ User Guide</title>
6
		<titleabbrev>User Guide</titleabbrev>
7
		<productname>@project.name@</productname>
8
		<releaseinfo>@bundle.version@</releaseinfo>
9
	</bookinfo>
10
	<toc />
11
	<xi:include href="introduction.xml"/>
12
</book>
(-)a/org.eclipse.gemini.web.documentation/programmer-guide/src/introduction.xml (+12 lines)
Added Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
3
<chapter id="introduction">
4
	<title>Overview</title>
5
	<section id="intro">
6
		<title>Introduction</title>
7
		<para>
8
			@product.name@ implements the Web Container defined by the Web Applications Specification chapter of the OSGi Service Platform Release 4 Version 4.2 Enterprise Specification. 
9
			This specification may be downloaded <ulink url="http://www.osgi.org/Download/Release4V42">here</ulink>.
10
		</para>
11
	</section>
12
</chapter>
(-)a/org.eclipse.gemini.web.documentation/user-guide/build.xml (+13 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project name="gemini-web-user-guide">
3
4
	<property file="${basedir}/../build.properties"/>
5
	<property file="${basedir}/../../build.versions"/>
6
	<import file="${basedir}/../../virgo-build/docbook/default.xml"/>
7
8
	<filterset id="docbook.filters">
9
		<filter token="bundle.version" value="${bundle.version}"/>
10
		<filtersfile file="${basedir}/filters.properties"/>
11
	</filterset>
12
13
</project>
(-)a/org.eclipse.gemini.web.documentation/user-guide/filters.properties (+3 lines)
Added Link Here
1
project.name=Gemini Web
2
product.name=Gemini Web Container
3
short.product.name=GW
(-)a/org.eclipse.gemini.web.documentation/user-guide/ivy.xml (+22 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<?xml-stylesheet type="text/xsl" href="http://ivyrep.jayasoft.org/ivy-doc.xsl"?>
3
<ivy-module
4
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
		xsi:noNamespaceSchemaLocation="http://incubator.apache.org/ivy/schemas/ivy.xsd"
6
		version="1.3">
7
8
	<info organisation="org.eclipse.gemini.web" module="${ant.project.name}"/>
9
10
	<configurations>
11
		<include file="${virgo.build.dir}/common/default-ivy-configurations.xml"/>
12
		<conf name="doc" visibility="public" description="Documentation"/>
13
	</configurations>
14
15
	<publications>
16
		<artifact name="${ant.project.name}" ext="zip" type="zip"/>
17
		<artifact name="${ant.project.name}-single" ext="zip" type="zip"/>
18
	</publications>
19
20
	<dependencies/>
21
22
</ivy-module>
(-)a/org.eclipse.gemini.web.documentation/user-guide/src/configuring.xml (+248 lines)
Added Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<chapter id="configuring">
3
	<title>Configuration</title>
4
	<titleabbrev>Configuration</titleabbrev>
5
	<section id="configuring-tomcat">
6
		<title>Configuring the Embedded Tomcat Servlet Container</title>
7
		<para>
8
			@product.name@
9
			embeds an OSGi-enhanced version of the <ulink url="http://tomcat.apache.org/">Tomcat Servlet Container</ulink>
10
			in order to provide support for deploying Java EE WARs and OSGi <emphasis>Web Application Bundles</emphasis>. 
11
			You configure the embedded Servlet container using the standard Apache Tomcat configuration.
12
			The main difference is that the configuration file is called <filename>tomcat-server.xml</filename> rather than <literal>server.xml</literal>.  
13
			If you do not want to use the default settings, you can provide the <literal>tomcat-server.xml</literal> file located in the <literal>$GW_HOME/config</literal> directory. 
14
		</para>
15
		<para>Here's an extract of the default configuration distributed with the @short.product.name@.
16
		</para>
17
		<programlisting language="xml"><![CDATA[<?xml version='1.0' encoding='utf-8'?>
18
<Server port="8005" shutdown="SHUTDOWN">
19
  <Listener className="org.apache.catalina.core.JasperListener" />
20
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
21
22
  <Service name="Catalina">
23
    
24
    <Connector port="8080" protocol="HTTP/1.1" 
25
               connectionTimeout="20000" 
26
               redirectPort="8443" />
27
28
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
29
30
    <Engine name="Catalina" defaultHost="localhost">
31
32
      <Host name="localhost" deployOnStartup="false" autoDeploy="false"
33
            unpackWARs="true" xmlValidation="false" xmlNamespaceAware="false">
34
35
      </Host>
36
    </Engine>
37
  </Service>
38
</Server>]]></programlisting>
39
		<section id="overview-tomcat-servlet-container">
40
			<title>Description of the Default Apache Tomcat Configuration</title>
41
			<para>
42
		  		The following bullets describe the main elements and attributes in the default <literal>tomcat-server.xml</literal> file; for details about updating this file to further configure the embedded Apache Tomcat server, see the <ulink url="http://tomcat.apache.org/tomcat-6.0-doc/config/index.html">Apache Tomcat Configuration Reference</ulink>.
43
			</para>
44
			<tip>
45
				<title>Relative paths</title>
46
				<para>If the configured path to a directory or file does not represent an absolute path, @short.product.name@ typically interprets it as a path relative to the <filename>$GW_HOME</filename> directory.</para>
47
			</tip>
48
			<itemizedlist>
49
				<listitem>
50
					<para>The root element of the <literal>tomcat-server.xml</literal> file is <literal>&lt;Server&gt;</literal>. The attributes of this element represent the characteristics of the entire embedded Tomcat servlet container. The <literal>shutdown</literal> attribute specifies the command string that the shutdown port number receives via a TCP/IP connection in order to shut down the servlet container. The <literal>port</literal> attribute specifies the TCP/IP port number that listens for a shutdown message.</para>
51
				</listitem>
52
				<listitem>
53
					<para>The <literal>&lt;Listener&gt;</literal> XML elements specify the list of lifecycle listeners that monitor and manage the embedded Tomcat servlet container. Each listener class is a Java Management Extensions (JMX) MBean that listens to a specific component of the servlet container and has been programmed to do something at certain lifecycle events of the component, such as before starting up, after stopping, and so on.</para>
54
				</listitem>
55
				<listitem>
56
					<para>The <literal>&lt;Service&gt;</literal> XML element groups together one or more connectors and a single engine. Connectors define a transport mechanism, such as HTTP, that clients use to to send and receive messages to and from the associated service. There are many transports that a client can use, which is why a <literal>&lt;Service&gt;</literal> element can have many <literal>&lt;Connector&gt;</literal> elements. The engine then defines how these requests and responses that the connector receives and sends are in turn handled by the servlet container; you can define only a single <literal>&lt;Engine&gt;</literal> element for any given <literal>&lt;Service&gt;</literal> element.</para>
57
					<para>The sample <literal>tomcat-server.xml</literal> file above includes two <literal>&lt;Connector&gt;</literal> elements: one for the HTTP transport, and one for the AJP transport. The file also includes a single <literal>&lt;Engine&gt;</literal> element, as required.</para>
58
				</listitem>
59
				<listitem>
60
					<para>The first connector listens for HTTP requests at the <literal>8080</literal> TCP/IP port. The connector, after accepting a connection from a client, waits for a maximum of 20000 milliseconds for a request URI; if it does not receive one from the client by then, the connector times out. If this connector receives a request from the client that requires the SSL transport, the servlet container automatically redirects the request to port <literal>8443</literal>. </para>
61
				</listitem>
62
				<listitem>
63
					<para>The second AJP Connector element represents a Connector component that communicates with a web connector via the AJP protocol. </para>
64
				</listitem>
65
				<listitem>
66
					<para>
67
						The engine has a logical name of <literal>Catalina</literal>; this is the name used in all log and error messages so you can easily identify problems. 
68
						The value of the <literal>defaultHost</literal> attribute refers to the name of a <literal>&lt;Host&gt;</literal> child element of <literal>&lt;Engine&gt;</literal>; this host processes requests directed to host names on this servlet container.
69
					</para>
70
				</listitem>
71
				<listitem>
72
					<para>
73
						The <literal>&lt;Host&gt;</literal> child element represents a virtual host, which is an association of a network name for a server (such as <literal>www.mycompany.com</literal>) with the particular server on which Catalina is running.  
74
						The <literal>xmlValidation</literal> attribute specifies that the servlet container does not validate XML files when parsing them, or in other words, it accepts invalid XML. 
75
						The <literal>xmlNamespaceAware</literal> attribute specifies that the servlet container does not take namespaces into account when reading XML files. 
76
					</para>
77
				</listitem>
78
			</itemizedlist>
79
		</section>
80
		<section id="configuring-tomcat-connectors">
81
			<title>Connector Configuration</title>
82
			<para>The @product.name@ supports the configuration of any connector supported by Apache Tomcat. 
83
				See the default configuration above for syntax examples, and for further details of the configuration properties supported for various <literal>&lt;Connector&gt;</literal> implementations, consult the official <ulink url="http://tomcat.apache.org/tomcat-6.0-doc/config/http.html">Tomcat HTTP Connector</ulink> documentation.
84
				For detailed instructions on how to configure Tomcat's SSL support, consult the official <ulink url="http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html">Tomcat SSL Configuration HOW-TO</ulink>.
85
				</para>
86
		</section>
87
		<section id="configuring-tomcat-clustering">
88
			<title>Cluster Configuration</title>
89
			<para>
90
				@product.name@ supports standard Apache Tomcat cluster configuration.
91
				By default, clustering of the embedded servlet container is disabled, and the default configuration does not include any clustering information.  
92
				See <ulink url="http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html">Tomcat Clustering/Session Replication HOW-TO</ulink> for detailed information about enabling and configuring clustering.
93
			</para>
94
		</section>
95
		<section id="configuring-tomcat-contexts">
96
			<title>Context Configuration</title>
97
			<para>
98
					@product.name@ supports standard Apache Tomcat web application context configuration.
99
					The <ulink url="http://tomcat.apache.org/tomcat-6.0-doc/config/index.html">Apache Tomcat Configuration Reference</ulink> has a section on
100
					<ulink url="http://tomcat.apache.org/tomcat-6.0-doc/config/context.html">The Context Container</ulink> which describes the mechanism that
101
					is used in @short.product.name@ for searching context configuration files and details the context configuration properties.
102
				</para>
103
			<para>
104
					Context configuration files may be placed in the following locations,
105
					where <literal>[enginename]</literal> is the name of Tomcat's engine ('Catalina' by default) and <literal>[hostname]</literal> names
106
					a virtual host ('localhost' by default), both of which are configured in <literal>tomcat-server.xml</literal>:
107
					<itemizedlist><listitem><para><literal>$GW_HOME/config/context.xml</literal> provides the default context configuration file for all web applications.
108
						</para></listitem><listitem><para>
109
							The <literal>$GW_HOME/config/[enginename]/[hostname]</literal> directory may contain:
110
					  		<itemizedlist><listitem><para>
111
									The default context configuration for all web applications of a given virtual host in the file <literal>context.xml.default</literal>.
112
								</para></listitem><listitem><para>
113
									Individual web applications' context configuration files as described in the Apache Tomcat Configuration Reference.
114
									For example, the context for a web application with
115
									context path <literal>foo</literal> may be configured in <literal>foo.xml</literal>.
116
								</para></listitem></itemizedlist></para></listitem></itemizedlist></para>
117
			<para>
118
					Note that the following context configuration features are not supported in @product.name@:
119
					<itemizedlist><listitem><para>
120
							Custom class loaders.
121
						</para></listitem><listitem><para>
122
							Specifying the context path. This is specified using the <literal>Web-ContextPath</literal> header in the web application's
123
							<literal>MANIFEST.MF</literal> file.
124
						</para></listitem><listitem><para>
125
							Specifying the document base directory.
126
						</para></listitem></itemizedlist></para>
127
		</section>
128
	</section>
129
	<section id="configuring-osgi-framework">
130
		<title>Configuring the OSGi Framework</title>
131
		<para>
132
			This section provides information about configuring the OSGi framework by updating the following files in the
133
			<literal>$GW_HOME/configuration</literal> directory:
134
		</para>
135
		<table id="configuring-osgi-framework-table" colsep="1" frame="all" rowsep="1">
136
			<title>OSGi Framework Configuration Files </title>
137
			<tgroup cols="2">
138
				<thead>
139
					<row>
140
						<entry>Property File</entry>
141
						<entry>Description</entry>
142
					</row>
143
				</thead>
144
				<tbody>
145
					<row>
146
						<entry>
147
							<literal>config.ini</literal>
148
						</entry>
149
						<entry>Configures the <link linkend="configuring-framework-properties">OSGi framework properties</link>.</entry>
150
					</row>
151
					<row>
152
						<entry>
153
							<literal>java6-server.profile</literal>
154
						</entry>
155
						<entry>Configures the <link linkend="configuring-framework-profile">OSGi framework profile</link>.</entry>
156
					</row>
157
				</tbody>
158
			</tgroup>
159
		</table>
160
		<section id="configuring-framework-properties">
161
			<title>Configuring OSGi Framework Properties</title>
162
			<para>
163
				You specify the framework properties in the <literal>$GW_HOME/configuration/config.ini</literal> file. 
164
				The properties relevant to users are described in the following table.
165
			</para>
166
			<table id="configuring-framework-properties-table" colsep="1" frame="all" rowsep="1">
167
				<title>Framework Properties</title>
168
				<tgroup cols="2">
169
					<thead>
170
						<row>
171
							<entry>Property</entry>
172
							<entry>Description</entry>
173
						</row>
174
					</thead>
175
					<tbody>
176
						<row>
177
							<entry>
178
								<literal>osgi.bundles</literal>
179
							</entry>
180
							<entry>
181
								The comma-separated list of bundles which are automatically installed and optionally started once the system is up and running.
182
							</entry>
183
						</row>
184
						<row>
185
							<entry>
186
								<literal>osgi.java.profile</literal>
187
							</entry>
188
							<entry>
189
								Specifies the profile to use using a <literal>file:</literal> URI with default value
190
								<literal>file:configuration/java6-server.profile</literal>.
191
							</entry>
192
						</row>
193
					</tbody>
194
				</tgroup>
195
			</table>
196
		</section>
197
		<section id="configuring-framework-profile">
198
			<title>Configuring OSGi Framework Profile</title>
199
			<para>
200
				You specify the framework profile in the <literal>$GW_HOME/configuration/java6-server.profile</literal> file. 
201
				The properties relevant to users are described in the following table.
202
			</para>
203
			<para>
204
				<emphasis role="bold">WARNING:</emphasis> We advise you not to change the framework profile unless you are sure you know exactly what
205
				you are doing; updating the profile could cause @short.product.name@ to fail.
206
			</para>
207
			<table id="configuring-framework-profile-table" colsep="1" frame="all" rowsep="1">
208
				<title>Framework Profile Properties</title>
209
				<tgroup cols="2">
210
					<thead>
211
						<row>
212
							<entry>Property</entry>
213
							<entry>Description</entry>
214
						</row>
215
					</thead>
216
					<tbody>
217
						<row>
218
							<entry>
219
								<literal>org.osgi.framework.bootdelegation</literal>
220
							</entry>
221
							<entry>
222
								<para>
223
									This property specifies the packages which are loaded by delegation to the application class loader.
224
									Bundles can load classes belonging to these packages without importing the packages.
225
									The <literal>.*</literal> wildcard matches any package suffix. 
226
									<literal>java.*</literal> is always boot delegated and must not be specified in this property.
227
								</para>
228
							</entry>
229
						</row>
230
						<row>
231
							<entry>
232
								<literal>org.osgi.framework.system.packages</literal>
233
							</entry>
234
							<entry>
235
								<para>
236
									This property specifies the packages which are exported by the system bundle.
237
								</para>
238
								<para>
239
									It is very occasionally necessary to extend the set, for example when configuring email logging appenders since the implementation of <literal>javax.mail</literal>	is intimately related to the implementation of <literal>javax.activation</literal>.
240
								</para>
241
							</entry>
242
						</row>
243
					</tbody>
244
				</tgroup>
245
			</table>
246
		</section>
247
	</section>
248
</chapter>
(-)a/org.eclipse.gemini.web.documentation/user-guide/src/gemini-web-user-guide.xml (+34 lines)
Added Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
3
<book xmlns:xi="http://www.w3.org/2001/XInclude">
4
	<bookinfo>
5
		<title>@project.name@ User Guide</title>
6
		<titleabbrev>User Guide</titleabbrev>
7
		<productname>@product.name@</productname>
8
		<releaseinfo>@bundle.version@</releaseinfo>
9
		<legalnotice>
10
			<para>
11
				Copyright &copy; 2009, 2010 VMware Inc. and others
12
			</para>
13
			<para>
14
				Contributors:
15
				<itemizedlist>
16
					<listitem>
17
						<para>
18
							VMware Inc. - initial contribution
19
						</para>
20
					</listitem>
21
					<listitem>
22
						<para>
23
							Violeta Georgieva, SAP AG - Tomcat context configuration
24
						</para>
25
					</listitem>
26
				</itemizedlist>
27
			</para>
28
		</legalnotice>
29
	</bookinfo>
30
	<toc />
31
	<xi:include href="introduction.xml" />
32
	<xi:include href="installing.xml" />
33
	<xi:include href="configuring.xml" />
34
</book>
(-)a/org.eclipse.gemini.web.documentation/user-guide/src/installing.xml (+65 lines)
Added Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
3
<chapter id="installation">
4
	<title>Installing @project.name@</title>
5
	<section id="installation-prereqs">
6
		<title>Prerequisites</title>
7
		<para>
8
			The @product.name@, or @short.product.name@ for short, requires Java SE 6 or later to be installed. Java is available from
9
			<ulink url="http://www.java.com/">http://www.java.com/</ulink> and elsewhere.
10
		</para>
11
	</section>
12
	<section id="installation-zip">
13
		<title>Installing from the ZIP Download</title>
14
		<section>
15
			<itemizedlist>
16
				<listitem>
17
					<para>
18
						<ulink url="http://download.eclipse.org/equinox/">Download</ulink> the Equinox JAR, for example <ulink url="http://download.eclipse.org/equinox/drops/R-3.6-201006080911/download.php?dropFile=org.eclipse.osgi_3.6.0.v20100517.jar">org.eclipse.osgi_3.6.0.v20100517.jar</ulink>, and move it to a suitable directory (e.g. ~/gemini-web-test). 
19
						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. 
20
					</para>
21
				</listitem>
22
				<listitem>
23
					<para>
24
						@product.name@ is distributed as a ZIP file.
25
						<ulink url="http://www.eclipse.org/gemini/web/download">Download</ulink> @product.name@ and unzip it to ~/gemini-web-test/gemini-web. 
26
					</para>
27
				</listitem>
28
				<listitem>
29
					<para>
30
						Configure Equinox by creating a directory ~/gemini-web-test/configuration and create files config.ini and Java6-server.profile in the configuration directory. 
31
						Example files which work with 1.1.0.RELEASE are available in <ulink url="http://wiki.eclipse.org/images/5/5e/Config.ini.zip">config.ini.zip</ulink> and <ulink url="http://wiki.eclipse.org/images/3/32/Java6-server.profile.zip">Java6-server.profile.zip</ulink>. 
32
						Essentially config.ini ensures that Java6-server.profile is used and that the dependencies of @product.name@, which come in the dep directory, are installed and then the @product.name@ bundles are installed and started. 
33
						Java6-server.profile ensures that javax.xml.ws is exported at version 2.1.1 from the system bundle as the Tomcat bundles in @product.name@ depend on that version. 
34
					</para>
35
				</listitem>
36
				<listitem>
37
					<para>
38
						Start Equinox as follows:
39
						<programlisting language="xml"><![CDATA[java -jar org.eclipse.osgi_3.6.0.v20100517.jar -console]]></programlisting></para>
40
				</listitem>
41
				<listitem>
42
					<para>
43
						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.
44
						<programlisting language="xml"><![CDATA[osgi> install file:simple-war.war
45
Bundle id is 40
46
osgi> start 40]]></programlisting></para>
47
				</listitem>
48
				<listitem>
49
					<para>
50
						Drive the WAR or web bundle using a web browser, e.g. http://localhost:8080/simple-war should display "Hello World!". 
51
					</para>
52
				</listitem>
53
				<listitem>
54
					<para>
55
						Stop @product.name@ as follows:
56
						<programlisting language="xml"><![CDATA[osgi> close]]></programlisting>
57
						<tip>
58
							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).
59
						</tip>
60
					</para>
61
				</listitem>
62
			</itemizedlist>
63
		</section>
64
	</section>
65
</chapter>
(-)a/org.eclipse.gemini.web.documentation/user-guide/src/introduction.xml (+35 lines)
Added Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
3
<chapter id="introduction">
4
	<title>Overview</title>
5
	<section id="intro">
6
		<title>Introduction</title>
7
		<para>
8
			@product.name@ implements the Web Container defined by the Web Applications Specification chapter of the OSGi Service Platform Release 4 Version 4.2 Enterprise Specification. 
9
			This specification may be downloaded <ulink url="http://www.osgi.org/Download/Release4V42">here</ulink>.
10
		</para>
11
	</section>
12
	<section id="about-this-guide">
13
		<title>About This Guide</title>
14
		<para>
15
			This User Guide contains step-by-step instructions on how to use @product.name@. This User Guide will enable you to:
16
			<itemizedlist>
17
				<listitem>
18
					<para>
19
						Install @product.name@
20
					</para>
21
				</listitem>
22
				<listitem>
23
					<para>
24
						Deploy and request a simple web application
25
					</para>
26
				</listitem>
27
				<listitem>
28
					<para>
29
						Configure Tomcat
30
					</para>
31
				</listitem>
32
			</itemizedlist>
33
		</para>
34
	</section>
35
</chapter>

Return to bug 330110