Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-15089

Standalone JMS client is failing with: java.lang.ClassNotFoundException: javax.json.JsonValue with jboss-client.jar

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Blocker
    • 7.2.0.Beta
    • 7.2.0.CD13
    • JMS
    • None
    • Hide

      Add javax-json-api to classpath:

              <dependency>
                  <groupId>javax.json</groupId>
                  <artifactId>javax.json-api</artifactId>
                  <version>1.1.2</version>
              </dependency>
      
      Show
      Add javax-json-api to classpath: <dependency> <groupId>javax.json</groupId> <artifactId>javax.json-api</artifactId> <version>1.1.2</version> </dependency>
    • Hide
      git clone git://git.app.eng.bos.redhat.com/jbossqe/eap-tests-hornetq.git
      groovy -DEAP_ZIP_URL=https://eap-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/EAP7/view/EAP7-JMS/view/early-testing/view/tooling/job/early-testing-messaging-prepare/535/artifact/jboss-eap.zip eap-tests-hornetq/scripts/PrepareServers7.groovy 
      
      git clone git@gitlab.mw.lab.eng.bos.redhat.com:mstyk/messaging-client-testsuite.git
      cd messaging-client-testsuite
       mvn clean install -Pjboss-client-jar -Deap7.org.jboss.qa.hornetq.apps.clients.version=7.1530903654-wildfly-master-SNAPSHOT -Djboss.home=../server1/jboss-eap
      
      Show
      git clone git: //git.app.eng.bos.redhat.com/jbossqe/eap-tests-hornetq.git groovy -DEAP_ZIP_URL=https: //eap-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/EAP7/view/EAP7-JMS/view/early-testing/view/tooling/job/early-testing-messaging-prepare/535/artifact/jboss-eap.zip eap-tests-hornetq/scripts/PrepareServers7.groovy git clone git@gitlab.mw.lab.eng.bos.redhat.com:mstyk/messaging-client-testsuite.git cd messaging-client-testsuite mvn clean install -Pjboss-client-jar -Deap7.org.jboss.qa.hornetq.apps.clients.version=7.1530903654-wildfly-master-SNAPSHOT -Djboss.home=../server1/jboss-eap

    Description

      If standalone JMS client is using only jboss-client.jar on classpath then during look up of connection factory fails with:

      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:44)
              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:411)
              at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:209)
              at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:202)
              at org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory.<init>(ActiveMQJMSConnectionFactory.java:34)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
              at org.jboss.marshalling.reflect.SerializableClass.invokeConstructor(SerializableClass.java:340)
              at org.jboss.marshalling.reflect.SerializableClass.callNoArgConstructor(SerializableClass.java:292)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1408)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:205)
              at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
              at org.wildfly.naming.client.remote.RemoteClientTransport.lookup(RemoteClientTransport.java:243)
              at org.wildfly.naming.client.remote.RemoteContext.lambda$lookupNative$0(RemoteContext.java:190)
              at org.wildfly.naming.client.NamingProvider.performExceptionAction(NamingProvider.java:222)
              at org.wildfly.naming.client.remote.RemoteContext.performWithRetry(RemoteContext.java:100)
              at org.wildfly.naming.client.remote.RemoteContext.lookupNative(RemoteContext.java:188)
              at org.wildfly.naming.client.AbstractFederatingContext.lookup(AbstractFederatingContext.java:74)
              at org.wildfly.naming.client.store.RelativeFederatingContext.lookupNative(RelativeFederatingContext.java:58)
              at org.wildfly.naming.client.AbstractFederatingContext.lookup(AbstractFederatingContext.java:74)
              at org.wildfly.naming.client.AbstractFederatingContext.lookup(AbstractFederatingContext.java:60)
              at org.wildfly.naming.client.AbstractFederatingContext.lookup(AbstractFederatingContext.java:66)
              at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:144)
              at javax.naming.InitialContext.lookup(InitialContext.java:417)
              at org.jboss.qa.artemis.test.client.ProducerJms11.sendMessages(ProducerJms11.java:27)
              at org.jboss.qa.artemis.test.client.Producer.run(Producer.java:35)
              at org.jboss.qa.artemis.test.client.Producer.sendAllSync(Producer.java:26)
      

      Attachments

        Issue Links

          Activity

            People

              jmesnil1@redhat.com Jeff Mesnil
              mstyk_jira Martin Styk (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: