geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r681427 - /geronimo/server/branches/2.1/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp
Date Thu, 31 Jul 2008 18:03:34 GMT
Author: linsun
Date: Thu Jul 31 11:03:33 2008
New Revision: 681427

URL: http://svn.apache.org/viewvc?rev=681427&view=rev
Log:
update the instruction to replace the default welcome page

Modified:
    geronimo/server/branches/2.1/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp

Modified: geronimo/server/branches/2.1/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp?rev=681427&r1=681426&r2=681427&view=diff
==============================================================================
--- geronimo/server/branches/2.1/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp
(original)
+++ geronimo/server/branches/2.1/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp
Thu Jul 31 11:03:33 2008
@@ -148,18 +148,22 @@
                 <p>Your web deployment plan should look like this, and you can either
pack it into
                 the WAR at <tt>WEB-INF/geronimo-web.xml</tt> or provide it as
a separate argument
                 to the deploy tool.</p>
-<pre>&lt;web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"&gt;
-    &lt;environment&gt;
-        &lt;moduleId&gt;
-            &lt;artifactId&gt;MyApplication&lt;/artifactId&gt;
-        &lt;/moduleId&gt;
-    &lt;/environment&gt;
+<pre>&lt;web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0" 
+        xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"&gt;
+
+    &lt;dep:environment&gt;
+        &lt;dep:moduleId&gt;
+            &lt;dep:groupId&gt;com.MyCompany&lt;/dep:groupId&gt;
+            &lt;dep:artifactId&gt;MyWebApp&lt;/dep:artifactId&gt;
+            &lt;dep:version&gt;1.0&lt;/dep:version&gt;
+        &lt;/dep:moduleId&gt;
+    &lt;/dep:environment&gt;
     &lt;context-root&gt;/&lt;/context-root&gt;
 &lt;/web-app&gt;</pre>
                 <p>Then you can stop this application and deploy yours from the <a
href="/console">Admin Console</a> or from the command line with a sequence of commands
like this:</p>
                 <% boolean jetty = application.getServerInfo().toLowerCase().indexOf("jetty")
> -1; %>
-<pre>java -jar bin/deployer.jar stop welcome-<% if(jetty) {%>jetty<%} else
{%>tomcat<%}%>
-java -jar bin/deployer.jar deploy MyWebApp.war</pre>
+<pre>deploy.[bat|sh] stop org.apache.geronimo.configs/welcome-<% if(jetty) {%>jetty<%}
else {%>tomcat<%}%>/{geronimoVersion}/car
+deploy.[bat|sh] deploy MyWebApp-1.0.war</pre>
             </div>
 
             <p>Geronimo mailing lists are available at the Geronimo project web site:</p>



Mime
View raw message