You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by am...@apache.org on 2006/01/25 21:16:59 UTC
svn commit: r372306 - in /geronimo/trunk/applications/console-standard/src:
java/org/apache/geronimo/console/databasemanager/wizard/
webapp/WEB-INF/view/dbwizard/ webapp/WEB-INF/view/jmswizard/
webapp/WEB-INF/view/realmwizard/
Author: ammulder
Date: Wed Jan 25 12:16:54 2006
New Revision: 372306
URL: http://svn.apache.org/viewcvs?rev=372306&view=rev
Log:
Mwerge fix for GERONIMO-1450 from branch
Modified:
geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/dbwizard/showPlan.jsp
geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/dbwizard/usage.jsp
geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/jmswizard/plan.jsp
geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp
Modified: geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java?rev=372306&r1=372305&r2=372306&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java (original)
+++ geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java Wed Jan 25 12:16:54 2006
@@ -629,7 +629,7 @@
} else if(mode.equals(TEST_CONNECTION_MODE)) {
renderTestConnection(renderRequest, renderResponse);
} else if(mode.equals(SHOW_PLAN_MODE)) {
- renderPlan(renderRequest, renderResponse);
+ renderPlan(renderRequest, renderResponse, data);
} else if(mode.equals(IMPORT_START_MODE)) {
renderImportUploadForm(renderRequest, renderResponse);
} else if(mode.equals(IMPORT_STATUS_MODE)) {
@@ -776,9 +776,23 @@
testConnectionView.include(renderRequest, renderResponse);
}
- private void renderPlan(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException {
+ private void renderPlan(RenderRequest renderRequest, RenderResponse renderResponse, PoolData data) throws IOException, PortletException {
// Pass on results
renderRequest.setAttribute("deploymentPlan", renderRequest.getPortletSession().getAttribute("deploymentPlan"));
+ // Digest the RAR URI
+ String path = PortletManager.getRepositoryEntry(renderRequest, data.getRarPath()).getPath();
+ String base = PortletManager.getServerInfo(renderRequest).getCurrentBaseDirectory();
+ if(base != null && path.startsWith(base)) {
+ path = path.substring(base.length());
+ if(path.startsWith("/")) {
+ path = path.substring(1);
+ }
+ } else {
+ int pos = path.lastIndexOf('/');
+ path = path.substring(pos+1);
+ }
+ renderRequest.setAttribute("rarRelativePath", path);
+
planView.include(renderRequest, renderResponse);
}
Modified: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/dbwizard/showPlan.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/dbwizard/showPlan.jsp?rev=372306&r1=372305&r2=372306&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/dbwizard/showPlan.jsp (original)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/dbwizard/showPlan.jsp Wed Jan 25 12:16:54 2006
@@ -53,7 +53,7 @@
<pre>
cd GERONIMO_HOME
java -jar bin/deployer.jar deploy plan-file.xml \
- ${pool.rarPath}
+ ${rarRelativePath}
</pre></td>
</tr>
<!-- STATUS FIELD: Embed in EAR guidance -->
@@ -65,7 +65,7 @@
<ol>
<li>Copy and paste the plan to a file</li>
<li>Save the plan file to the top level of your EAR</li>
- <li>Copy the RAR file from <tt>GERONIMO_HOME/repository/${pool.rarPath}</tt>
+ <li>Copy the RAR file from <tt>GERONIMO_HOME/${rarRelativePath}</tt>
to the top level of your EAR</li>
<li>Create a <tt>META-INF/geronimo-application.xml</tt> file in your EAR
that has a <tt>module</tt> entry like this (substituting the correct
@@ -76,7 +76,7 @@
xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.0"
configId="MyApplication">
<module>
- <connector>rar-file-name</connector>
+ <connector>rar-file-name.rar</connector>
<alt-dd>plan-file-name.xml</alt-dd>
</module>
</application>
Modified: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/dbwizard/usage.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/dbwizard/usage.jsp?rev=372306&r1=372305&r2=372306&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/dbwizard/usage.jsp (original)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/dbwizard/usage.jsp Wed Jan 25 12:16:54 2006
@@ -48,10 +48,9 @@
<pre>
<?xml version="1.0" encoding="UTF-8"?>
<web-app
- xmlns="http://geronimo.apache.org/xml/ns/web"
- xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
- configId="MyConfigName"
- parentId="org/apache/geronimo/Server">
+ xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.0"
+ xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.0"
+ configId="MyConfigName">
<context-root>/MyWebApp</context-root>
<context-priority-classloader>true</context-priority-classloader>
@@ -75,10 +74,9 @@
<pre>
<?xml version="1.0" encoding="UTF-8"?>
<web-app
- xmlns="http://geronimo.apache.org/xml/ns/web"
- xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
- configId="MyConfigName"
- parentId="org/apache/geronimo/Server">
+ xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.0"
+ xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.0"
+ configId="MyConfigName">
<context-root>/MyWebApp</context-root>
<context-priority-classloader>true</context-priority-classloader>
Modified: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/jmswizard/plan.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/jmswizard/plan.jsp?rev=372306&r1=372305&r2=372306&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/jmswizard/plan.jsp (original)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/jmswizard/plan.jsp Wed Jan 25 12:16:54 2006
@@ -87,7 +87,7 @@
xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.0"
configId="MyApplication">
<module>
- <connector>rar-file-name</connector>
+ <connector>rar-file-name.rar</connector>
<alt-dd>plan-file-name.xml</alt-dd>
</module>
</application>
Modified: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp?rev=372306&r1=372305&r2=372306&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp (original)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/realmwizard/usage.jsp Wed Jan 25 12:16:54 2006
@@ -66,10 +66,9 @@
<pre>
<?xml version="1.0" encoding="UTF-8"?>
<web-app
- xmlns="http://geronimo.apache.org/xml/ns/web"
- xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
- configId="MyConfigName"
- parentId="geronimo/j2ee-server/1.1-SNAPSHOT/car">
+ xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.0"
+ xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.0"
+ configId="MyConfigName">
<context-root>/MyWebApp</context-root>
<context-priority-classloader>true</context-priority-classloader>