Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
1.8.0
-
None
-
None
-
Windows 12
ant 1.10.6
Description
Hi there,
We are upgrading our version being used in our product from 1.6.2 to 1.8.0 and are hitting the error below when running some of our regressions tests on web services code generation.
On examination of the source code for the org.apache.axis2.util.PrettyPrinter class (axis2-1.8.0\modules\codegen\src\org\apache\axis2\util\PrettyPrinter.java), there is an import reference to the missing class.
import com.google.googlejavaformat.java.Formatter;
Is there a new JAR file that we need to reference in our classpath to address this issue?
Thanks,
Fergal.
===================================
[JavaFromWSDL] Exception in thread "main" java.lang.NoClassDefFoundError: com/google/googlejavaformat/java/Formatter
[JavaFromWSDL] at org.apache.axis2.util.PrettyPrinter.prettify(PrettyPrinter.java:46)
[JavaFromWSDL] at org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettifyFile(JavaPrettyPrinterExtension.java:43)
[JavaFromWSDL] at org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.prettify(AbstractPrettyPrinterExtension.java:54)
[JavaFromWSDL] at org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.engage(AbstractPrettyPrinterExtension.java:37)
[JavaFromWSDL] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:157)
[JavaFromWSDL] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:54)
[JavaFromWSDL] Caused by: java.lang.ClassNotFoundException: com.google.googlejavaformat.java.Formatter
[JavaFromWSDL] at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
[JavaFromWSDL] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[JavaFromWSDL] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
[JavaFromWSDL] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[JavaFromWSDL] ... 6 more