0

I'm using IntelliJ on Mac OS to create the stub from SOAP UI. After entering the WSDL url, output directory as "/Users/kaushik/Desktop" and package, when I try to generate the stub, it displays an error in a dialog box "CXF directory must be set in global preferences". I've tested the requests and it's working.

Error dialog while trying to generate.

Kaushik
  • 177
  • 2
  • 3
  • 13

2 Answers2

1

I was able to resolve it after I put the stubs in the client in the same package(com.abc.controller) as the one where I had my service class in the web service.

Hope this will be helpful for all facing the same error.

Kaushik
  • 177
  • 2
  • 3
  • 13
1

On the code generation screen (Apache CXF Stub) you need to specify CXF binaries location - click "Tools" (on the bottom right) and then in "Global Properties" set path to CXF (to the \bin folder).

enter image description here

rpl
  • 33
  • 1
  • 6