cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eesan Lin <eesa...@gmail.com>
Subject Re: CXF and JDK 1.6 compatibility
Date Thu, 21 Feb 2013 06:50:44 GMT
Hi Daniel,

The CXF 2.5.1 with JDK 1.5 works fine but with jdk 1.6.0.31 i am getting the
following error while doing a build.

 /WSDLToJava Error: Thrown by JAXB:
 Thrown by JAXB:
 JAXB version attribute must be present
  at line 1 column 240 of schema
file:/C:/Windows/TEMP/cxf-tmp-961911/customzied2919033589611390804.xsd

 JAXB version attribute must be present
  at line 1 column 228 of schema
file:/C:/Windows/TEMP/cxf-tmp-961911/customzied404554409616866985.xsd

 JAXB version attribute must be present
  at line 1 column 235 of schema
file:/C:/Windows/TEMP/cxf-tmp-961911/customzied6832076967347622205.xsd

 JAXB version attribute must be present
  at line 1 column 238 of schema
file:/C:/Windows/TEMP/cxf-tmp-961911/customzied203083681593723469.xsd


 org.apache.cxf.tools.common.ToolException: Thrown by JAXB:
 Thrown by JAXB:
 JAXB version attribute must be present
  at line 1 column 240 of schema
file:/C:/Windows/TEMP/cxf-tmp-961911/customzied2919033589611390804.xsd

 JAXB version attribute must be present
  at line 1 column 228 of schema
file:/C:/Windows/TEMP/cxf-tmp-961911/customzied404554409616866985.xsd

 JAXB version attribute must be present
  at line 1 column 235 of schema
file:/C:/Windows/TEMP/cxf-tmp-961911/customzied6832076967347622205.xsd

 JAXB version attribute must be present
  at line 1 column 238 of schema
file:/C:/Windows/TEMP/cxf-tmp-961911/customzied203083681593723469.xsd

     at
org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBBindErrorListener.throwError(JAXBBindErrorListener.java:40)
     at
org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:413)
     at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:591)
     at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:243)
     at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:138)
     at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:286)
     at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
     at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
     at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
     at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184)
 Caused by: org.xml.sax.SAXParseException: JAXB version attribute must be
present
     at
org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBBindErrorListener.error(JAXBBindErrorListener.java:61)
     at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.error(SchemaCompilerImpl.java:316)
     at
com.sun.tools.xjc.reader.internalizer.VersionChecker.endDocument(VersionChecker.java:136)
     at org.xml.sax.helpers.XMLFilterImpl.endDocument(Unknown Source)
     at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown
Source)
     at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown
Source)
     at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
     at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
     at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
     at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown
Source)
     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
     at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
     at
com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:398)
     at
com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:278)
     at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.parseSchema(SchemaCompilerImpl.java:157)
     at
org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:380)
     ... 8 more
/



I also tried having the jaxb-api2.2.3.jar under the jre/lib/endorsed dir and
still getting the same error as above. Please let me know if there are any
solutions.. I have been stucked here for a while.

Cheers
Eesan.




--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-and-JDK-1-6-compatibility-tp549419p5723520.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message