The reason for the jsr173_api.jar reference is because xpp3.jar wasn't found. JiBX uses xpp3.jar if it's present on the classpath, but otherwise looks for a StAX parser.
- 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 [EMAIL PROTECTED] wrote: > > 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 <[email protected]> > > > > To > "JiBX users" <[email protected]> > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ------------------------------------------------------------------------ > > > This communication is for informational purposes only. It is not > intended as an offer or solicitation for the purchase or sale of > any financial instrument or as an official confirmation of any > transaction. All market prices, data and other information are not > warranted as to completeness or accuracy and are subject to change > without notice. Any comments or statements made herein do not > necessarily reflect those of JPMorgan Chase & Co., its subsidiaries > and affiliates. > > This transmission may contain information that is privileged, > confidential, legally privileged, and/or exempt from disclosure > under applicable law. If you are not the intended recipient, you > are hereby notified that any disclosure, copying, distribution, or > use of the information contained herein (including any reliance > thereon) is STRICTLY PROHIBITED. Although this transmission and any > attachments are believed to be free of any virus or other defect > that might affect any computer system into which it is received and > opened, it is the responsibility of the recipient to ensure that it > is virus free and no responsibility is accepted by JPMorgan Chase & > Co., its subsidiaries and affiliates, as applicable, for any loss > or damage arising in any way from its use. If you received this > transmission in error, please immediately contact the sender and > destroy the material in its entirety, whether in electronic or hard > copy format. Thank you. > Please refer to http://www.jpmorgan.com/pages/terms for important > disclosures under the Terms of Use. > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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
