Axis and Java 6
January 17, 2008 . Posted in java.
Today I had to rebuild an application that had previously been built successfully using Ant 1.7.0, JDK 1.5.0 and Axis 1.4 but when building it I got this error:
org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name : my.package.was.here.Class
Hint: you may have mapped two namespaces with elements of the same name to the same package name.
The problem is that I have installed Java 6 in the mean time and now if a file already exists it is no longer overwritten, instead the build process fails…
So by reverting to Java 5 I managed to build.
Instead of the error now I just get: Class.java already exists, WSDL2Java will not overwrite it.
Cheers…

Paco on March 24, 2011 - 2:08 am
Another option, is to replace saaj library of jdk1.6 to axis-saaj.
http://programargoogleando.blogspot.com/2011/03/axis-14-y-java-16.html