IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Java EE Discussion :

Hermes JMS et JBoss [JMS]


Sujet :

Java EE

  1. #1
    Membre habitué Avatar de astrotouf
    Profil pro
    Consultant informatique
    Inscrit en
    Avril 2005
    Messages
    221
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Avril 2005
    Messages : 221
    Points : 132
    Points
    132
    Par défaut Hermes JMS et JBoss
    Bonjour à tous. J'essaye depuis tout à l'heure d'utiliser HermesJMS avec un serveur JBoss 4.0.1. J'ai suivi le tutoriel qui est présent à l'adresse suivante :
    http://www.hermesjms.com/confluence/...JBoss+Tutorial

    et j'ai essayé d'adapter l'url du host dans mon cas j'ai mis :
    http://localhost:8080
    Mais finalement il fallait la laisser comme tel :
    jnp://localhost:1099
    pour le reste j'ai recopié les paramètres tel quels.
    lorsque je vais dans le contexte que j'ai créé et que je double clique dessus il m'ouvre une fenêtre qui me dis connection Timeout.

    je sais vraiment pas quoi faire.

    Help Me please car je suis nouveau en JMS.

  2. #2
    Membre habitué Avatar de astrotouf
    Profil pro
    Consultant informatique
    Inscrit en
    Avril 2005
    Messages
    221
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Avril 2005
    Messages : 221
    Points : 132
    Points
    132
    Par défaut
    Finalement j'avais une erreur dans mes paramètre maintenant l'erreur est devenue la suivante :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    javax.jms.JMSException: Could not create InitialContext: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
    	at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:282)
    	at hermes.browser.components.ContextTreeModelFactory.create(ContextTreeModelFactory.java:58)
    	at hermes.browser.tasks.JNDIBrowseTask.invoke(JNDIBrowseTask.java:59)
    	at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
    	at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
    	at java.lang.Thread.run(Thread.java:619)
    je ne sais pas si les fichierd JAR que j'ai ajouté au début doivent aussi être ajoutés à la variable PATH.
    je vais quand même tenter

  3. #3
    Membre éprouvé
    Avatar de hasalex
    Homme Profil pro
    Développeur Java
    Inscrit en
    Janvier 2009
    Messages
    879
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 54
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Java

    Informations forums :
    Inscription : Janvier 2009
    Messages : 879
    Points : 1 269
    Points
    1 269
    Par défaut
    Vérifie que tu as bien tous les jars dans l'onglet providers ; en particulier jnp-client.jar.

    Les jar n'ont rien à faire dans le PATH !

  4. #4
    Membre habitué Avatar de astrotouf
    Profil pro
    Consultant informatique
    Inscrit en
    Avril 2005
    Messages
    221
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Avril 2005
    Messages : 221
    Points : 132
    Points
    132
    Par défaut
    je viens de régler le problème mais une exception persiste :
    hermes.HermesException
    No message, linked exception is : null
    Voila le détail :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    	java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    	java.net.MalformedURLException: no protocol: and]
    	at org.jnp.interfaces.NamingContext.list(NamingContext.java:748)
    	at org.jnp.interfaces.NamingContext.list(NamingContext.java:724)
    	at javax.naming.InitialContext.list(InitialContext.java:436)
    	at hermes.browser.model.tree.ContextTreeNode.setContext(ContextTreeNode.java:101)
    	at hermes.browser.model.tree.ContextTreeNode.<init>(ContextTreeNode.java:65)
    	at hermes.browser.model.tree.ContextTreeNode.<init>(ContextTreeNode.java:70)
    	at hermes.browser.components.ContextTreeModelFactory.create(ContextTreeModelFactory.java:60)
    	at hermes.browser.tasks.JNDIBrowseTask.invoke(JNDIBrowseTask.java:59)
    	at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
    	at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
    	at java.lang.Thread.run(Thread.java:619)
    Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    	java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    	java.net.MalformedURLException: no protocol: and
    	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:336)
    	at sun.rmi.transport.Transport$1.run(Transport.java:159)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    	at java.lang.Thread.run(Thread.java:619)
    	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
    	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
    	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
    	at org.jnp.server.NamingServer_Stub.list(Unknown Source)
    	at org.jnp.interfaces.NamingContext.list(NamingContext.java:738)
    	... 10 more
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    	java.net.MalformedURLException: no protocol: and
    	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:293)
    	at sun.rmi.transport.Transport$1.run(Transport.java:159)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    	... 1 more
    Caused by: java.net.MalformedURLException: no protocol: and
    	at java.net.URL.<init>(URL.java:567)
    	at java.net.URL.<init>(URL.java:464)
    	at java.net.URL.<init>(URL.java:413)
    	at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751)
    	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147)
    	at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
    	at org.jboss.system.JBossRMIClassLoader.loadClass(JBossRMIClassLoader.java:74)
    	at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
    	at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
    	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
    	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
    	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
    	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    	at javax.naming.CompoundName.readObject(CompoundName.java:554)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
    	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
    	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    	at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
    	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:290)
    	... 9 more

    je me demande ce que ça veut. J'ai lancé le serveur Jboss il marche. Dois je faire autre chose ?

  5. #5
    Membre éprouvé
    Avatar de hasalex
    Homme Profil pro
    Développeur Java
    Inscrit en
    Janvier 2009
    Messages
    879
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 54
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Java

    Informations forums :
    Inscription : Janvier 2009
    Messages : 879
    Points : 1 269
    Points
    1 269
    Par défaut
    Ce serait sympa pour les autres qui tu dises comment tu as réglé ton problème...

    Pour ta nouvelle exception, tu as certainement dû mal saisir une URL :
    MalformedURLException: no protocol

  6. #6
    Membre habitué Avatar de astrotouf
    Profil pro
    Consultant informatique
    Inscrit en
    Avril 2005
    Messages
    221
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Avril 2005
    Messages : 221
    Points : 132
    Points
    132
    Par défaut
    Je me suis rendu compte que je n'avais bien mis le champs Loader à JBoss 4.0.1. il était resté à System je ne sais pas pourquoi.
    Maintenant le problème de l'URL a été résolu en modifiant le dossier de JBoss et de HermesJMS. Il faut que les dossiers dans lesquels ils sont mis soient sans espaces.

    voila donc le problème est résolu.

    merci

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [JMS][JBoss][EJBs] configuration/mise en place
    Par Bizoo dans le forum Wildfly/JBoss
    Réponses: 2
    Dernier message: 08/04/2008, 15h07
  2. Problème Jboss et JMS
    Par psypsy dans le forum Wildfly/JBoss
    Réponses: 1
    Dernier message: 30/07/2007, 10h05
  3. JBoss et JMS
    Par soumou dans le forum Wildfly/JBoss
    Réponses: 4
    Dernier message: 22/02/2007, 22h23
  4. JBoss JMS : pas d'acquittement pour les messages !
    Par flios dans le forum Wildfly/JBoss
    Réponses: 3
    Dernier message: 09/02/2007, 15h24
  5. API Jms avec Jboss
    Par yanis97 dans le forum Wildfly/JBoss
    Réponses: 1
    Dernier message: 08/09/2006, 17h52

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo