You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2025/03/30 08:51:00 UTC

[jira] [Assigned] (AMQ-9686) OpenWire Genertor is broken due to Java version and maven-antrun-plugin version upgrade

     [ https://issues.apache.org/jira/browse/AMQ-9686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned AMQ-9686:
-----------------------------------------

    Assignee: Jean-Baptiste Onofré

> 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: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact