Thanks! I was able to figure that out eventually.
I'm not stuck with how to overcome the following:
I have a minOccurs="0" maxOccurs="1" in my "xsd" file and the "xml" file does not contain tags for missing elements.
I get a JiBXException saying it expects the element tag for the missing one.
How do I overcome this?
Thanks in advance,
Frank
Hello Frank,
I had similar issue including more jars in the bind taskdef solved the problem that I was facing.
Replace the directory path…
<taskdef name="bind" classname= "org.jibx.binding.ant.CompileTask" >
<classpath>
<pathelement location="${jibx-home}/lib/bcel.jar" />
<pathelement location="${jibx-home}/lib /jibx-bind.jar" />
<pathelement location="${jibx-home}/lib /jibx-run.jar" />
<pathelement location="${jibx-home}/lib /xpp3.jar" />
</classpath>
</taskdef>
Hope that helps.
Sunil.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Frank Castellucci
Sent: Wednesday, September 20, 2006 11:37 PM
To: [email protected]
Subject: [jibx-users] Help with JIBX 1.1 and Eclipse build
I'd appreciate any help on this.
Setup:
Eclipse 3.2
MyEclipse 5.0.1
JiBX 1.1
I've imported all the jars from the distribution, and the "starter" xml files just to get my feet wet.
I can't seem to get past the "taskdef" step in the build.xml. It fails with a:
[echo] Running JiBX binding compiler
BUILD FAILED
C:\Documents and Settings\castellf\workspace\Wine-Dine\src\build.xml:90: taskdef A class needed by class org.jibx.binding.ant.CompileTask cannot be found: org/jibx/runtime/JiBXException
The build.xml is in Project->src (folder structure). Here is the relevant part of build.xml:
<!-- bind as a separate step -->
<target name="bind" depends="check-binding">
<echo message="Running JiBX binding compiler"/>
<taskdef name="bind" classname="org.jibx.binding.ant.CompileTask"
classpath="${jibx-home}/lib/jibx- bind.jar"/>
<bind verbose="true" binding="${basedir}/binding.xml">
<classpath>
<pathelement path="classes"/>
<pathelement location="${jibx-home}/lib/jibx- run.jar"/>
</classpath>
</bind>
</target>
Thanks,
Frank
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
