Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Ant Tools 'java.lang.NoSuchMethodError

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am seeing this Ant Build Error. Any help here ?

[axis-java2wsdl] java.lang.NoSuchMethodError: org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton()Lorg/apache/axis/encoding/TypeMapping;
[axis-java2wsdl] at
[axis-java2wsdl] at
[axis-java2wsdl] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[axis-java2wsdl] at sun.reflect.DelegatingMethodAccessorImpl.invoke(
[axis-java2wsdl] at java.lang.reflect.Method.invoke(
[axis-java2wsdl] at
[axis-java2wsdl] at
[axis-java2wsdl] at
[axis-java2wsdl] at
[axis-java2wsdl] at
[axis-java2wsdl] at
Posts: 5856
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like Ant is picking up the wrong JAR file for org.apache.axis.encoding.DefaultTypeMappingImpl. Dis you set CLASSPATH? If so, unset it and try again. Or do you have a copy of Axis in an endorsed directory? If so, remove it.

If neither of these help, set the ANT_OPTS env var to -verbose:class. Example:


Then run Ant again. This option causes the JVM to list each class loaded and the location of the JAR the class came from. Look at where the org.apache.axis.encoding.DefaultTypeMappingImpl class was loaded, that should give a a clue as to what is going on.
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic