public void loadServicesFromUrl(URL repoURL) { try { String path = servicesPath == null ? DeploymentConstants.SERVICE_PATH : servicesPath; if (!path.endsWith("/")) { path += "/"; } String repoPath = repoURL.getPath(); if (!repoPath.endsWith("/")) { repoPath += "/"; repoURL = new URL(repoURL.getProtocol() + "://" + repoPath); } URL servicesDir = new URL(repoURL, path); URL filelisturl = new URL(servicesDir, "services.list"); ArrayList<String> files = getFileList(filelisturl); repoListener = new RepositoryListener(this, false); for (Object file : files) { String fileUrl = (String) file; if (fileUrl.endsWith(".aar")) { URL servicesURL = new URL(servicesDir, fileUrl); repoListener.addURLToDeploy(servicesURL, getServiceDeployer(), WSInfo.TYPE_SERVICE); } } repoListener.update(); //Loading other type of services such as custom deployers loadCustomServices(repoURL); } catch (MalformedURLException e) { log.error(e.getMessage(), e); } }
public void loadServicesFromUrl(URL repoURL) { try { String path = servicesPath == null ? DeploymentConstants.SERVICE_PATH : servicesPath; if (!path.endsWith("/")) { path += "/"; } String repoPath = repoURL.getPath(); if (!repoPath.endsWith("/")) { repoPath += "/"; repoURL = new URL(repoURL.getProtocol() + "://" + repoPath); } URL servicesDir = new URL(repoURL, path); URL filelisturl = new URL(servicesDir, "services.list"); ArrayList<String> files = getFileList(filelisturl); repoListener = new RepositoryListener(this, false); for (Object file : files) { String fileUrl = (String) file; if (fileUrl.endsWith(".aar")) { URL servicesURL = new URL(servicesDir, fileUrl); repoListener.addURLToDeploy(servicesURL, getServiceDeployer(), WSInfo.TYPE_SERVICE); } } repoListener.update(); //Loading other type of services such as custom deployers loadCustomServices(repoURL); } catch (MalformedURLException e) { log.error(e.getMessage(), e); } }
Iterator<String> fileIterator = getFileList(filelisturl).iterator(); axisConfig.setRepository(repoURL); repoListener = new RepositoryListener(this, false); while (fileIterator.hasNext()) { String fileUrl = (String) fileIterator.next();
Iterator<String> fileIterator = getFileList(filelisturl).iterator(); axisConfig.setRepository(repoURL); repoListener = new RepositoryListener(this, false); while (fileIterator.hasNext()) { String fileUrl = (String) fileIterator.next();
public void loadRepository(String repoDir) throws DeploymentException { File axisRepo = new File(repoDir); if (!axisRepo.exists()) { throw new DeploymentException( Messages.getMessage("cannotfindrepo", repoDir)); } setDeploymentFeatures(); prepareRepository(repoDir); // setting the CLs setClassLoaders(repoDir); repoListener = new RepositoryListener(this, false); org.apache.axis2.util.Utils .calculateDefaultModuleVersion(axisConfig.getModules(), axisConfig); try { try { axisConfig.setRepository(axisRepo.toURI().toURL()); } catch (MalformedURLException e) { log.info(e.getMessage()); } axisConfig.validateSystemPredefinedPhases(); } catch (AxisFault axisFault) { throw new DeploymentException(axisFault); } }
public void loadRepository(String repoDir) throws DeploymentException { File axisRepo = new File(repoDir); if (!axisRepo.exists()) { throw new DeploymentException( Messages.getMessage("cannotfindrepo", repoDir)); } setDeploymentFeatures(); prepareRepository(repoDir); // setting the CLs setClassLoaders(repoDir); repoListener = new RepositoryListener(this, false); org.apache.axis2.util.Utils .calculateDefaultModuleVersion(axisConfig.getModules(), axisConfig); try { try { axisConfig.setRepository(axisRepo.toURI().toURL()); } catch (MalformedURLException e) { log.info(e.getMessage()); } axisConfig.validateSystemPredefinedPhases(); } catch (AxisFault axisFault) { throw new DeploymentException(axisFault); } }
public void loadFromClassPath() throws DeploymentException { //loading modules from the classpath new RepositoryListener(this, true); org.apache.axis2.util.Utils.calculateDefaultModuleVersion( axisConfig.getModules(), axisConfig); axisConfig.validateSystemPredefinedPhases(); try { engageModules(); } catch (AxisFault axisFault) { log.info(Messages.getMessage(DeploymentErrorMsgs.MODULE_VALIDATION_FAILED, axisFault.getMessage())); throw new DeploymentException(axisFault); } }
public void loadFromClassPath() throws DeploymentException { //loading modules from the classpath new RepositoryListener(this, true); org.apache.axis2.util.Utils.calculateDefaultModuleVersion( axisConfig.getModules(), axisConfig); axisConfig.validateSystemPredefinedPhases(); try { engageModules(); } catch (AxisFault axisFault) { log.info(Messages.getMessage(DeploymentErrorMsgs.MODULE_VALIDATION_FAILED, axisFault.getMessage())); throw new DeploymentException(axisFault); } }