开发者

Apache CXF 2.3.0 WSDLToJava problem

I'm trying out apachecxf 2.3.0 and i'm having problems using the wsdlToJava tool. No matter what, i get an WSDLToJava Error: java.lang.reflect.UndeclaredThrowableException. Tried an older version 2.1 and it w开发者_Go百科orks fine on the same WSDL. Are anyone else having the same problem with this version?


Add -frontend jaxws21 as jdk6 has 2.1 jaxb builtin while 2.3 is trying to use 2.2 jaxb(or put 2.2 jaxb into your jdk so it uses that instead of 2.1)....

      <java classname="org.apache.cxf.tools.wsdlto.WSDLToJava" fork="true" failonerror="true">
         <arg value="-impl"/>
         <arg value="-d"/>
         <arg value="${gen.src}"/>
         <arg value="-frontend"/>
         <arg value="jaxws21"/>
         <arg value="${input}/schemas/enrollment.wsdl"/>
         <classpath>
            <path refid="cxf.classpath"/>
         </classpath>
      </java>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜