You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by li...@apache.org on 2008/07/31 19:37:12 UTC
svn commit: r681425 -
/geronimo/server/trunk/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp
Author: linsun
Date: Thu Jul 31 10:37:11 2008
New Revision: 681425
URL: http://svn.apache.org/viewvc?rev=681425&view=rev
Log:
update the instruction to replace the default welcome page
Modified:
geronimo/server/trunk/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp
Modified: geronimo/server/trunk/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp?rev=681425&r1=681424&r2=681425&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp (original)
+++ geronimo/server/trunk/plugins/welcome/geronimo-welcome/src/main/webapp/index.jsp Thu Jul 31 10:37:11 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><web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
- <environment>
- <moduleId>
- <artifactId>MyApplication</artifactId>
- </moduleId>
- </environment>
+<pre><web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0"
+ xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+ <dep:environment>
+ <dep:moduleId>
+ <dep:groupId>com.MyCompany</dep:groupId>
+ <dep:artifactId>MyWebApp</dep:artifactId>
+ <dep:version>1.0</dep:version>
+ </dep:moduleId>
+ </dep:environment>
<context-root>/</context-root>
</web-app></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>