Program: 29099
Project: 29099
Buggy source:
protected void setupJaxWSServiceForDeployment(DeploymentContext dc,WebService ws) throws DeploymentException {
  BundleDescriptor bundle=dc.getModuleMetaData(BundleDescriptor.class);
  File moduleDir=dc.getSourceDir();
  File wsdlDir=dc.getScratchDir("String_Node_Str");
  wsdlDir.mkdirs();
  File stubsDir=dc.getScratchDir("String_Node_Str");
  stubsDir.mkdirs();
  if (!DOLUtils.warType().equals(bundle.getModuleType()) && !DOLUtils.ejbType().equals(bundle.getModuleType())) {
    return;
  }
  wsdlDir=new File(wsdlDir,bundle.getWsdlDir().replaceAll("String_Node_Str","String_Node_Str" + File.separator));
  String wsdlFileUri;
  File wsdlFile;
  try {
    checkCatalog(bundle,ws,moduleDir);
  }
 catch (  DeploymentException e) {
    logger.log(Level.SEVERE,"String_Node_Str");
  }
  if (ws.hasWsdlFile()) {
    if (ws.getWsdlFileUri().startsWith("String_Node_Str")) {
      try {
        wsdlFileUri=downloadWsdlsAndSchemas(new URL(ws.getWsdlFileUri()),wsdlDir);
      }
 catch (      Exception e) {
        throw new DeploymentException(e.toString(),e);
      }
      wsdlFile=new File(wsdlDir,wsdlFileUri);
    }
 else {
      wsdlFileUri=ws.getWsdlFileUri();
      File wsdlFileAbs=new File(wsdlFileUri);
      wsdlFile=wsdlFileAbs.isAbsolute() ? wsdlFileAbs : new File(moduleDir,wsdlFileUri);
    }
    if (!wsdlFile.exists()) {
      String errorMessage=format(rb.getString("String_Node_Str"),ws.getWsdlFileUri(),bundle.getModuleDescriptor().getArchiveUri());
      logger.severe(errorMessage);
      throw new DeploymentException(errorMessage);
    }
  }
}

Fixed version (ground truth):
protected void setupJaxWSServiceForDeployment(DeploymentContext dc,WebService ws) throws DeploymentException {
  BundleDescriptor bundle=dc.getModuleMetaData(BundleDescriptor.class);
  File moduleDir=dc.getSourceDir();
  File wsdlDir=dc.getScratchDir("String_Node_Str");
  mkDirs(wsdlDir);
  File stubsDir=dc.getScratchDir("String_Node_Str");
  mkDirs(stubsDir);
  if (!DOLUtils.warType().equals(bundle.getModuleType()) && !DOLUtils.ejbType().equals(bundle.getModuleType())) {
    return;
  }
  wsdlDir=new File(wsdlDir,bundle.getWsdlDir().replaceAll("String_Node_Str","String_Node_Str" + File.separator));
  String wsdlFileUri;
  File wsdlFile;
  try {
    checkCatalog(bundle,ws,moduleDir);
  }
 catch (  DeploymentException e) {
    logger.log(Level.SEVERE,"String_Node_Str");
  }
  if (ws.hasWsdlFile()) {
    if (ws.getWsdlFileUri().startsWith("String_Node_Str")) {
      try {
        wsdlFileUri=downloadWsdlsAndSchemas(new URL(ws.getWsdlFileUri()),wsdlDir);
      }
 catch (      Exception e) {
        throw new DeploymentException(e.toString(),e);
      }
      wsdlFile=new File(wsdlDir,wsdlFileUri);
    }
 else {
      wsdlFileUri=ws.getWsdlFileUri();
      File wsdlFileAbs=new File(wsdlFileUri);
      wsdlFile=wsdlFileAbs.isAbsolute() ? wsdlFileAbs : new File(moduleDir,wsdlFileUri);
    }
    if (!wsdlFile.exists()) {
      String errorMessage=format(rb.getString("String_Node_Str"),ws.getWsdlFileUri(),bundle.getModuleDescriptor().getArchiveUri());
      logger.severe(errorMessage);
      throw new DeploymentException(errorMessage);
    }
  }
}