[ 
https://issues.apache.org/jira/browse/ARTEMIS-3546?focusedWorklogId=682977&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-682977
 ]

ASF GitHub Bot logged work on ARTEMIS-3546:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Nov/21 22:40
            Start Date: 17/Nov/21 22:40
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic edited a comment on pull request #3846:
URL: https://github.com/apache/activemq-artemis/pull/3846#issuecomment-972177555


   @jbonofre / @gtully the only thing missing here now is the feature failure.
   
   At the moment the module is commented out on the main pom so just I could 
run some tests.. but if you enable it, you will get failures:
   
   
   ```
   [ERROR]      Feature resolution failed for [artemis-openwire/2.20.0.SNAPSHOT]
   [ERROR] Message: Unable to resolve root: missing requirement [root] 
osgi.identity; osgi.identity=artemis-openwire; type=karaf.feature; 
version=2.20.0.SNAPSHOT; 
filter:="(&(osgi.identity=artemis-openwire)(type=karaf.feature)(version>=2.20.0.SNAPSHOT))"
 [caused by: Unable to resolve artemis-openwire/2.20.0.SNAPSHOT: missing 
requirement [artemis-openwire/2.20.0.SNAPSHOT] osgi.identity; 
osgi.identity=org.apache.activemq.artemis-openwire-protocol; type=osgi.bundle; 
version="[2.20.0.SNAPSHOT,2.20.0.SNAPSHOT]"; resolution:=mandatory [caused by: 
Unable to resolve 
org.apache.activemq.artemis-openwire-protocol/2.20.0.SNAPSHOT: missing 
requirement [org.apache.activemq.artemis-openwire-protocol/2.20.0.SNAPSHOT] 
osgi.wiring.package; 
filter:="(osgi.wiring.package=org.apache.activemq.artemis.api.core.client)" 
[caused by: Unable to resolve 
org.apache.activemq.artemis-server-osgi/2.20.0.SNAPSHOT: missing requirement 
[org.apache.activemq.artemis-server-osgi/2.20.0.SNAPSHOT] osgi.wiring.package; 
filter:="(osgi.wiring.package=org.glassfish.json)"]]]
   [ERROR] Repositories: {
   [ERROR]      
file:/Users/clebertsuconic/work/apache/activemq-artemis/artemis-features/target/classes/features.xml
   [ERROR]      mvn:org.apache.aries.jpa/jpa-features/2.7.3/xml/features
   [ERROR]      mvn:org.apache.karaf.features/enterprise/4.3.3/xml/features
   
   ```
   
   
   I don't have a pointer to even where to start looking and how to debug this? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 682977)
    Time Spent: 4.5h  (was: 4h 20m)

> ClassNotFoundException: javax.json.JsonValue when creating an 
> ActiveMQConnectionFactory using artemis-jakarta-client-all
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3546
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3546
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: JMS
>    Affects Versions: 2.19.0
>            Reporter: Andy Wilkinson
>            Assignee: Clebert Suconic
>            Priority: Major
>             Fix For: 2.20.0
>
>          Time Spent: 4.5h
>  Remaining Estimate: 0h
>
> As expected, {{artemis-jakarta-client-all}} contains the various 
> {{jakarta.json.\*}} classes from Jakarta EE 9. However, its bytecode still 
> references the {{javax.json.\*}} classes from EE 8. This results in a failure 
> at runtime when creating an {{ActiveMQConnectionFactory}}:
> {noformat}
> Exception in thread "main" java.lang.IllegalStateException: 
> java.lang.NoClassDefFoundError: javax/json/JsonValue
>       at 
> org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:225)
>       at 
> org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:218)
>       at example.Main.main(Main.java:8)
> Caused by: java.lang.NoClassDefFoundError: javax/json/JsonValue
>       at 
> org.apache.activemq.artemis.uri.schema.connector.TCPTransportConfigurationSchema.getTransportConfigurations(TCPTransportConfigurationSchema.java:68)
>       at 
> org.apache.activemq.artemis.uri.schema.serverLocator.TCPServerLocatorSchema.internalNewObject(TCPServerLocatorSchema.java:42)
>       at 
> org.apache.activemq.artemis.uri.schema.serverLocator.TCPServerLocatorSchema.internalNewObject(TCPServerLocatorSchema.java:33)
>       at 
> org.apache.activemq.artemis.utils.uri.URISchema.newObject(URISchema.java:86)
>       at 
> org.apache.activemq.artemis.utils.uri.URISchema.newObject(URISchema.java:30)
>       at 
> org.apache.activemq.artemis.utils.uri.URIFactory.newObject(URIFactory.java:59)
>       at 
> org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.newLocator(ServerLocatorImpl.java:333)
>       at 
> org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.setBrokerURL(ActiveMQConnectionFactory.java:243)
>       at 
> org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:223)
>       ... 2 more
> Caused by: java.lang.ClassNotFoundException: javax.json.JsonValue
>       at 
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
>       at 
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
>       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
>       ... 11 more
> {noformat}
> With artemis-jakarta-client-all-2.19.0.jar on the classpath, the failure 
> above was produced by the following main class:
> {code:java}
> package example;
> import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
> public class Main {
>       
>     public static void main(String[] args) {
>         new ActiveMQConnectionFactory();
>     }
> }
> {code}
> The shaded Johnzon code also has references to {{javax.json.\*}} classes.
> A similar problem exists with {{artemis-jakarta-client}} when upgrading its 
> transitive dependencies to their Jakarta EE 9 versions.



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

Reply via email to