It's not a secret anymore!*
The moose likes XML and Related Technologies and the fly likes JAXB Binding problem 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 » Engineering » XML and Related Technologies
Bookmark "JAXB Binding problem" Watch "JAXB Binding problem" New topic
Author

JAXB Binding problem

Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
The below is the schema?
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
targetNamespace="http://www.cmware.com"
jaxb:version="1.0">

<xs:complexType name="complexRole">
<xs:sequence>
<xs:element name="group" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="name" type="xs:string" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>

</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" />
</xs:complexType>
</xs:schema>


What is the below error means please help me I am struct.



[WARNING] Schema contains no global element declaration.
unknown location

parsing a schema...
compiling a schema...
com\cmware\easydeploy\model\deploy\ComplexRole.java
Exception in thread "main" java.lang.NullPointerException
at com.ibm.nio.cs.SBCS_Encoder.canEncode(SBCS_Encoder.java:198)
at com.sun.codemodel.JPackage$1.requireEscaping(JPackage.java:356)
at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.java:28)
at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.java:54)
at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.java:66)
at java.io.PrintWriter.newLine(PrintWriter.java:265)
at java.io.PrintWriter.println(PrintWriter.java:416)
at com.sun.codemodel.JFormatter.nl(JFormatter.java:159)
at com.sun.codemodel.JPackageMemberClass.declare(JPackageMemberClass.java:60)
at com.sun.codemodel.JPackage.build(JPackage.java:364)
at com.sun.codemodel.JCodeModel.build(JCodeModel.java:157)
at com.sun.tools.xjc.Driver.run(Driver.java:235)
at com.sun.tools.xjc.Driver._main(Driver.java:80)
at com.sun.tools.xjc.Driver.access$000(Driver.java:46)
at com.sun.tools.xjc.Driver$1.run(Driver.java:60)
Thanks
Farouk


SCJP, SCWCD, SCBCD, SCEA 5
Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
can any one help>?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB Binding problem
 
Similar Threads
schema generation
XML valiadation using schema
Unique particle attribution rule bit me - why?
problem with schemas
jaxb - getting InvocationTargetException during parsing