[ 
https://issues.apache.org/jira/browse/AXIS2-6019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17469855#comment-17469855
 ] 

Fergal Gavin commented on AXIS2-6019:
-------------------------------------

Hi [~robertlazarski] ,

Thanks for the prompt reply, much appreciated. I will make that change and 
retest.

One follow up query is around new and defunct JARs between the two versions of 
Axis I am interested in (updating from 1.6.2 to 1.8.0).

The "google-java-format-1.7" JAR file is obviously one such JAR (not present 
and not required in Axis 1.6.2 but is present and is required in Axis 1.8.0).

Is there a release note or other documentation where a log of dependent JARs 
for Axis 2 is kept (JAR files being removed and added for the complete Axis 2 
deliverable as it progresses through the versions)?

Thanks,

Fergal.

> NoClassDefFoundError on com/google/googlejavaformat/java/Formatter when 
> generating code using Axis2 1.8.0
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-6019
>                 URL: https://issues.apache.org/jira/browse/AXIS2-6019
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.8.0
>         Environment: Windows 12
> ant 1.10.6
>            Reporter: Fergal Gavin
>            Priority: Major
>
> 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
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to