Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wsdl2java - Apache CXF 2.6.2 with JDK1.7 gives WARNINGs

 
Murali Sridhar
Ranch Hand
Posts: 44
Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm trying to understand and provide a fix for WARNINGs generated by wsdl2java cmd using CXF 2.6.2 with JDK1.7.
The wsdl2java cmd is working fine WITH OUT any WARNINGs if I build with JDK1.6.

Could you please help me to find work around for the WARNINGs. FYI, using jaxb-impl-2.2.5.jar file for bindings.

Below are the build/ant log trace.

Buildfile: C:\msripad\app_4.12\bin\build\build.xml
[echo] building with jdk1.7
init:
[echo] Building for...'development' environment.
clean-all:
[echo] Cleaning output and staging directories...
[delete] Deleting: C:\msripad\app_4.12\target\jdk7\app-dev.war
cxf-generate-for-msr-wsdls:
[echo] building with jdk1.7
cxf-WSDLToJava-server:
[echo] Generating cxf server for wsdl : ../../src/main/resources/schemas/com/myorg/service/provider/someServiceservice/someServiceService.wsdl
[java] Loading FrontEnd jaxws ...
[java] Loading DataBinding jaxb ...
[java] wsdl2java -verbose -validate -server -impl -d ../../src/main/java/schema -b ../../src/main/resources/schemas/_bindings.xml -b ../../src/main/resources/schemas/mrp_bindings.xml ../../src/main/resources/schemas/com/myorg/service/provider/someServiceservice/someServiceService.wsdl
[java] wsdl2java - Apache CXF 2.6.2
[java] Nov 14, 2012 5:45:14 PM org.apache.cxf.tools.common.ToolErrorListener addWarning
[java] WARNING: C:\msripad\app_4.12\src\main\resources\schemas\com\myorg\service\entity\message\message2003.xsd [534,99]: src-resolve: Cannot resolve the name 'legalEntity:InternalLegalEntityId_Type' to a(n) 'type definition' component.
[echo] building with jdk1.7
cxf-WSDLToJava-server:
[echo] Generating cxf server for wsdl : ../../src/main/resources/schemas/com/myorg/service/provider/pfm/msr/msService/msService.wsdl
[java] Loading FrontEnd jaxws ...
[java] Loading DataBinding jaxb ...
[java] wsdl2java -verbose -validate -server -impl -d ../../src/main/java/schema -b ../../src/main/resources/schemas/_bindings.xml -b ../../src/main/resources/schemas/mrp_bindings.xml ../../src/main/resources/schemas/com/myorg/service/provider/msService/msService.wsdl
[java] wsdl2java - Apache CXF 2.6.2
[java] Nov 14, 2012 5:45:43 PM org.apache.cxf.tools.common.ToolErrorListener addWarning
[java] WARNING: C:\msripad\app_4.12\src\main\resources\schemas\com\myorg\service\provider\msService\addEditRules2011-12.xsd [49,61]: src-resolve: Cannot resolve the name 'msg2007:behaviorVersion' to a(n) 'element declaration' component.
[java] Nov 14, 2012 5:45:43 PM org.apache.cxf.tools.common.ToolErrorListener addWarning
[java] WARNING: C:\msripad\app_4.12\src\main\resources\schemas\com\myorg\service\provider\msService\addEditRules2011-12.xsd [50,38]: src-resolve: Cannot resolve the name 'party:CustId' to a(n) 'element declaration' component.
 
Murali Sridhar
Ranch Hand
Posts: 44
Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The above WARNINGgs were fixed in CXF2.6.3 Release. I have used cxf-2.6.3.jar (instead cxf-api-2.6.3.jar).
The recommendation: Download the cxf-2.6.3.jar file from Apache-CXF home ONLY.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic