geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geronimo-...@incubator.apache.org
Subject [Apache Geronimo Wiki] Updated: HowToTutorial
Date Tue, 18 May 2004 13:30:54 GMT
   Date: 2004-05-18T06:30:53
   Editor: PhilipMarkDonaghy <philipmarkdonaghy@yahoo.com>
   Wiki: Apache Geronimo Wiki
   Page: HowToTutorial
   URL: http://wiki.apache.org/geronimo/HowToTutorial

   Table of contents. Title is more clear. Added geronimo-jetty.xml and web.xml.

Change Log:

------------------------------------------------------------------------------
@@ -1,13 +1,12 @@
-= A tutorial/HOWTO. Using Geronimo with the Sun J2EE tutorial and Geronimo DEV. Sun J2EE
Tutorial version 1.4 =
+= HOWTO use Geronimo with the [http://java.sun.com/j2ee J2EE Tutorial] version 1.4 from [http://www.sun.com
Sun Microsystems] =
 
-== Dependancies Download ==
+== Dependencies Download ==
 
-Download the tutorials and examples in the same [http://java.sun.com/j2ee/download.html bundle].
The file name should be j2ee-1_4-doc-tutorial_1.zip. Extract the zip file close to the incubator-geronimo
target.
+Download the tutorials and examples in the same [http://java.sun.com/j2ee/download.html bundle].
The file name should be j2ee-1_4-doc-tutorial_1.zip. Extract the zip file somewhere.
 
 == J2EE Tutorial Examples ==
 
-Anchor Hello1
-Anchor HelloService
+[[TableOfContents]]
 
 === Hello1 Example ===
 
@@ -21,6 +20,19 @@
 
 ==== Create the file geronimo-jetty.xml ====
 
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app
+    xmlns="http://geronimo.apache.org/xml/ns/web/jetty"
+    configId="your/domain/name/j2eetutorialhello1"
+    parentId="org/apache/geronimo/Server"
+    >
+    <context-root>/j2eetutorialhello1</context-root>
+    <context-priority-classloader>false</context-priority-classloader>
+    <dependency>
+        <uri>tools/jars/tools.jar</uri>
+    </dependency>
+</web-app>
+
 ==== Create the war file ====
 
 jar -cf ../j2eehello1.war *
@@ -38,6 +50,18 @@
 Hmm...
 
 Modify the hello1/build/WEB-INF/web.xml
+
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+         version="2.4">
+
+    <!-- Welcome File List -->
+    <welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+    </welcome-file-list>
+</web-app>
 
 java -jar bin/deployer.jar --install --module j2eehello1.war
 

Mime
View raw message