0 Replies Latest reply on Feb 14, 2018 7:24 AM by bouka

    AS 7.1 standalone - Naming exception for messaging queue

    bouka

      Hi Guys !

       

      I have following output when I start the server:

       

      12:56:34,618 INFO  [org.jboss.modules] (main) JBoss Modules version 1.6.0.Final-redhat-1

      12:56:34,946 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1-redhat-1

      12:56:35,055 INFO  [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: JBoss EAP 7.1.0.GA (WildFly Core 3.0.10.Final-redhat-1) démarre

      12:56:36,743 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: L'attribut « security-realm » dans les ressources à l'adresse « /core-service=management/management-interface=http-interface » est désapprouvé et peut être supprimé dans la prochaine version. Pour en savoir plus sur la désapprobation, consulter la description de l'attribut dans la sortie de l'opération  read-resource-description.

      12:56:36,762 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 4) WFLYCTL0028: L'attribut « security-realm » dans les ressources à l'adresse « /subsystem=undertow/server=default-server/https-listener=https » est désapprouvé et peut être supprimé dans la prochaine version. Pour en savoir plus sur la désapprobation, consulter la description de l'attribut dans la sortie de l'opération  read-resource-description.

      12:56:36,762 INFO  [org.wildfly.security] (ServerService Thread Pool -- 15) ELY00001: WildFly Elytron version 1.1.7.Final-redhat-1

      12:56:36,856 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Création d'un service de gestion http à l'aide de socket-binding (management-http)

      12:56:36,872 INFO  [org.xnio] (MSC service thread 1-4) XNIO version 3.5.4.Final-redhat-1

      12:56:36,872 INFO  [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.5.4.Final-redhat-1

      12:56:36,997 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 45) WFLYCLINF0001: Activation du sous-système Infinispan

      12:56:37,075 INFO  [org.wildfly.iiop.openjdk] (ServerService Thread Pool -- 46) WFLYIIOP0001: Activation du sous-système IIOP

      12:56:37,090 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 64) WFLYTX0013: L'attribut node-identifier sur /subsystem=transactions est défini sur la valeur par défaut, ce qui constitue un risque pour les environnements qui exécutent plusieurs serveurs. Veillez à ce que cet attribut soit bien unique.

      12:56:37,106 INFO  [org.jboss.as.jaxrs] (ServerService Thread Pool -- 47) WFLYRS0016: RESTEasy version 3.0.24.Final-redhat-1

      12:56:37,106 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 66) WFLYWS0002: Activation de l'extension WebServices

      12:56:37,122 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 63) WFLYSEC0002: Activation du sous-système de sécurité

      12:56:37,122 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 56) WFLYNAM0001: Démarrage du sous-système de nommage

      12:56:37,137 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 52) WFLYJSF0007: A activé les implémentations JSF suivantes : [main]

      12:56:37,137 INFO  [org.jboss.as.security] (MSC service thread 1-8) WFLYSEC0001: Version PicketBox actuelle=5.0.2.Final-redhat-1

      12:56:37,184 INFO  [org.jboss.as.connector] (MSC service thread 1-3) WFLYJCA0009: Démarrage du sous-système JCA (WildFly/IronJacamar 1.4.6.Final-redhat-1)

      12:56:37,184 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 39) WFLYJCA0004: Déploiement du pilote compatible JDCB class org.h2.Driver (version 1.4)

      12:56:37,184 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0003: Démarrage 1.4.18.Final-redhat-2 d'Undertow

      12:56:37,200 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Démarrage du service de pilote avec le nom de pilote  = h2

      12:56:37,215 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 39) WFLYJCA0005: Déploiement du pilote non compatible JDCB class com.mysql.jdbc.Driver (version 5.1)

      12:56:37,215 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Démarrage du service de pilote avec le nom de pilote  = mysql

      12:56:37,262 INFO  [org.jboss.as.naming] (MSC service thread 1-5) WFLYNAM0003: Démarrage du service de nommage

      12:56:37,294 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-7) WFLYMAIL0001: Session mail liée [java:jboss/mail/Default]

      12:56:37,403 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 65) WFLYUT0014: Création de gestionnaire de fichier pour le chemin « D:\JBoss\jboss-eap-7.1/welcome-content » avec les options [directory-listing: « false », follow-symlink: « false », case-sensitive: « true », safe-symlink-paths: « [] »]

      12:56:37,622 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 44) WFLYIO001: L'employé « default » a configuré automatiquement les fils principaux 8 avec les fils de tâche 64 selon vos 4 processeurs disponibles

      12:56:37,622 INFO  [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0481: Strict pool slsb-strict-max-pool utilise une taille d'instance max de 64 (par classe), qui est dérivée de la taille du pool de worker de threads.

      12:56:37,622 INFO  [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0482: Strict pool mdb-strict-max-pool utilise une taille d'instance max de 16 (par classe), qui est dérivée du nombre de CPU présents sur cet hôte.

      12:56:37,669 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0012: A démarré le serveur default-server.

      12:56:37,684 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0018: L'hôte default-host démarre

      12:56:37,731 INFO  [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 5.0.5.Final-redhat-1

      12:56:37,794 INFO  [org.jboss.as.patching] (MSC service thread 1-4) WFLYPAT0050: L'ID du correctif cumulatif de JBoss EAP est : base, correctifs simples : none

      12:56:37,809 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0006: Undertow HTTP écouteur default écoutant sur 127.0.0.1:8080

      12:56:38,028 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-8) WFLYMSGAMQ0001: AIO ne se trouvait pas sur cette plateforme, il faudra donc utiliser du Java NIO pur.

      12:56:38,028 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) WFLYDS0013: FileSystemDeploymentService démarré pour le répertoire D:\JBoss\jboss-eap-7.1\standalone\deployments

      12:56:38,137 INFO  [org.jboss.as.ejb3] (MSC service thread 1-7) WFLYEJB0493: Suspension du sous-système EJB terminée

      12:56:38,200 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 68) AMQ221000: live Message Broker is starting with configuration Broker Configuration (clustered=false,journalDirectory=D:\JBoss\jboss-eap-7.1\standalone\data\activemq\journal,bindingsDirectory=D:\JBoss\jboss-eap-7.1\standalone\data\activemq\bindings,largeMessagesDirectory=D:\JBoss\jboss-eap-7.1\standalone\data\activemq\largemessages,pagingDirectory=D:\JBoss\jboss-eap-7.1\standalone\data\activemq\paging)

      12:56:38,231 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 68) AMQ221013: Using NIO Journal

      12:56:38,262 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) WFLYJCA0001: Source de données liée [java:jboss/datasources/ExampleDS]

      12:56:38,325 INFO  [org.wildfly.iiop.openjdk] (MSC service thread 1-1) WFLYIIOP0009: Service CORBA ORB démarré

      12:56:38,340 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 68) AMQ221043: Protocol module found: [artemis-server]. Adding protocol support for: CORE

      12:56:38,340 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 68) AMQ221043: Protocol module found: [artemis-hornetq-protocol]. Adding protocol support for: HORNETQ

      12:56:38,505 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTPS écouteur https écoutant sur 127.0.0.1:8443

      12:56:38,552 INFO  [org.jboss.ws.common.management] (MSC service thread 1-7) JBWS022052: Starting JBossWS 5.1.9.Final-redhat-1 (Apache CXF 3.1.12.redhat-1)

      12:56:38,989 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-7) WFLYMSGAMQ0016: Mise à niveau HTTP enregistré pour le protocole activemq-remoting géré par l'acceptateur http-acceptor

      12:56:38,989 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-3) WFLYMSGAMQ0016: Mise à niveau HTTP enregistré pour le protocole activemq-remoting géré par l'acceptateur http-acceptor-throughput

      12:56:38,989 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-2) WFLYMSGAMQ0016: Mise à niveau HTTP enregistré pour le protocole activemq-remoting géré par l'acceptateur http-acceptor-throughput

      12:56:38,989 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-6) WFLYMSGAMQ0016: Mise à niveau HTTP enregistré pour le protocole activemq-remoting géré par l'acceptateur http-acceptor

      12:56:39,082 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 68) AMQ221007: Server is now live

      12:56:39,082 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 68) AMQ221001: Apache ActiveMQ Artemis Message Broker version 1.5.5.008-redhat-1 [default, nodeID=476b8fd3-0f28-11e8-b95c-58fb8442b7bf]

      12:56:39,082 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 68) AMQ221003: Deploying queue jms.queue.ExpiryQueue

      12:56:39,113 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 72) AMQ221003: Deploying queue jms.queue.ClientQueue

      12:56:39,129 INFO  [org.wildfly.extension.messaging-activemq] (ServerService Thread Pool -- 69) WFLYMSGAMQ0002: Object de messagerie lié au nom jndi java:jboss/exported/jms/RemoteConnectionFactory

      12:56:39,129 INFO  [org.wildfly.extension.messaging-activemq] (ServerService Thread Pool -- 71) WFLYMSGAMQ0002: Object de messagerie lié au nom jndi java:/ConnectionFactory

      12:56:39,129 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 70) AMQ221003: Deploying queue jms.queue.DLQ

      12:56:39,144 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-5) WFLYJCA0007: Fabrique de connexions enregistrée java:/JmsXA

      12:56:39,176 INFO  [org.apache.activemq.artemis.ra] (MSC service thread 1-5) Resource adaptor started

      12:56:39,176 INFO  [org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-5) IJ020002: Deployed: file://RaActivatoractivemq-ra

      12:56:39,176 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-6) WFLYJCA0002: JCA liée ConnectionFactory [java:/JmsXA]

      12:56:39,176 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-5) WFLYMSGAMQ0002: Object de messagerie lié au nom jndi java:jboss/DefaultJMSConnectionFactory

      12:56:39,269 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Redémarrage du serveur

      12:56:39,269 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: L'interface de gestion http écoute sur http://127.0.0.1:9990/management

      12:56:39,269 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: La console d'administration écoute sur http://127.0.0.1:9990

      12:56:39,269 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: JBoss EAP 7.1.0.GA (WildFly Core 3.0.10.Final-redhat-1) a démarré en 4948ms - 335 sur 599 services ont démarré (368 services sont passifs ou à la demande)

       

      But I get a "Naming Exception: javax.naming.NameNotFoundException: queue -- service jboss.naming.context.java.jboss.exported.queue" at the lookup:

      Queue queue = (Queue) context.lookup("queue/ClientQueue");

      The initialcontext is the following:

       

      Properties properties = new Properties();

                      properties.put(Context.INITIAL_CONTEXT_FACTORY,"org.wildfly.naming.client.WildFlyInitialContextFactory");

                      properties.put(Context.PROVIDER_URL, "http-remoting://localhost:8080"); 

                      properties.put(Context.SECURITY_PRINCIPAL, "User");

                      properties.put(Context.SECURITY_CREDENTIALS, "Password");

                      initialContext = new InitialContext(properties);

       

      Please, could you help ? Thank's in advance !