Hi Dan, It looks like you've got mismatched jar versions. You should update to the Axis2 1.1.1 release and the JiBX jars included in that release (or the more recent JiBX 1.1.3 release jars - they should be compatible with Axis2 1.1.1). Axis2 1.0.1 was pretty bad in any case, so going to Axis2 1.1.1 should be much better all around.
- 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 Dan Tenenbaum wrote: > Hi, > > I am trying to run Axis2's WSDL2Java and telling it to create jibx bindings. > > I have all the axis jars and also the following jibx jars in my classpath: > axis2-jibx-1.0.jar > jibx-bind-1.0.1.jar > jibx-run-1.0.1.jar > jibx-extras-1.0.1.jar > > This is the ant task I am running: > <target name="WSDL2Java"> > <java classname="org.apache.axis2.wsdl.WSDL2Java" > classpathref="build.classpath"> > <arg line="-uri my.wsdl -p my.package.generated -d jibx -s > -ss -sd -ssi -uw -S my/src/dir -R my/resource/dir"/> > </java> > </target> > > I am getting the following exception. Anyone know why? > > > org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: java.lang.NoSuchMethodException: > org.apache.axis2.jibx.CodeGenerationUtility.<init>(org.apache.axis2.wsdl.codegen.CodeGenConfiguration) > at > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180) > at org.apache.tools.ant.taskdefs.Java.run(Java.java:710) > at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) > at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > at org.apache.tools.ant.Task.perform(Task.java:364) > at org.apache.tools.ant.Target.execute(Target.java:341) > at org.apache.tools.ant.Target.performTasks(Target.java:369) > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > at org.apache.tools.ant.Project.executeTarget(Project.java:1185) > at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) > at org.apache.tools.ant.Project.executeTargets(Project.java:1068) > at org.apache.tools.ant.Main.runBuild(Main.java:668) > at org.apache.tools.ant.Main.startAnt(Main.java:187) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > > Thanks > Dan > > ------------------------------------------------------------------------- > 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 > > ------------------------------------------------------------------------- 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