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

Senthil commented on AXIS2-6027:
--------------------------------

Thanks Robert!

Please find the below stacktrace. Since, due to compliance violation, we 
couldnt able to attach WSDL file. Along with that, we have downloaded Axis2 
1.8.0 JARs from Apache Axis2 Portal and modified the classpath.

Thanks again!
{code:java}
 
     [java] Exception in thread "main" java.lang.NoSuchMethodError: 
com.google.common.collect.TreeRangeMap.asDescendingMapOfRanges()Ljava/util/Map;
     [java]     at 
com.google.googlejavaformat.java.ModifierOrderer.applyReplacements(ModifierOrderer.java:163)
     [java]     at 
com.google.googlejavaformat.java.ModifierOrderer.reorderModifiers(ModifierOrderer.java:141)
     [java]     at 
com.google.googlejavaformat.java.Formatter.getFormatReplacements(Formatter.java:234)
     [java]     at 
com.google.googlejavaformat.java.Formatter.formatSource(Formatter.java:216)
     [java]     at 
com.google.googlejavaformat.java.Formatter.formatSource(Formatter.java:202)
     [java]     at 
com.google.googlejavaformat.java.Formatter.formatSource(Formatter.java:191)
     [java]     at 
org.apache.axis2.util.PrettyPrinter.prettify(PrettyPrinter.java:46)
     [java]     at 
org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettifyFile(JavaPrettyPrinterExtension.java:43)
     [java]     at 
org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.prettify(AbstractPrettyPrinterExtension.java:54)
     [java]     at 
org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.engage(AbstractPrettyPrinterExtension.java:37)
     [java]     at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:157)
     [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:54)
     [java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
 

{code}

> Axis2 1.8.0 - WSDL2Java Stub class generation issue
> ---------------------------------------------------
>
>                 Key: AXIS2-6027
>                 URL: https://issues.apache.org/jira/browse/AXIS2-6027
>             Project: Axis2
>          Issue Type: Bug
>            Reporter: Senthil
>            Priority: Blocker
>
> Hi Team, 
> While migrating from Axis 1.4 to Axis2 1.8.0 JAR version to generate stub 
> classes for the web service, we are getting java.lang.nosuchmethoderror: 
> com.google.common.collect.TreeRangeMap.asDescendingMapOfRanges()Ljava/util/Map;
>  exception when running the below ant wsdl2java target.
> Could you please advise to resolve the above build issue and generate stub 
> classes?
> Please need your immediate support.
> Thanks
> <target name="wsdl2java">
>         <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" 
> failonerror="true">
>             <jvmarg value="...." />
>             <arg value="-p" />
>             <arg value="..." />
>             <arg value="-o" />
>             <arg file="..." />
>             <arg value="-uri" />
>             <arg line="http:server1:1000/ws/test?WSDL" />
>             <classpath>
>                 <path refid=".." />
>             </classpath>
>         </java>
>     </target>
>     
> Since to avoid compliance violation, i have anonymous the argument value as 
> "..."



--
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