activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rossi1337 <...@git.apache.org>
Subject [GitHub] activemq-artemis issue #1272: ARTEMIS-1129: Client Dependencies
Date Wed, 17 May 2017 12:16:40 GMT
Github user Rossi1337 commented on the issue:

    https://github.com/apache/activemq-artemis/pull/1272
  
    Hi,
    I just give it a try. One first thing. In the shaded artemis-jms-client-all jar there
is in the **META-INF** folder a services entry for the Json provider **javax.json.spi.JsonProvider**
    
    Inside of this file the provider implementation is set to **org.apache.johnzon.core.JsonProviderImpl**
    but I think it should point now to org.apache.activemq.artemis.shaded.org.apache.johnzon.core.JsonProviderImpl
    
    There is a resource transformer that may solve this
    [https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html#ServicesResourceTransformer](https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html#ServicesResourceTransformer)
    
    Additionally when I try to run my test application with the shaded JMS client I get an
exception 
    
    Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: Cannot
connect to server(s). Tried with all available servers.]
    	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:787)
    	at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:755)
    	... 40 more
    
    Maybe the session factories are internally invoked via reflection? The stack trace does
not really show what is going wrong internally but maybe this is only a configuration issue
on my side. Need to double check this.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message