wsdl2java icon indicating copy to clipboard operation
wsdl2java copied to clipboard

Doesn't work with cxf versions 3.3.x

Open postapczuk opened this issue 6 years ago • 4 comments

The only message is:

Unable to find resource 'org/apache/cxf/tools/wsdlto/frontend/jaxws/template/client.vm'

The vm file is in cxf-tools-wsdlto-frontend-jaxws. Probably it should be added to dependencies, but I didn't suceeded. Would be great to put this info in README

postapczuk avatar Oct 29 '19 15:10 postapczuk

Hi Piotr,

I dont know how to reproduce this or what the README is missing. Could you create a PR for the README?

nilsmagnus avatar Oct 29 '19 15:10 nilsmagnus

this might help to solve this problem:

buildscript {
    dependencies {
        classpath 'no.nils:wsdl2java:0.10'
        classpath 'org.apache.cxf:cxf-tools-wsdlto-frontend-jaxws:3.3.3'
    }
}

maciejmiklas avatar Oct 30 '19 14:10 maciejmiklas

I struggled with the error when running gradlew clean wsdl2java as well:

Execution failed for task ':wsdl2java'.
> Could not find Velocity template file: org/apache/cxf/tools/wsdlto/frontend/jaxws/template/build.vm

I found out that the started gradle daemon is "stateful" with respect to the cxfVersion config setting. That means that setting the cxf version to a working version via

wsdl2javaExt {
    cxfVersion = "3.3.2"
}

is only considered after the gradle daemon has been restarted (just stop it with gradlew --stop and then it gets restarted automatically). Otherwise, the gradle daemon is tainted and won't work again, even if the cxfVersion is reset from 3.3.4 to 3.3.2 or 3.3.3.

I'm also pretty sure that the regression happened from jxf version 3.3.3 to 3.3.4. Maybe @postapczuk can confirm this?

neiser avatar Dec 04 '19 14:12 neiser

@postapczuk can confirm this?

@neiser I forgot to write about this. Yes! I've also solved it this way. I guess it should be placed in README, as it is crucial information.

postapczuk avatar Dec 09 '19 01:12 postapczuk