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

Ken Liao commented on AMQ-9686:
-------------------------------

Hey Chris, I can take this on and give it a shot

> OpenWire Genertor is broken due to Java version and maven-antrun-plugin 
> version upgrade
> ---------------------------------------------------------------------------------------
>
>                 Key: AMQ-9686
>                 URL: https://issues.apache.org/jira/browse/AMQ-9686
>             Project: ActiveMQ Classic
>          Issue Type: Bug
>          Components: Transport
>            Reporter: Ken Liao
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> Due to upgrade in maven-antrun-plugin, the <tasks> param is deprecated. It 
> can be replaced with the tag <target>. However, it will fail with this 
> stacktrace
> Caused by: java.lang.NoClassDefFoundError: com/sun/javadoc/Type
>     at org.codehaus.jam.provider.JamServiceFactoryImpl.createSourceBuilder 
> (JamServiceFactoryImpl.java:205)
>     at org.codehaus.jam.provider.JamServiceFactoryImpl.createBuilder 
> (JamServiceFactoryImpl.java:158)
>     at org.codehaus.jam.provider.JamServiceFactoryImpl.createClassLoader 
> (JamServiceFactoryImpl.java:137)
>     at org.codehaus.jam.provider.JamServiceFactoryImpl.createService 
> (JamServiceFactoryImpl.java:78)
>     at org.apache.activemq.openwire.tool.JavaGeneratorTask.execute 
> (JavaGeneratorTask.java:71)
>     at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:299)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:77)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:568)
>     at org.apache.tools.ant.dispatch.DispatchUtils.execute 
> (DispatchUtils.java:99)
>     at org.apache.tools.ant.Task.perform (Task.java:350)
>     at org.apache.tools.ant.Target.execute (Target.java:449)
> Further investigation shows it is removed since Java 9
> https://docs.oracle.com/en/java/javase/11/docs/api/jdk.javadoc/com/sun/javadoc/Type.html
>  and the offending dep is external (codehause.jam coming from annogen)
> To fix it, I think need to move to a new framework for generating the 
> openwire marshal/unmarhsaller 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to