weaver 2004/07/13 10:52:33
Modified: portal/src/java/org/apache/jetspeed/tools/pamanager
ApplicationServerPAM.java
Log:
Allow no context errors for now, should implement a better solution though.
Revision Changes Path
1.3 +10 -3
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager/ApplicationServerPAM.java
Index: ApplicationServerPAM.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager/ApplicationServerPAM.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ApplicationServerPAM.java 9 Jul 2004 18:28:57 -0000 1.2
+++ ApplicationServerPAM.java 13 Jul 2004 17:52:33 -0000 1.3
@@ -216,7 +216,8 @@
private void checkResponse( String response ) throws PortletApplicationException
{
if (response == null
- || (!response.startsWith("OK") && response.indexOf("Application
already exists at path") == -1))
+ || (!response.startsWith("OK") && response.indexOf("Application
already exists at path") == -1)
+ && response.indexOf("No context exists for path") == -1)
{
if (response == null)
{
@@ -265,7 +266,13 @@
String paName = paWar.getPortletApplicationName();
if(isServerAvailable())
{
- checkResponse(appServerManager.reload("/" + paName));
+ String response = appServerManager.reload("/" + paName);
+ // This means the context may have been deleted, so now let's try
+ // and do a full deploy.
+ if(!response.startsWith("OK") )
+ {
+ deploy(paWar);
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]