/** * Gets the list of modules that is required to be engaged globally. * * @param moduleRefs <code>java.util.Iterator</code> * @throws DeploymentException <code>DeploymentException</code> */ protected void processModuleRefs(Iterator moduleRefs, AxisServiceGroup axisServiceGroup) throws DeploymentException { // try { while (moduleRefs.hasNext()) { OMElement moduleref = (OMElement) moduleRefs.next(); OMAttribute moduleRefAttribute = moduleref.getAttribute(new QName(TAG_REFERENCE)); if (moduleRefAttribute != null) { String refName = moduleRefAttribute.getAttributeValue(); axisServiceGroup.addModuleref(refName); // if (axisConfig.getModule(refName) == null) { // throw new DeploymentException( // Messages.getMessage(DeploymentErrorMsgs.MODULE_NOT_FOUND, refName)); // } else { // axisServiceGroup.addModuleref(refName); // } } } // } catch (AxisFault axisFault) { // throw new DeploymentException(axisFault); // } }
/** * Gets the list of modules that is required to be engaged globally. * * @param moduleRefs <code>java.util.Iterator</code> * @throws DeploymentException <code>DeploymentException</code> */ protected void processModuleRefs(Iterator moduleRefs, AxisServiceGroup axisServiceGroup) throws DeploymentException { // try { while (moduleRefs.hasNext()) { OMElement moduleref = (OMElement) moduleRefs.next(); OMAttribute moduleRefAttribute = moduleref.getAttribute(new QName(TAG_REFERENCE)); if (moduleRefAttribute != null) { String refName = moduleRefAttribute.getAttributeValue(); axisServiceGroup.addModuleref(refName); // if (axisConfig.getModule(refName) == null) { // throw new DeploymentException( // Messages.getMessage(DeploymentErrorMsgs.MODULE_NOT_FOUND, refName)); // } else { // axisServiceGroup.addModuleref(refName); // } } } // } catch (AxisFault axisFault) { // throw new DeploymentException(axisFault); // } }
/** * Gets the list of modules that is required to be engaged globally. * If the required module is not found this will return the error code 1: which is * "Error 1: Required module is not found" * * @param moduleRefs <code>java.util.Iterator</code> * @throws org.apache.axis2.deployment.DeploymentException * <code>DeploymentException</code> */ protected void processModuleRefs(Iterator moduleRefs, AxisServiceGroup axisServiceGroup) throws DeploymentException { while (moduleRefs.hasNext()) { OMElement moduleref = (OMElement) moduleRefs.next(); OMAttribute moduleRefAttribute = moduleref.getAttribute(new QName(TAG_REFERENCE)); if (moduleRefAttribute != null) { String refName = moduleRefAttribute.getAttributeValue(); if (axisConfig.getModule(refName) == null) { throw new DeploymentException(MODULE_NOT_FOUND_ERROR + refName); } else { axisServiceGroup.addModuleref(refName); } } } } }