Do all of these JAR files need to be in the same directory with each other? I remember having an issue with JiBX bind earlier similar to this and I solved it by putting all of the JARs in the same directory.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Varghese C V Sent: Wednesday, March 14, 2007 12:48 PM To: JiBX users Subject: Re: [jibx-users] Ant task Binding Error I think I have seen this error before. You have to specify at the very least the paths to jibx bind jar, run jar & xpp jar. It looks like the xpp jar is not found. The bind jar is not used at runtime and hence need not be part of the application classpath. The bind jars manifest file specifies the following dependencies. Class-Path: bcel.jar jibx-run.jar xpp3.jar stax-api.jar wstx-asl.jar Here is an example <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask"> <classpath> <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> regards Varghese Dees, Ian (GE Healthcare) wrote: > 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=DEVDE V > _______________________________________________ > 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=DEVDE V _______________________________________________ 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
