Thanks for the reply Dennis. If you could have it running with latest jibX runtime, that will be great.
So when you say its badly outdated, what can I expect out of the tool? More specifically, will I be able to generate code which has : - Nested Javabeans , or a <complex type> containing another <complex type> in its sequence? - Array types ? ( one of the fields of a complex type being an array type ) Thanks Yuvraj -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Thursday, May 17, 2007 6:07 PM To: JiBX users Subject: Re: [jibx-users] Xsd2Jibx doesnt run Hi Yuvraj, Xsd2Jibx is badly outdated and no longer maintained, but can still be used. You'll need to download an old version of JiBX (try jibx-1.0RC1, since that's from the same timeframe as the last Xsd2Jibx release). I'll at least recompile the bindings and post an updated Xsd2Jibx that will work with the current JiBX code when I do the JiBX 1.1.5 release. I've been reluctant to do this because it makes it look like there's still activity with Xsd2Jibx, but at least that way people will be able to run the code. Sorry, - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Waswani, Yuvraj wrote: > Tried doing that...its not able to compile.. > > C:\java\JibX1.1.3\Xsd2jibx-beta2a\xsd2jibx\lib>java -cp > "C:\java\JibX1.1.3\jibx\lib\jibx-bind.jar;C:\java\JibX1.1.3\Xsd2jibx-b > et > a2a\xsd2jibx\lib\xsd2jibx. > jar" org.jibx.binding.Compile xsd.jibx.xml Error running binding > compiler > > *** Error during code generation for file 'xsd.jibx.xml' - please > enter a bug report for this error in Jira if the problem is not listed > as fixed on the o nline status page *** > > org.jibx.runtime.JiBXException: One or more <mapping> elements must be > defined in <binding> > at org.jibx.binding.Utility.loadBinding(Utility.java:322) > at org.jibx.binding.Utility.loadFileBinding(Utility.java:413) > at org.jibx.binding.Compile.compile(Compile.java:296) > at org.jibx.binding.Compile.main(Compile.java:385) > > > > So does that mean Xsd2Jubx as of today is not usable at all? Is there > a jibx runtime version which could run the Xsd2jibx ? All I am trying > to do is generate Java code for a simple sample "purchase-order" > (helloworld kind) xsd ! > > <xs:schema > >> xmlns:xs="http://www.w3.org/2001/XMLSchema" >> xmlns:po="http://citi.com/gwm/fpt/pilot/javaobj/xmlbeans" >> targetNamespace="http://citi.com/gwm/fpt/pilot/javaobj/xmlbeans" >> elementFormDefault="qualified"> >> >> <xs:element name="purchase-order"> >> <xs:complexType> >> <xs:sequence> >> <xs:element name="customer" type="po:customer"/> >> <xs:element name="date" type="xs:dateTime"/> >> <xs:element name="line-item" type="xs:string" /> >> <xs:element name="shipper" type="xs:string"/> >> </xs:sequence> >> </xs:complexType> >> </xs:element> >> >> <xs:complexType name="customer"> >> <xs:sequence> >> <xs:element name="name" type="xs:string"/> >> <xs:element name="address" type="xs:string"/> >> </xs:sequence> >> <xs:attribute name="age" type="xs:int"/> >> </xs:complexType> >> >> >> </xs:schema> >> > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Serkan > Camurcuoglu > Sent: Wednesday, May 16, 2007 6:52 PM > To: JiBX users > Subject: Re: [jibx-users] Xsd2Jibx doesnt run > > I guess xsd2jibx itself uses jibx to convert an xml schema document to > a java object. But it cannot unmarshall the document because the jibx > runtime that you are using (1.1.3) is a later version than the one > which was used while building xsd2jibx beta2a version. So, first you > have to run the jibx binding compiler on the > ./src/main/org/jibx/xsd2jibx/xsd.jibx.xml (in the xsd2jibx > installation/unzip directory) binding file and you should enhance > those classes again before using xsd2jibx. Then put these classes to > the beginning of your classpath and try executing xsd2jibx again.. > > hope this helps.. > > > Waswani, Yuvraj wrote: > >> Hi, >> >> I downloaded the 1.1.3 (latest) version of jibx and the Xsd2jibx >> (beta2a >> version) and simply tried to run this command on a helloworld kind of >> schema (schema attached) ...it doesn't seem to run. Please find below >> the trace. >> >> Please suggest... >> >> java org.jibx.xsd2jibx.Generate c:\easypo.xsd >> >> Where easypo.xsd = >> >> <xs:schema >> xmlns:xs="http://www.w3.org/2001/XMLSchema" >> xmlns:po="http://citi.com/gwm/fpt/pilot/javaobj/xmlbeans" >> targetNamespace="http://citi.com/gwm/fpt/pilot/javaobj/xmlbeans" >> elementFormDefault="qualified"> >> >> <xs:element name="purchase-order"> >> <xs:complexType> >> <xs:sequence> >> <xs:element name="customer" type="po:customer"/> >> <xs:element name="date" type="xs:dateTime"/> >> <xs:element name="line-item" type="xs:string" /> >> <xs:element name="shipper" type="xs:string"/> >> </xs:sequence> >> </xs:complexType> >> </xs:element> >> >> <xs:complexType name="customer"> >> <xs:sequence> >> <xs:element name="name" type="xs:string"/> >> <xs:element name="address" type="xs:string"/> >> </xs:sequence> >> <xs:attribute name="age" type="xs:int"/> >> </xs:complexType> >> >> >> </xs:schema> >> >> >> >> Exception trace :-- >> >> org.jibx.xsd2jibx.GeneratorException: unable to unmarshall Root cause: >> org.jibx.runtime.JiBXException: Binding information for class >> org.jibx.xsd2jibx.XsdSchema must be recompiled with current binding >> compiler (compiled with jibx-rc1, runtime is jibx_1_1_3) >> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:380) >> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:254) >> at org.jibx.xsd2jibx.Generator.execute(Generator.java:170) >> at org.jibx.xsd2jibx.Generate.generate(Generate.java:131) >> at org.jibx.xsd2jibx.Generate.main(Generate.java:182) >> >> --------------------------------------------------------------------- >> - >> --- This SF.net email is sponsored by DB2 Express Download DB2 >> Express >> > > >> C - the FREE version of DB2 express and take control of your XML. No >> limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> jibx-users mailing list >> jibx-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jibx-users >> >> > > > ---------------------------------------------------------------------- > -- > - > This SF.net email is sponsored by DB2 Express Download DB2 Express C - > the FREE version of DB2 express and take control of your XML. No limits. > Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by DB2 Express Download DB2 Express > C - the FREE version of DB2 express and take control of your XML. No > limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users