airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject svn commit: r1378605 - in /incubator/airavata/trunk/modules: airavata-client/src/main/java/org/apache/airavata/client/ airavata-client/src/main/java/org/apache/airavata/client/impl/ commons/common-registry-api/src/main/java/org/apache/airavata/common/r...
Date Wed, 29 Aug 2012 15:17:30 GMT
Author: smarru
Date: Wed Aug 29 15:17:29 2012
New Revision: 1378605

URL: http://svn.apache.org/viewvc?rev=1378605&view=rev
Log:
verified and applied Chathur's patch for AIRAVATA-559

Modified:
    incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/AiravataClient.java
    incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/impl/ExecutionManagerImpl.java
    incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/JCRRegistry.java
    incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataJCRRegistry.java
    incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImpl.java
    incubator/airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/component/registry/JCRComponentRegistry.java
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpretorSkeleton.java
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/registry/NewJCRRegistryUserDialog.java
    incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/RegistryServiceTest.java

Modified: incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/AiravataClient.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/AiravataClient.java?rev=1378605&r1=1378604&r2=1378605&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/AiravataClient.java
(original)
+++ incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/AiravataClient.java
Wed Aug 29 15:17:29 2012
@@ -471,36 +471,33 @@ public class AiravataClient implements A
 		AiravataClient.workflow = workflow;
 	}
 
-	public AiravataRegistry getRegistry() {
+	public AiravataRegistry getRegistry() throws RegistryException {
 		if (registry == null) {
 			try {
 				URL jcrURL = getClientConfiguration().getJcrURL();
 				URI uri = jcrURL.toURI();
 				String jcrUsername = getClientConfiguration().getJcrUsername();
 				String jcrPassword = getClientConfiguration().getJcrPassword();
-				registry=getRegistryObject(uri, jcrUsername, jcrPassword);
+				registry = getRegistryObject(uri, jcrUsername, jcrPassword);
 			} catch (URISyntaxException e) {
-				e.printStackTrace();
-			} catch (RepositoryException e) {
-				e.printStackTrace();
+				throw new RegistryException("Error in uri..", e);
 			}
-		}
+        }
 		return registry;
 	}
 
-	private static AiravataRegistry getRegistryObject(URI uri, String jcrUsername, String jcrPassword)
throws RepositoryException {
-		try {
-			HashMap<String, String> map = new HashMap<String, String>();
-			map.put("org.apache.jackrabbit.repository.uri", uri.toString());
-			AiravataRegistry registry = new AiravataJCRRegistry(
-					uri,
-					"org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory",
-					jcrUsername,
-					jcrPassword, map);
-			return registry;
-		} catch (RepositoryException e) {
-			throw e;
-		}
+	private static AiravataRegistry getRegistryObject(URI uri,
+                                                      String jcrUsername,
+                                                      String jcrPassword)
+            throws RegistryException {
+        HashMap<String, String> map = new HashMap<String, String>();
+        map.put("org.apache.jackrabbit.repository.uri", uri.toString());
+        AiravataRegistry registry = new AiravataJCRRegistry(
+                uri,
+                "org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory",
+                jcrUsername,
+                jcrPassword, map);
+        return registry;
 	}
 
 	public AiravataClientConfiguration getClientConfiguration() {
@@ -728,7 +725,6 @@ public class AiravataClient implements A
 		System.out.println(topicId);
 	}
 
-	@Override
 	public AiravataManager getAiravataManager() {
 		if (airavataManagerImpl==null) {
 			airavataManagerImpl = new AiravataManagerImpl(this);
@@ -736,7 +732,6 @@ public class AiravataClient implements A
 		return airavataManagerImpl;
 	}
 
-	@Override
 	public ApplicationManager getApplicationManager() {
 		if (applicationManagerImpl==null) {
 			applicationManagerImpl = new ApplicationManagerImpl(this);
@@ -744,7 +739,6 @@ public class AiravataClient implements A
 		return applicationManagerImpl;
 	}
 
-	@Override
 	public WorkflowManager getWorkflowManager() {
 		if (workflowManagerImpl==null) {
 			workflowManagerImpl = new WorkflowManagerImpl(this);
@@ -752,7 +746,6 @@ public class AiravataClient implements A
 		return workflowManagerImpl;
 	}
 
-	@Override
 	public ProvenanceManager getProvenanceManager() {
 		if (provenanceManagerImpl==null) {
 			provenanceManagerImpl = new ProvenanceManagerImpl(this);
@@ -760,7 +753,6 @@ public class AiravataClient implements A
 		return provenanceManagerImpl;
 	}
 
-	@Override
 	public UserManager getUserManager() {
 		if (userManagerImpl==null) {
 			userManagerImpl = new UserManagerImpl(this);
@@ -768,7 +760,6 @@ public class AiravataClient implements A
 		return userManagerImpl;
 	}
 
-	@Override
 	public ExecutionManager getExecutionManager() {
 		if (executionManagerImpl==null) {
 			executionManagerImpl = new ExecutionManagerImpl(this);
@@ -776,7 +767,6 @@ public class AiravataClient implements A
 		return executionManagerImpl;
 	}
 
-	@Override
 	public String getCurrentUser() {
 		return currentUser;
 	}
@@ -800,7 +790,6 @@ public class AiravataClient implements A
         return null;
     }
     
-	@Override
 	public Version getVersion() {
 		return API_VERSION;
 	}

Modified: incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/impl/ExecutionManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/impl/ExecutionManagerImpl.java?rev=1378605&r1=1378604&r2=1378605&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/impl/ExecutionManagerImpl.java
(original)
+++ incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/impl/ExecutionManagerImpl.java
Wed Aug 29 15:17:29 2012
@@ -28,6 +28,7 @@ import org.apache.airavata.client.Airava
 import org.apache.airavata.client.AiravataClientConfiguration;
 import org.apache.airavata.client.api.AiravataAPIInvocationException;
 import org.apache.airavata.client.api.ExecutionManager;
+import org.apache.airavata.common.registry.api.exception.RegistryException;
 import org.apache.airavata.common.workflow.execution.context.WorkflowContextHeaderBuilder;
 import org.apache.airavata.core.gfac.context.invocation.impl.DefaultExecutionContext;
 import org.apache.airavata.core.gfac.notification.impl.LoggingNotification;
@@ -126,7 +127,11 @@ public class ExecutionManagerImpl implem
     public DefaultExecutionContext createDefaultExecutionContext() throws AiravataAPIInvocationException
{
         DefaultExecutionContext ec = new DefaultExecutionContext();
 //        ec.addNotifiable(new LoggingNotification());
-        ec.setRegistryService(getClient().getRegistry());
+        try {
+            ec.setRegistryService(getClient().getRegistry());
+        } catch (RegistryException e) {
+            throw new AiravataAPIInvocationException(e);
+        }
         return  ec;
     }
 

Modified: incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/JCRRegistry.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/JCRRegistry.java?rev=1378605&r1=1378604&r2=1378605&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/JCRRegistry.java
(original)
+++ incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/JCRRegistry.java
Wed Aug 29 15:17:29 2012
@@ -46,6 +46,7 @@ import javax.jcr.observation.EventIterat
 import javax.jcr.observation.EventListener;
 
 import org.apache.airavata.common.registry.api.Registry;
+import org.apache.airavata.common.registry.api.exception.RegistryException;
 import org.apache.airavata.common.registry.api.user.UserManager;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -80,7 +81,7 @@ public class JCRRegistry extends Observa
     
     
     public JCRRegistry(URI repositoryURI, String className, String user, String pass, Map<String,
String> map)
-            throws RepositoryException {
+            throws RegistryException {
         try {
             /*
              * Load the configuration from properties file at this level and create the object
@@ -97,12 +98,14 @@ public class JCRRegistry extends Observa
             definiteSessionTimeout();
             setupRegistryModifyHandler();
         } catch (ClassNotFoundException e) {
-            log.error("Error class path settting", e);
+            log.error("Error class path setting", e);
+            throw new RegistryException("Error class path setting", e);
         } catch (RepositoryException e) {
             log.error("Error connecting Remote Registry instance", e);
-            throw e;
+            throw new RegistryException("Error connecting Remote Registry instance", e);
         } catch (Exception e) {
             log.error("Error init", e);
+            throw new RegistryException("Error init", e);
         }
     }
 

Modified: incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataJCRRegistry.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataJCRRegistry.java?rev=1378605&r1=1378604&r2=1378605&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataJCRRegistry.java
(original)
+++ incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataJCRRegistry.java
Wed Aug 29 15:17:29 2012
@@ -98,7 +98,7 @@ public class AiravataJCRRegistry extends
 
     public AiravataJCRRegistry(URI repositoryURI, String className,
 			String user, String pass, Map<String, String> map)
-			throws RepositoryException {
+            throws RegistryException {
 		super(repositoryURI, className, user, pass, map);
         setupProvenanceRegistry();
 	}

Modified: incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImpl.java?rev=1378605&r1=1378604&r2=1378605&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImpl.java
(original)
+++ incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImpl.java
Wed Aug 29 15:17:29 2012
@@ -27,6 +27,7 @@ import java.util.Iterator;
 import java.util.Map;
 import java.util.Properties;
 
+import org.apache.airavata.common.registry.api.exception.RegistryException;
 import org.apache.airavata.common.registry.api.impl.JCRRegistry;
 import org.apache.airavata.common.workflow.execution.context.WorkflowContextHeaderBuilder;
 import org.apache.airavata.core.gfac.context.invocation.InvocationContext;
@@ -119,7 +120,7 @@ public class PropertiesBasedServiceImpl 
     /**
      * Constructor with passing file
      *
-     * @param prop
+     * @param fileName
      */
     public PropertiesBasedServiceImpl(String fileName) {
         this.fileName = fileName;
@@ -237,8 +238,8 @@ public class PropertiesBasedServiceImpl 
                 try {
                     // TODO pass the url of the registry as the first parameter
                     this.registryService = new AiravataJCRRegistry(null, jcrClass, userName,
password, map);
-                } catch (javax.jcr.RepositoryException e) {
-                    e.printStackTrace(); // To change body of catch statement use File |
Settings | File Templates.
+                } catch (RegistryException e) {
+                    e.printStackTrace();  // To change body of catch statement use File |
Settings | File Templates.
                 }
 
                 log.info("Default registry service is created");
@@ -349,7 +350,7 @@ public class PropertiesBasedServiceImpl 
      * @param propertyName
      * @param required
      * @return
-     * @throws GfacException
+     * @throws ServiceException
      */
     private String loadFromProperty(String propertyName, boolean required) throws ServiceException
{
         String propValue = this.config.getString(propertyName);
@@ -363,7 +364,11 @@ public class PropertiesBasedServiceImpl 
 
     /**
 	 *
-	 */
+     * @param propertyName
+     * @param type
+     * @return
+     * @throws org.apache.airavata.core.gfac.exception.ServiceException
+     */
     @SuppressWarnings("unchecked")
     private <T> T[] loadClassFromProperties(String propertyName, Class<? extends
ExitableChain> type)
             throws ServiceException {

Modified: incubator/airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/component/registry/JCRComponentRegistry.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/component/registry/JCRComponentRegistry.java?rev=1378605&r1=1378604&r2=1378605&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/component/registry/JCRComponentRegistry.java
(original)
+++ incubator/airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/component/registry/JCRComponentRegistry.java
Wed Aug 29 15:17:29 2012
@@ -44,15 +44,14 @@ public class JCRComponentRegistry extend
 
     private AiravataJCRRegistry registry;
 
-    public JCRComponentRegistry(URI url, String username, String password) throws RepositoryException
{
+    public JCRComponentRegistry(URI url, String username, String password) throws RegistryException
{
         HashMap<String, String> map = new HashMap<String, String>();
         map.put("org.apache.jackrabbit.repository.uri", url.toString());
-        try {
-            this.registry = new AiravataJCRRegistry(url, "org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory",
username,
-                    password, map);
-        } catch (RepositoryException e) {
-            throw e;
-        }
+
+        this.registry = new AiravataJCRRegistry(url,
+                "org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory",
+                username, password, map);
+
     }
 
     static {

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpretorSkeleton.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpretorSkeleton.java?rev=1378605&r1=1378604&r2=1378605&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpretorSkeleton.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpretorSkeleton.java
Wed Aug 29 15:17:29 2012
@@ -35,7 +35,6 @@ import java.util.List;
 import java.util.Map;
 import java.util.Properties;
 
-import javax.jcr.RepositoryException;
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLInputFactory;
 import javax.xml.stream.XMLStreamException;
@@ -126,7 +125,7 @@ public class WorkflowInterpretorSkeleton
             jcrURL = (String) properties.get(JCR_URL);
             jcrComponentRegistry = new JCRComponentRegistry(new URI(jcrURL),jcrUserName,jcrPassword);
             return jcrComponentRegistry.getRegistry();
-        } catch (RepositoryException e) {
+        } catch (RegistryException e) {
             e.printStackTrace();  //To change body of catch statement use File | Settings
| File Templates.
         } catch (URISyntaxException e) {
             e.printStackTrace();  //To change body of catch statement use File | Settings
| File Templates.
@@ -178,13 +177,11 @@ public class WorkflowInterpretorSkeleton
                                     registry.saveHostDescription(host);
                                 }
                             }
-		                } catch (RepositoryException e) {
+		                } catch (RegistryException e) {
 		                    e.printStackTrace();  //To change body of catch statement use File
| Settings | File Templates.
 		                } catch (URISyntaxException e) {
 		                    e.printStackTrace();  //To change body of catch statement use File
| Settings | File Templates.
-		                } catch (RegistryException e) {
-                            e.printStackTrace();  //To change body of catch statement use
File | Settings | File Templates.
-                        }
+		                }
                     }else{
 		                provenance = false;
 		            }

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/registry/NewJCRRegistryUserDialog.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/registry/NewJCRRegistryUserDialog.java?rev=1378605&r1=1378604&r2=1378605&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/registry/NewJCRRegistryUserDialog.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/registry/NewJCRRegistryUserDialog.java
Wed Aug 29 15:17:29 2012
@@ -1,24 +1,24 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- */
-
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
 package org.apache.airavata.xbaya.ui.dialogs.registry;
 
 import java.awt.event.ActionEvent;
@@ -32,13 +32,14 @@ import javax.swing.JButton;
 import javax.swing.JPanel;
 import javax.swing.JPasswordField;
 
+import org.apache.airavata.common.registry.api.exception.RegistryException;
 import org.apache.airavata.common.registry.api.user.AuthorizableExistsException;
-import org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry;
+import org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry;
 import org.apache.airavata.xbaya.XBayaEngine;
-import org.apache.airavata.xbaya.ui.dialogs.XBayaDialog;
-import org.apache.airavata.xbaya.ui.widgets.GridPanel;
-import org.apache.airavata.xbaya.ui.widgets.XBayaLabel;
-import org.apache.airavata.xbaya.ui.widgets.XBayaTextField;
+import org.apache.airavata.xbaya.ui.dialogs.XBayaDialog;
+import org.apache.airavata.xbaya.ui.widgets.GridPanel;
+import org.apache.airavata.xbaya.ui.widgets.XBayaLabel;
+import org.apache.airavata.xbaya.ui.widgets.XBayaTextField;
 
 public class NewJCRRegistryUserDialog {
 
@@ -122,6 +123,9 @@ public class NewJCRRegistryUserDialog {
             } catch (RepositoryException e) {
                 e.printStackTrace();
                 engine.getGUI().getErrorWindow().error(e.getMessage());
+            } catch (RegistryException e) {
+                e.printStackTrace();
+                engine.getGUI().getErrorWindow().error(e.getMessage());
             }
         } else {
             engine.getGUI().getErrorWindow().error(status);
@@ -167,7 +171,6 @@ public class NewJCRRegistryUserDialog {
         infoPanel.layout(4, 2, GridPanel.WEIGHT_NONE, 1);
 
         urlTextField.getSwingComponent().addActionListener(new ActionListener() {
-            @Override
             public void actionPerformed(ActionEvent event) {
                 updateURL();
                 updateStatus();
@@ -176,7 +179,6 @@ public class NewJCRRegistryUserDialog {
         });
 
         usernameTextField.getSwingComponent().addActionListener(new ActionListener() {
-            @Override
             public void actionPerformed(ActionEvent event) {
                 updateUsername();
                 updateStatus();
@@ -185,7 +187,6 @@ public class NewJCRRegistryUserDialog {
         });
 
         passwordTextField.addActionListener(new ActionListener() {
-            @Override
             public void actionPerformed(ActionEvent event) {
                 updatePassword();
                 updateStatus();
@@ -193,7 +194,6 @@ public class NewJCRRegistryUserDialog {
         });
 
         confirmPasswordTextField.addActionListener(new ActionListener() {
-            @Override
             public void actionPerformed(ActionEvent event) {
                 updatePassword();
                 updateStatus();

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/RegistryServiceTest.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/RegistryServiceTest.java?rev=1378605&r1=1378604&r2=1378605&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/RegistryServiceTest.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/RegistryServiceTest.java
Wed Aug 29 15:17:29 2012
@@ -76,7 +76,7 @@ public class RegistryServiceTest {
             config.put("org.apache.jackrabbit.repository.home","target");
             jcrRegistry = new AiravataJCRRegistry(null, "org.apache.jackrabbit.core.RepositoryFactoryImpl",
"admin", "admin",
                     config);
-        } catch (RepositoryException e) {
+        } catch (RegistryException e) {
             fail("Failed creating the JCR Registry");
         }
 



Mime
View raw message