wood burning stoves 2.0*
The moose likes Web Services and the fly likes wsdl2java - Apache CXF 2.6.2 with JDK1.7 gives WARNINGs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdl2java - Apache CXF 2.6.2 with JDK1.7 gives WARNINGs" Watch "wsdl2java - Apache CXF 2.6.2 with JDK1.7 gives WARNINGs" New topic
Author

wsdl2java - Apache CXF 2.6.2 with JDK1.7 gives WARNINGs

Murali Sridhar
Ranch Hand

Joined: Feb 16, 2009
Posts: 44

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.

Regards,
Murali
Murali Sridhar
Ranch Hand

Joined: Feb 16, 2009
Posts: 44

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: wsdl2java - Apache CXF 2.6.2 with JDK1.7 gives WARNINGs
 
Similar Threads
How to copy generated wsdl file to WAR file?
Compile build.xml with Ant for web service on Weblogic
CXF supports wsdl 2.0?
is there any alternative for ArrayList object in web services
[java] Java Result: 1 error