Buggy code:
public class WSDL2JavaClientDefaultingCommand extends AbstractDataModelOperation { private WSDL2JavaDataModel model ; private String projectName ; private String inputURL ; public WSDL2JavaClientDefaultingCommand ( WSDL2JavaDataModel model , String projectName , String inputURL ) { } @ Override public IStatus execute ( IProgressMonitor monitor , IAdaptable info ) throws ExecutionException { IStatus status = Status . OK_STATUS ; WSDL2JavaPersistentContext context = CXFCorePlugin . getDefault ( ) . getWSDL2JavaContext ( ) ; model . setCxfRuntimeVersion ( context . getCxfRuntimeVersion ( ) ) ; model . setCxfRuntimeEdition ( context . getCxfRuntimeEdition ( ) ) ; model . setProjectName ( projectName ) ; model . setIncludedNamespaces ( new HashMap < String , String > ( ) ) ; model . setExcludedNamespaces ( new HashMap < String , String > ( ) ) ; model . setXjcUseDefaultValues ( context . isXjcUseDefaultValues ( ) ) ; model . setXjcToString ( context . isXjcToString ( ) ) ; model . setXjcToStringMultiLine ( context . isXjcToStringMultiLine ( ) ) ; model . setXjcToStringSimple ( context . isXjcToStringSimple ( ) ) ; model . setXjcLocator ( context . isXjcLocator ( ) ) ; model . setXjcSyncMethods ( context . isXjcSyncMethods ( ) ) ; model . setXjcMarkGenerated ( context . isXjcMarkGenerated ( ) ) ; model . setValidate ( context . isValidate ( ) ) ; model . setProcessSOAPHeaders ( context . isProcessSOAPHeaders ( ) ) ; model . setLoadDefaultExcludesNamepsaceMapping ( context . isLoadDefaultExcludesNamepsaceMapping ( ) ) ; model . setLoadDefaultNamespacePackageNameMapping ( context . isLoadDefaultNamespacePackageNameMapping ( ) ) ; model . setUseDefaultValues ( context . isUseDefaultValues ( ) ) ; model . setNoAddressBinding ( context . isNoAddressBinding ( ) ) ; model . setAutoNameResolution ( context . isAutoNameResolution ( ) ) ; <START_BUG> model . setJavaSourceFolder ( JDTUtils . getJavaProjectSourceDirectoryPath ( model . getProjectName ( ) ) ) ; <END_BUG> try { URL wsdlUrl = new URL ( inputURL ) ; model . setWsdlURL ( wsdlUrl ) ; Definition definition = WSDLUtils . readWSDL ( model . getWsdlURL ( ) ) ; if ( definition != null ) { String targetNamespace = definition . getTargetNamespace ( ) ; String packageName = WSDLUtils . getPackageNameFromNamespace ( targetNamespace ) ; model . setTargetNamespace ( targetNamespace ) ; model . getIncludedNamespaces ( ) . put ( targetNamespace , packageName ) ; String wsdlLocation = WSDLUtils . getWSDLLocation ( definition ) ; if ( wsdlLocation != null ) { model . setWsdlLocation ( wsdlLocation ) ; } model . setWsdlDefinition ( definition ) ; } } catch ( MalformedURLException murle ) { status = new Status ( IStatus . ERROR , CXFConsumptionCorePlugin . PLUGIN_ID , murle . getLocalizedMessage ( ) ) ; CXFConsumptionCorePlugin . log ( status ) ; } catch ( IOException ioe ) { status = new Status ( IStatus . ERROR , CXFConsumptionCorePlugin . PLUGIN_ID , ioe . getLocalizedMessage ( ) ) ; CXFConsumptionCorePlugin . log ( status ) ; } return status ; } public WSDL2JavaDataModel getWSDL2JavaDataModel ( ) { } }

Fix:
model . setJavaSourceFolder ( JDTUtils . getJavaProjectSourceDirectoryPath ( model . getProjectName ( ) ) . toOSString ( ) ) ;