atom feed1 message in net.java.dev.jaxb.devJNLParseException[ Could not parse la...
FromSent OnAttachments
Pon ArunJan 31, 2010 10:53 pm 
Subject:JNLParseException[ Could not parse launch file. Error at line 0.]
From:Pon Arun (spon@gmail.com)
Date:Jan 31, 2010 10:53:48 pm
List:net.java.dev.jaxb.dev

Hello All,

I am very mucy new to JWSDP...

And i am learning JAXB...

After got some theoretical knowledge i tried to run an sample program to bind the schema.

Abut i am getting following exception

JNLParseException[ Could not parse launch file. Error at line 0.] at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.Main.launchApp(Unknown Source) at com.sun.javaws.Main.continueInSecureThread(Unknown Source) at com.sun.javaws.Main$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

Here is some more information:

1. I downloaded the JSWDP 2.0 and i installed the same (C:\Sun\jwsdp-2.0\jaxb) 2. And then i set the following JAVA_HOME = C:\Program Files\Java\jdk1.6.0_17 JAXB_HOME = C:\Sun\jwsdp-2.0\jaxb JAXB_LIBS = C:\Sun\jwsdp-2.0\jaxb\lib

When i am trying to compile my sample books.xsd file <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="1.0">

<xs:element name="Collection"> <xs:complexType> <xs:sequence> <xs:element name ="books"> <xs:complexType> <xs:sequence> <xs:element name="book" type="bookType" minOccurs="1" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element>

<xs:complexType name="bookType"> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="ISBN" type="xs:long"/> <xs:element name="price" type="xs:string"/> <xs:element name="authors" > <xs:complexType> <xs:sequence> <xs:element name="authorName" type="xs:string" minOccurs="1" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="description" type="xs:string" minOccurs="0"/> <xs:element name="promotion"> <xs:complexType> <xs:choice> <xs:element name="Discount" type="xs:string" /> <xs:element name="None" type="xs:string"/> </xs:choice> </xs:complexType> </xs:element> <xs:element name="publicationDate" type="xs:date"/> <xs:element name="bookCategory"> <xs:simpleType> <xs:restriction base="xs:NCName"> <xs:enumeration value="magazine" /> <xs:enumeration value="novel" /> <xs:enumeration value="fiction" /> <xs:enumeration value="other" /> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> <xs:attribute name="itemId" type="xs:string" /> </xs:complexType>

<xs:simpleType name="bookCategoryType" > <xs:restriction base="xs:string"> <xs:enumeration value="magazine" /> <xs:enumeration value="novel" /> <xs:enumeration value="fiction" /> <xs:enumeration value="other" /> </xs:restriction> </xs:simpleType>

</xs:schema>

Can you please anyone help me how to solve this issue.

Thanks in advance.