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: PetStore
Date Sat, 31 Jul 2004 01:13:56 GMT
   Date: 2004-07-30T18:13:56
   Editor: JacekLaskowski <jlaskowski@apache.org>
   Wiki: Apache Geronimo Wiki
   Page: PetStore
   URL: http://wiki.apache.org/geronimo/PetStore

   Info on WEB-INF/geronimo-jetty.xml

Change Log:

------------------------------------------------------------------------------
@@ -133,6 +133,27 @@
   </env-entry>
 }}}
 
+ 1. Create {{{WEB-INF/geronimo-jetty.xml}}}:
+
+ {{{
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/web/jetty" 
+         configId="petstore-web" 
+         parentId="petstore">
+    <context-root>/petstore</context-root>
+    <context-priority-classloader>false</context-priority-classloader>
+</web-app>
+}}}
+
+ and add it to petstore.war using the following command:
+
+ {{{
+jar -uvf petstore.war WEB-INF/geronimo-jetty.xml
+}}}
+
+ Once it's done, delete WEB-INF directory.
+
  1. Only RARs and WARs are currently supported in an unpacked EAR, so jar up /petstore/ear
directory.
 
  {{{
@@ -150,20 +171,6 @@
 }}}
 
 That's where our story ends up.
-
- 1. As mentioned at [http://wiki.apache.org/geronimo/Deployment#head-754164850f38c1ecdaf6b8ed894cb192bc36c5f4
Web Application section] of [http://wiki.apache.org/geronimo/Deployment Deployment] chapter
{{{WEB-INF/geronimo-jetty.xml}}} must be added to petstore.war.
-
- {{{
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app
-    xmlns="http://geronimo.apache.org/xml/ns/web/jetty"
-    configId="your/domain/name/Example"
-    parentId="org/apache/geronimo/Server"
-    >
-    <context-root>/debug-tool</context-root>
-    <context-priority-classloader>false</context-priority-classloader>
-</web-app>
-}}}
 
  1. Create '''petstore''' directory as a place where deployables are to be found. Open '''etc/boot-service.xml'''
and add '''${geronimo.home}/petstore''' after the comma, next to'''${geronimo.home}/deploy'''
in '''org.apache.geronimo.kernel.deployment.scanner.DeploymentScanner''' MBean as shown below:
{{{
     <mbean descriptor="org.apache.geronimo.kernel.deployment.scanner.DeploymentScanner"

Mime
View raw message