[ http://issues.apache.org/jira/browse/AXIS-1804?page=comments#action_58677 ] Tom Jordahl commented on AXIS-1804: -----------------------------------
The useJAXRPCmapping switch was removed from the WSDL2Java code because it didn't work fully and I didn't have time to fix it. If some thing you are using is referencing that function, you need to change it or update it. > java.lang.NoSuchMethodError when using Wsdl2javaAntTask > ------------------------------------------------------- > > Key: AXIS-1804 > URL: http://issues.apache.org/jira/browse/AXIS-1804 > Project: Axis > Type: Bug > Components: WSDL processing > Versions: current (nightly) > Environment: Win XP, java version 1.4.2_04, Apache Ant 1.6.1 > Reporter: Thomas Hald Frandsen > Priority: Blocker > > Im in the proces of verifying two possible issues with Axis RC2 and want to > run my Ant task against the current nightly drop before submitting something > to Jira. > I have an Ant task that works perfectly well with Axis RC2, but when > executing the target against the nightly build (tried to different drops) I > get an java.lang.NoSuchMethodError. > A possible reason for this could be one or more java classes of a newer > version has not been comitted or packaged in the nightly release. > My Ant target looks like this: > <axis-wsdl2java debug="true" > serverside="true" > skeletonDeploy="true" > deployscope="request" > output="src-gen" > testcase="false" > typeMappingVersion="1.1" > url="./app.wsdl" > verbose="true"> > </axis-wsdl2java> > The error from Ant build: > [axis-wsdl2java] Running Wsdl2javaAntTask with parameters: > [axis-wsdl2java] verbose:true > [axis-wsdl2java] debug:true > [axis-wsdl2java] quiet:false > [axis-wsdl2java] server-side:true > [axis-wsdl2java] skeletonDeploy:true > [axis-wsdl2java] helperGen:false > [axis-wsdl2java] factory:null > [axis-wsdl2java] nsIncludes:[] > [axis-wsdl2java] nsExcludes:[] > [axis-wsdl2java] factoryProps:[] > [axis-wsdl2java] testCase:false > [axis-wsdl2java] noImports:false > [axis-wsdl2java] NStoPkg:{} > [axis-wsdl2java] output:C:\Documents and Settings\<snip> > [axis-wsdl2java] protocolHandlerPkgs: > [axis-wsdl2java] deployScope:request > [axis-wsdl2java] URL:src-gen/app.wsdl > [axis-wsdl2java] all:false > [axis-wsdl2java] typeMappingVersion:1.1 > [axis-wsdl2java] timeout:45000 > [axis-wsdl2java] failOnNetworkErrors:false > [axis-wsdl2java] printStackTraceOnFailure:true > [axis-wsdl2java] namespaceMappingFile:null > [axis-wsdl2java] username:null > [axis-wsdl2java] :passwordnull > [axis-wsdl2java] :noWrappedfalse > [axis-wsdl2java] :jaxrpc11mappingsfalse > [axis-wsdl2java] :implementationClassNamenull > [axis-wsdl2java] :classpathnull > [axis-wsdl2java] http.proxyHost=null > [axis-wsdl2java] http.proxyPort=null > [axis-wsdl2java] http.proxyUser=null > [axis-wsdl2java] http.proxyPassword=null > [axis-wsdl2java] socks.proxyHost=null > [axis-wsdl2java] socks.proxyPort=null > [axis-wsdl2java] java.lang.NoSuchMethodError: > org.apache.axis.wsdl.toJava.Emitter.setUseJaxRPC11Mappings(Z)V > [axis-wsdl2java] at > org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask.execute(Wsdl2javaAntTask.java:236) > [axis-wsdl2java] at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) > [axis-wsdl2java] at org.apache.tools.ant.Task.perform(Task.java:364) > [axis-wsdl2java] at > org.apache.tools.ant.Target.execute(Target.java:301) > [axis-wsdl2java] at > org.apache.tools.ant.Target.performTasks(Target.java:328) > [axis-wsdl2java] at > org.apache.tools.ant.Project.executeTarget(Project.java:1215) > [axis-wsdl2java] at > org.apache.tools.ant.Project.executeTargets(Project.java:1063) > [axis-wsdl2java] at org.apache.tools.ant.Main.runBuild(Main.java:632) > [axis-wsdl2java] at org.apache.tools.ant.Main.startAnt(Main.java:183) > [axis-wsdl2java] at > org.apache.tools.ant.launch.Launcher.run(Launcher.java:197) > [axis-wsdl2java] at > org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) > BUILD FAILED > C:\Documents and Settings\<snip>\build.xml:331: WSDL processing error for > src-gen/app.wsdl : > org.apache.axis.wsdl.toJava.Emitter.setUseJaxRPC11Mappings(Z)V > Total time: 13 seconds > Hope you can fix this. > Best regards. > Thomas -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
