eclipse - How can i heal... cvc-elt.1: Cannot find the declaration of element 'jaxb:bindings' -


having .xjb file, eclipse cmplains can't find element jaxb:bindings. come from?

<?xml version="1.0" encoding="utf-8" standalone="yes"?> <jaxb:bindings xmlns="http://java.sun.com/xml/ns/jaxb"     xmlns:xsi="http://www.w3.org/2000/10/xmlschema-instance"     xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"     xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"     xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"     xmlns:xs="http://www.w3.org/2001/xmlschema"     xsi:schemalocation="http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd" version="2.1">     <jaxb:globalbindings>         <jaxb:serializable uid="1" />         <xjc:javatype name="java.lang.integer" xmltype="xs:int"              adapter="com.foo.bar.jaxb.adapter.integeradapter" />         <xjc:javatype name="java.lang.integer" xmltype="xs:integer"              adapter="com.foo.bar.jaxb.adapter.integeradapter" />         <xjc:javatype name="java.util.date" xmltype="xs:time"             adapter="com.foo.bar.jaxb.adapter.timeadapter" />         <xjc:javatype name="java.util.date" xmltype="xs:date"             adapter="com.foo.bar.jaxb.adapter.dateadapter" />         <xjc:javatype name="java.util.date" xmltype="xs:datetime"             adapter="com.foo.bar.jaxb.adapter.datetimeadapter" />     </jaxb:globalbindings> </jaxb:bindings> 

eclipse complains in line 9:

cvc-elt.1: cannot find declaration of element 'jaxb:bindings'.

why...and how can can fix teh problem?

i use configuration in projects.. (maven & maven-jaxb2-plugin)

<bindings version="2.0" xmlns="http://java.sun.com/xml/ns/jaxb"     xmlns:xs="http://www.w3.org/2001/xmlschema" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"     xmlns:annox="http://annox.dev.java.net">    <globalbindings>         <xjc:serializable uid="12343" />         <xjc:simple/>   </globalbindings>  </bindings> 

remove schema location declaration.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -