cxf做客户端时,报 javax.xml.bind.JAXBException: "" doesnt contain ObjectFactory.class
整个异常信息中,还有个错误提示:
[error] IOException during exec() of compiler "javac". Check your path environment variable.
在网上查了查,是这个原因:
“CXF tools need javac to compile the generated source files.
Please add the javac's directory into the PATH environment variable.”
原来,我在环境变量里只设置了 java_home,没在path里面加上 %java_home%\bin....