Program: 30106
Project: 30106
Buggy source:
/** 
 * Prepares the servlet based web services specified in web.xml for deployment. Swap the application written servlet implementation class for one provided by the container.  The original class is stored as runtime information since it will be used as the servant at dispatch time.
 */
private void doWebServiceDeployment(WebBundleDescriptor webBunDesc) throws DeploymentException, MalformedURLException {
  Collection<WebServiceEndpoint> endpoints=webBunDesc.getWebServices().getEndpoints();
  ClassLoader cl=webBunDesc.getClassLoader();
  WsUtil wsutil=new WsUtil();
  for (  WebServiceEndpoint nextEndpoint : endpoints) {
    WebComponentDescriptor webComp=nextEndpoint.getWebComponentImpl();
    if (!nextEndpoint.hasServletImplClass()) {
      throw new DeploymentException(format(rb.getString("String_Node_Str"),nextEndpoint.getEndpointName()));
    }
    String servletImplClass=nextEndpoint.getServletImplClass();
    if (!nextEndpoint.getWebService().hasFilePublishing()) {
      String publishingUri=nextEndpoint.getPublishingUri();
      String publishingUrlPattern=(publishingUri.charAt(0) == '/') ? publishingUri : "String_Node_Str" + publishingUri + "String_Node_Str";
      webComp.addUrlPattern(publishingUrlPattern);
    }
    try {
      Class servletImplClazz=cl.loadClass(servletImplClass);
      String containerServlet;
      if (wsutil.isJAXWSbasedService(nextEndpoint.getWebService())) {
        containerServlet="String_Node_Str";
        addWSServletContextListener(webBunDesc);
      }
 else {
        containerServlet=SingleThreadModel.class.isAssignableFrom(servletImplClazz) ? "String_Node_Str" : "String_Node_Str";
      }
      webComp.setWebComponentImplementation(containerServlet);
    }
 catch (    ClassNotFoundException cex) {
      throw new DeploymentException(format(rb.getString("String_Node_Str"),nextEndpoint.getEndpointName()));
    }
    WebServerInfo wsi=new WsUtil().getWebServerInfoForDAS();
    URL rootURL=wsi.getWebServerRootURL(nextEndpoint.isSecure());
    String contextRoot=webBunDesc.getContextRoot();
    URL actualAddress=nextEndpoint.composeEndpointAddress(rootURL,contextRoot);
    logger.info(format(rb.getString("String_Node_Str"),nextEndpoint.getEndpointName(),actualAddress.toString()));
  }
}

Fixed version (ground truth):
/** 
 * Prepares the servlet based web services specified in web.xml for deployment. Swap the application written servlet implementation class for one provided by the container.  The original class is stored as runtime information since it will be used as the servant at dispatch time.
 */
private void doWebServiceDeployment(WebBundleDescriptor webBunDesc) throws DeploymentException, MalformedURLException {
  Collection<WebServiceEndpoint> endpoints=webBunDesc.getWebServices().getEndpoints();
  ClassLoader cl=webBunDesc.getClassLoader();
  WsUtil wsutil=new WsUtil();
  for (  WebServiceEndpoint nextEndpoint : endpoints) {
    WebComponentDescriptor webComp=nextEndpoint.getWebComponentImpl();
    if (!nextEndpoint.hasServletImplClass()) {
      throw new DeploymentException(format(rb.getString("String_Node_Str"),nextEndpoint.getEndpointName()));
    }
    String servletImplClass=nextEndpoint.getServletImplClass();
    if (!nextEndpoint.getWebService().hasFilePublishing()) {
      String publishingUri=nextEndpoint.getPublishingUri();
      String publishingUrlPattern=(publishingUri.charAt(0) == '/') ? publishingUri : "String_Node_Str" + publishingUri + "String_Node_Str";
      webComp.addUrlPattern(publishingUrlPattern);
    }
    try {
      Class servletImplClazz=cl.loadClass(servletImplClass);
      String containerServlet;
      if (wsutil.isJAXWSbasedService(nextEndpoint.getWebService())) {
        containerServlet="String_Node_Str";
        addWSServletContextListener(webBunDesc);
      }
 else {
        containerServlet=SingleThreadModel.class.isAssignableFrom(servletImplClazz) ? "String_Node_Str" : "String_Node_Str";
      }
      webComp.setWebComponentImplementation(containerServlet);
    }
 catch (    ClassNotFoundException cex) {
      throw new DeploymentException(format(rb.getString("String_Node_Str"),nextEndpoint.getEndpointName()));
    }
    WebServerInfo wsi=new WsUtil().getWebServerInfoForDAS();
    URL rootURL=wsi.getWebServerRootURL(nextEndpoint.isSecure());
    String contextRoot=webBunDesc.getContextRoot();
    URL actualAddress=nextEndpoint.composeEndpointAddress(rootURL,contextRoot);
    if (wsi.getHttpVS() != null && wsi.getHttpVS().getPort() != 0)     logger.info(format(rb.getString("String_Node_Str"),nextEndpoint.getEndpointName(),actualAddress.toString()));
  }
}