I think you don't have  jsr173_api.jar on your classpath.
Why and how its relevant to jibx binding I don't have a clue.I am just 
going by the NoClassDefFoundError that you have stated.

Regards,
Chetan





"Dees, Ian (GE Healthcare)" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
13/03/2007 19:46
Please respond to
JiBX users <jibx-users@lists.sourceforge.net>


To
"JiBX users" <jibx-users@lists.sourceforge.net>
cc

Subject
[jibx-users] Ant task Binding Error






Hi list,
 
I have the following chunk of build file in my project's build file:

<!-- JiBX binding compiler task definition and target. -->
<taskdef name="bind" classname="org.jibx.binding.ant.CompileTask">
   <classpath refid="complete.classpath" />
</taskdef>
 
<target name="jibx-bind" description="Do the JIBX bind of compiled
classes">
   <echo>Binding classes with binding file ${binding.xml}</echo>
 
   <bind verbose="false" load="true" binding="${binding.xml}">
     <classpathset dir="classes"/>
   </bind>
</target>

When I run "ant jibx-bind", I get the following JiBX binding exception:

     [echo] Binding classes with binding file D:\Documents and
Settings\...
     [bind] Error running binding compiler
     [bind] java.lang.NoClassDefFoundError:
javax/xml/stream/FactoryConfigurationError
     [bind]     at java.lang.Class.getDeclaredMethods0(Native Method)
     [bind]     at
java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
     [bind]     at java.lang.Class.getMethod0(Class.java:2611)
     [bind]     at java.lang.Class.getMethod(Class.java:1579)
     [bind]     at
org.jibx.runtime.impl.UnmarshallingContext.createReaderFactory(Unknown
Source)
     [bind]     at
org.jibx.runtime.impl.UnmarshallingContext.<clinit>(Unknown Source)
     [bind]     at
org.jibx.binding.model.JiBX_bindingFactory.createUnmarshallingContext()
     [bind]     at
org.jibx.binding.model.BindingElement.readBinding(BindingElement.java:57
8)
     [bind]     at
org.jibx.binding.model.BindingElement.validateBinding(BindingElement.jav
a:600)
     [bind]     at
org.jibx.binding.Utility.validateBinding(Utility.java:228)
     [bind]     at
org.jibx.binding.Utility.loadBinding(Utility.java:269)
     [bind]     at
org.jibx.binding.Utility.loadFileBinding(Utility.java:413)
     [bind]     at org.jibx.binding.Compile.compile(Compile.java:296)
     [bind]     at
org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
     [bind]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [bind]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [bind]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
     [bind]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
     [bind]     at java.lang.reflect.Method.invoke(Method.java:585)
     [bind]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
04)
     [bind]     at org.apache.tools.ant.Task.perform(Task.java:375)
     [bind]     at org.apache.tools.ant.Target.execute(Target.java:356)
     [bind]     at
org.apache.tools.ant.Target.performTasks(Target.java:384)
     [bind]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1268)
     [bind]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1237)
     [bind]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:40)
     [bind]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1120)
     [bind]     at org.apache.tools.ant.Main.runBuild(Main.java:697)
     [bind]     at org.apache.tools.ant.Main.startAnt(Main.java:198)
     [bind]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:299)
     [bind]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:105

Any ideas on what I'm missing? Thanks!

-Ian

-------------------------------------------------------------------------
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
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users



<HTML><BODY><P><hr size=1></P><br>
<P><br>
This communication is for informational purposes only. It is not<br>
intended as an offer or solicitation for the purchase or sale of<br>
any financial instrument or as an official confirmation of any<br>
transaction. All market prices, data and other information are not<br>
warranted as to completeness or accuracy and are subject to change<br>
without notice. Any comments or statements made herein do not<br>
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries<br>
and affiliates.<br>
<br>
This transmission may contain information that is privileged,<br>
confidential, legally privileged, and/or exempt from disclosure<br>
under applicable law. If you are not the intended recipient, you<br>
are hereby notified that any disclosure, copying, distribution, or<br>
use of the information contained herein (including any reliance<br>
thereon) is STRICTLY PROHIBITED. Although this transmission and any<br>
attachments are believed to be free of any virus or other defect<br>
that might affect any computer system into which it is received and<br>
opened, it is the responsibility of the recipient to ensure that it<br>
is virus free and no responsibility is accepted by JPMorgan Chase &<br>
Co., its subsidiaries and affiliates, as applicable, for any loss<br>
or damage arising in any way from its use. If you received this<br>
transmission in error, please immediately contact the sender and<br>
destroy the material in its entirety, whether in electronic or hard<br>
copy format. Thank you.<br>
Please refer to http://www.jpmorgan.com/pages/terms for important<br>
disclosures under the Terms of Use.<br>
</P></BODY></HTML>
-------------------------------------------------------------------------
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
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to