while (phases.hasNext()) {
OMElement phaseelement = (OMElement) phases.next();
String phaseName =
phaseelement.getAttribute(new QName(ATTRIBUTE_NAME)).getAttributeValue();
String phaseClass = phaseelement.getAttributeValue(new QName(TAG_CLASS_NAME));
Phase phase;
try {
phase = getPhase(phaseClass);
} catch (Exception e) {
throw new DeploymentException(
Messages.getMessage("phaseclassnotfound", phaseClass, e.getMessage()));
}
phase.setName(phaseName);
Iterator handlers = phaseelement.getChildrenWithName(new QName(TAG_HANDLER));
while (handlers.hasNext()) {
OMElement omElement = (OMElement) handlers.next();
HandlerDescription handler = processHandler(omElement, axisConfig, phaseName);
handler.getRules().setPhaseName(phaseName);
try {
if (Utils.loadHandler(axisConfig.getSystemClassLoader(), handler)) {
try {
phase.addHandler(handler);
} catch (PhaseException e) {
throw new DeploymentException(e);
}
}
} catch (UnsupportedClassVersionError e) {