106107108109110111112113114115116
servlet.setServletClass(clazz); servlet.addUrlMapping(urlPattern); builder.addServlet(servlet); deployment = host.addWebDeployment(builder); deployment.create(); } catch (Exception e) { throw WSLogger.ROOT_LOGGER.createContextPhaseFailed(e); } try {
208209210211212213214215216217218
deployment.setClassLoader(unit.getAttachment(WSAttachmentKeys.CLASSLOADER_KEY)); addServlets(jbwebMD, deployment); handle = host.addWebDeployment(deployment); handle.create(); } catch (Exception e) { throw WSLogger.ROOT_LOGGER.createContextPhaseFailed(e); } try { handle.start();