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

JOnAS Java Discussion :

Faire tourner plusieurs instances Jonas simultanément sur la même machine


Sujet :

JOnAS Java

  1. #1
    Rédacteur
    Avatar de longbeach
    Profil pro
    Architecte de système d’information
    Inscrit en
    Avril 2003
    Messages
    943
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Avril 2003
    Messages : 943
    Points : 2 370
    Points
    2 370
    Par défaut Faire tourner plusieurs instances Jonas simultanément sur la même machine
    Bonjour,
    tout est dans le sujet en fait.
    Je cherche à faire tourner plusieurs instances Jonas sur la même machine et en même temps bien sûr.

    J'arrive à créer une instance (JONAS_BASE) sans problème mais comment en créer et en faire tourner plusieurs en même temps sur la même machine ?

    J'ai lu ces instructions ici mais elles m'apparaissent incomplètes :
    https://wiki.ow2.org/jonas/Wiki.jsp?...dJOnASTutorial

    Donc un port différent par instance.

    Mais je peux pas exporter la variable d'environnement JONAS_BASE plusieurs fois évidemment.

    Qqu'un l'a déjà fait ?
    Merci pour votre aide.

  2. #2
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    Je l'ai fait, en gros tu dois avoir 2 JONAS_BASE et configurer les ports dans pleins de fichiers xml, suis simplement ce post
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  3. #3
    Rédacteur
    Avatar de longbeach
    Profil pro
    Architecte de système d’information
    Inscrit en
    Avril 2003
    Messages
    943
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Avril 2003
    Messages : 943
    Points : 2 370
    Points
    2 370
    Par défaut
    Merci.
    J'ai donc créé un JONAS_BASE et modifié plein de fichiers dans /conf :
    carol.properties
    jetty6.xml
    tomcat6-server.xml
    joramAdmin.xml
    a3servers.xml
    jonas.properties
    cmi-config.xml
    domain.xml

    Voici l'erreur que j'ai maintenant :

    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
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
     
    OW2 JOnAS 5.1.5 [ http://jonas.ow2.org / jonas@ow2.org ]
     
    JONAS_BASE is set to /home/applix/vge/vgedev6/mesInstancesJonas/instance1
     
    Welcome to OW2 JOnAS (Running on Felix).
    -----------------------------------------------
     
    6/28/11 5:18:01 PM (I) ExtensionLoaderComponent.__start : Some jars have been found in [/opt/jonas/5.1.5/lib/ext, /home/applix/vge/vgedev6/mesInstancesJonas/instance1/lib/ext]. They have been transformed into bundles (see /home/applix/vge/vgedev6/mesInstancesJonas/instance1/work/ext-bundles directory).This is NOT the prefered way to extends JOnAS libraries, prefer to use carefully created and tested bundles, and place them in your deploy/ directory.
    6/28/11 5:18:01 PM (I) ExtensionLoaderComponent.__start : file:/home/applix/vge/vgedev6/mesInstancesJonas/instance1/work/ext-bundles/ojdbc14-10.2.0.2.0.jar installed as a bundle.
    2011-06-28 17:18:02,645 : LoggerService.log : [ERROR] org.ow2.jonas.registry.carol.CarolRegistryService : [org.ow2.jonas.registry.carol.CarolRegistryService.fe8e2d3c-dd84-473c-934d-56ed8ddbab41] The callback method start has thrown an exception : Cannot start the registry: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started: org.ow2.jonas.service.ServiceException : Cannot start the registry: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started
    org.ow2.jonas.service.ServiceException : Cannot start the registry: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started: org.ow2.jonas.service.ServiceException : Cannot start the registry: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started
            at org.ow2.jonas.registry.carol.CarolRegistryService.__doStart(CarolRegistryService.java:247)
            at org.ow2.jonas.registry.carol.CarolRegistryService.doStart(CarolRegistryService.java)
            at org.ow2.jonas.lib.service.AbsServiceImpl.start(AbsServiceImpl.java:95)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:616)
            at org.apache.felix.ipojo.util.Callback.call(Callback.java:231)
            at org.apache.felix.ipojo.util.Callback.call(Callback.java:191)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallback.call(LifecycleCallback.java:86)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__stateChanged(LifecycleCallbackHandler.java:162)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java)
            at org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:428)
            at org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:309)
            at org.apache.felix.ipojo.ComponentFactory.createInstance(ComponentFactory.java:155)
            at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:283)
            at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:220)
            at org.apache.felix.ipojo.IPojoFactory.updated(IPojoFactory.java:588)
            at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1253)
            at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88)
    Caused by: org.ow2.jonas.service.ServiceException : Cannot start the registry: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started
            at org.ow2.jonas.registry.carol.CarolRegistryService$2.execute(CarolRegistryService.java:235)
            at org.ow2.jonas.registry.carol.CarolRegistryService$2.execute(CarolRegistryService.java:224)
            at org.ow2.jonas.lib.execution.RunnableHelper.execute(RunnableHelper.java:60)
            at org.ow2.jonas.registry.carol.CarolRegistryService.__doStart(CarolRegistryService.java:243)
            ... 19 more
    Caused by: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started
            at org.ow2.carol.jndi.ns.NameServiceManager.startNS(NameServiceManager.java:111)
            at org.ow2.jonas.registry.carol.CarolRegistryService$2.execute(CarolRegistryService.java:232)
            ... 22 more
    2011-06-28 17:18:02,726 : LoggerService.log : [ERROR] org.ow2.jonas.registry.carol.CarolRegistryService : [org.ow2.jonas.registry.carol.CarolRegistryService.fe8e2d3c-dd84-473c-934d-56ed8ddbab41] The callback method start has thrown an exception : Cannot start the registry: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started: org.ow2.jonas.service.ServiceException : Cannot start the registry: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started
    org.ow2.jonas.service.ServiceException : Cannot start the registry: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started: org.ow2.jonas.service.ServiceException : Cannot start the registry: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started
            at org.ow2.jonas.registry.carol.CarolRegistryService.__doStart(CarolRegistryService.java:247)
            at org.ow2.jonas.registry.carol.CarolRegistryService.doStart(CarolRegistryService.java)
            at org.ow2.jonas.lib.service.AbsServiceImpl.start(AbsServiceImpl.java:95)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:616)
            at org.apache.felix.ipojo.util.Callback.call(Callback.java:235)
            at org.apache.felix.ipojo.util.Callback.call(Callback.java:191)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallback.call(LifecycleCallback.java:86)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__stateChanged(LifecycleCallbackHandler.java:162)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java)
            at org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:428)
            at org.apache.felix.ipojo.InstanceManager.reconfigure(InstanceManager.java:1121)
            at org.apache.felix.ipojo.IPojoFactory.reconfigure(IPojoFactory.java:460)
            at org.apache.felix.ipojo.IPojoFactory.updated(IPojoFactory.java:602)
            at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1122)
            at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88)
    Caused by: org.ow2.jonas.service.ServiceException : Cannot start the registry: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started
            at org.ow2.jonas.registry.carol.CarolRegistryService$2.execute(CarolRegistryService.java:235)
            at org.ow2.jonas.registry.carol.CarolRegistryService$2.execute(CarolRegistryService.java:224)
            at org.ow2.jonas.lib.execution.RunnableHelper.execute(RunnableHelper.java:60)
            at org.ow2.jonas.registry.carol.CarolRegistryService.__doStart(CarolRegistryService.java:243)
            ... 17 more
    Caused by: org.ow2.carol.jndi.ns.NameServiceException: The jrmp name service is already started
            at org.ow2.carol.jndi.ns.NameServiceManager.startNS(NameServiceManager.java:111)
            at org.ow2.jonas.registry.carol.CarolRegistryService$2.execute(CarolRegistryService.java:232)
            ... 20 more
    [ vgedev6 : PVGE1 ]> 2011-06-28 17:18:03,559 : JOnASJMXService$2.execute : JMX security is disabled
    2011-06-28 17:18:03,561 : JOnASJMXService.__doStart : JMX Service started, using connector(s) [service:jmx:rmi://localhost/jndi/rmi://localhost:9542/jrmpconnector_jonas1]
    2011-06-28 17:18:03,779 : JNDIInterceptorsComponent.__start : JNDI Interceptors component started
    2011-06-28 17:18:03,849 : PolicyProvider.init : Using JOnAS PolicyConfigurationFactory provider and JOnAS Policy provider
    2011-06-28 17:18:03,985 : JonasSecurityServiceImpl.__doStart : Security Service started
    2011-06-28 17:18:04,067 : J2EEServer.__info : JOnAS AS v5.1.5 named 'jonas1' STARTING
    2011-06-28 17:18:04,118 : JonasSecurityServiceImpl.__doStop : Security Service stopped
    2011-06-28 17:18:04,120 : JNDIInterceptorsComponent.__stop : JNDI Interceptors component stopped
     
    [ vgedev6 : PVGE1 ]> 2011-06-28 17:18:04,693 : JOnASJMXService.__doStop : JMX Service stopped
    2011-06-28 17:18:04,950 : HsqlDBServiceImpl.__doStart : Starting HSQLDB server 1.8.0 on port 9008
     
    [ vgedev6 : PVGE1 ]> 2011-06-28 17:18:07,329 : LoggerService.log : [ERROR] org.ow2.jonas.db.hsqldb.HsqlDBServiceImpl : [org.ow2.jonas.db.hsqldb.HsqlDBServiceImpl.94052eac-8ae7-4971-ad23-08dca83778a5] The callback method start has thrown an exception : The server was shutdown :: java.net.BindException: Address already in use
    org.ow2.jonas.service.ServiceException : The server was shutdown :: java.net.BindException: Address already in use
            at org.ow2.jonas.db.hsqldb.HsqlDBServiceImpl.__doStart(HsqlDBServiceImpl.java:157)
            at org.ow2.jonas.db.hsqldb.HsqlDBServiceImpl.doStart(HsqlDBServiceImpl.java)
            at org.ow2.jonas.lib.service.AbsServiceImpl.start(AbsServiceImpl.java:95)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:616)
            at org.apache.felix.ipojo.util.Callback.call(Callback.java:231)
            at org.apache.felix.ipojo.util.Callback.call(Callback.java:191)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallback.call(LifecycleCallback.java:86)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__stateChanged(LifecycleCallbackHandler.java:162)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java)
            at org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:428)
            at org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:309)
            at org.apache.felix.ipojo.ComponentFactory.createInstance(ComponentFactory.java:155)
            at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:283)
            at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:220)
            at org.apache.felix.ipojo.IPojoFactory.updated(IPojoFactory.java:588)
            at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1253)
            at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88)
    Caused by: java.net.BindException: Address already in use
            at java.net.PlainSocketImpl.socketBind(Native Method)
            at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
            at java.net.ServerSocket.bind(ServerSocket.java:336)
            at java.net.ServerSocket.<init>(ServerSocket.java:202)
            at java.net.ServerSocket.<init>(ServerSocket.java:114)
            at org.hsqldb.HsqlSocketFactory.createServerSocket(Unknown Source)
            at org.hsqldb.Server.openServerSocket(Unknown Source)
            at org.hsqldb.Server.run(Unknown Source)
            at org.hsqldb.Server.access$000(Unknown Source)
            at org.hsqldb.Server$ServerThread.run(Unknown Source)
    2011-06-28 17:18:07,372 : HsqlDBServiceImpl.__doStart : Starting HSQLDB server 1.8.0 on port 9008
     
    [ vgedev6 : PVGE1 ]> 2011-06-28 17:18:09,699 : LoggerService.log : [ERROR] org.ow2.jonas.db.hsqldb.HsqlDBServiceImpl : [org.ow2.jonas.db.hsqldb.HsqlDBServiceImpl.94052eac-8ae7-4971-ad23-08dca83778a5] The callback method start has thrown an exception : The server was shutdown :: java.net.BindException: Address already in use
    org.ow2.jonas.service.ServiceException : The server was shutdown :: java.net.BindException: Address already in use
            at org.ow2.jonas.db.hsqldb.HsqlDBServiceImpl.__doStart(HsqlDBServiceImpl.java:157)
            at org.ow2.jonas.db.hsqldb.HsqlDBServiceImpl.doStart(HsqlDBServiceImpl.java)
            at org.ow2.jonas.lib.service.AbsServiceImpl.start(AbsServiceImpl.java:95)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:616)
            at org.apache.felix.ipojo.util.Callback.call(Callback.java:235)
            at org.apache.felix.ipojo.util.Callback.call(Callback.java:191)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallback.call(LifecycleCallback.java:86)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__stateChanged(LifecycleCallbackHandler.java:162)
            at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java)
            at org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:428)
            at org.apache.felix.ipojo.InstanceManager.reconfigure(InstanceManager.java:1121)
            at org.apache.felix.ipojo.IPojoFactory.reconfigure(IPojoFactory.java:460)
            at org.apache.felix.ipojo.IPojoFactory.updated(IPojoFactory.java:602)
            at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1122)
            at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88)
    Caused by: java.net.BindException: Address already in use
            at java.net.PlainSocketImpl.socketBind(Native Method)
            at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
            at java.net.ServerSocket.bind(ServerSocket.java:336)
            at java.net.ServerSocket.<init>(ServerSocket.java:202)
            at java.net.ServerSocket.<init>(ServerSocket.java:114)
            at org.hsqldb.HsqlSocketFactory.createServerSocket(Unknown Source)
            at org.hsqldb.Server.openServerSocket(Unknown Source)
            at org.hsqldb.Server.run(Unknown Source)
            at org.hsqldb.Server.access$000(Unknown Source)
            at org.hsqldb.Server$ServerThread.run(Unknown Source)
    Quels sont les fichiers à modifier maintenant ? Et à quels niveaux ?

    Merci !!

  4. #4
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    T'as visiblement zappé de modifier un port dans ta 2 e instance, verifie un peu tous les ports des fichiers carol.properties des 2 instances
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  5. #5
    Rédacteur
    Avatar de longbeach
    Profil pro
    Architecte de système d’information
    Inscrit en
    Avril 2003
    Messages
    943
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Avril 2003
    Messages : 943
    Points : 2 370
    Points
    2 370
    Par défaut
    Non, j'ai modifié TOUS les ports dans carol.properties

  6. #6
    Rédacteur
    Avatar de longbeach
    Profil pro
    Architecte de système d’information
    Inscrit en
    Avril 2003
    Messages
    943
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Avril 2003
    Messages : 943
    Points : 2 370
    Points
    2 370
    Par défaut
    quel est le fichier où ce nom de service JRMP est défini ?

  7. #7
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    Peux tu nous envoyer 2 zip contenant chacun les fichiers de conf de chaque instance, t'as zappé de modifier un port.
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  8. #8
    Rédacteur
    Avatar de longbeach
    Profil pro
    Architecte de système d’information
    Inscrit en
    Avril 2003
    Messages
    943
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Avril 2003
    Messages : 943
    Points : 2 370
    Points
    2 370
    Par défaut
    Ci-joint mes 2 instances :
    Dans InstanceInitiale/conf : mon instance (JONAS_BASE) initiale, j'y ai pas touché
    Dans NouvelleInstance/conf : la nouvelle instance ((JONAS_BASE) que j'essaie de démarrer.



    Merci.
    Fichiers attachés Fichiers attachés

  9. #9
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    Et tes 2 fichiers server.xml
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  10. #10
    Membre VIP Avatar de kalysto
    Profil pro
    Développeur
    Inscrit en
    Mars 2003
    Messages
    442
    Détails du profil
    Informations personnelles :
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur

    Informations forums :
    Inscription : Mars 2003
    Messages : 442
    Points : 568
    Points
    568
    Par défaut
    Quand tu lances ton 2nd JOnAS, tu as bien mis la variable d'environnement JONAS_BASE qui pointe sur le bon JONAS_BASE ?

  11. #11
    Rédacteur
    Avatar de longbeach
    Profil pro
    Architecte de système d’information
    Inscrit en
    Avril 2003
    Messages
    943
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Avril 2003
    Messages : 943
    Points : 2 370
    Points
    2 370
    Par défaut
    Citation Envoyé par DevServlet Voir le message
    Et tes 2 fichiers server.xml
    Où se trouve ce fichier server.xml ???
    Je le vois nulle part dans mes 2 instances.

  12. #12
    Rédacteur
    Avatar de longbeach
    Profil pro
    Architecte de système d’information
    Inscrit en
    Avril 2003
    Messages
    943
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Avril 2003
    Messages : 943
    Points : 2 370
    Points
    2 370
    Par défaut
    Citation Envoyé par kalysto Voir le message
    Quand tu lances ton 2nd JOnAS, tu as bien mis la variable d'environnement JONAS_BASE qui pointe sur le bon JONAS_BASE ?
    Absolument :

    JONAS_BASE=/home/applix/vge/vgedev6/mesInstancesJonas/instance1

  13. #13
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    Tu ne veux pas nous faire voir tes env.sh et server.xml?
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  14. #14
    Rédacteur
    Avatar de longbeach
    Profil pro
    Architecte de système d’information
    Inscrit en
    Avril 2003
    Messages
    943
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Avril 2003
    Messages : 943
    Points : 2 370
    Points
    2 370
    Par défaut
    Citation Envoyé par DevServlet Voir le message
    Tu ne veux pas nous faire voir tes env.sh et server.xml?
    Je veux bien
    Mais ils n'existent pas chez moi ...
    Ma version de JOnAS : jonas-full-5.1.5

    Peut-être que tu fais référence à des fichiers qui existaient dans une précédente version ??

  15. #15
    Membre VIP Avatar de kalysto
    Profil pro
    Développeur
    Inscrit en
    Mars 2003
    Messages
    442
    Détails du profil
    Informations personnelles :
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur

    Informations forums :
    Inscription : Mars 2003
    Messages : 442
    Points : 568
    Points
    568
    Par défaut
    env.sh, je suis pas sur qu'on l'ait encore en JOnAS 5.
    Sinon le server.xml, c'est le fichier de configuration de tomcat.
    Et il a été renommé $JONAS_BASE/conf/tomcat6-server.xml (pas trop de changement quand meme )

  16. #16
    Membre VIP Avatar de kalysto
    Profil pro
    Développeur
    Inscrit en
    Mars 2003
    Messages
    442
    Détails du profil
    Informations personnelles :
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur

    Informations forums :
    Inscription : Mars 2003
    Messages : 442
    Points : 568
    Points
    568
    Par défaut
    Tu n'a donné qu'un seul JONAS_BASE...
    Si tu as 2 instances, tu dois les lancer avec 2 environnement (shell) qui ont des valeurs différentes pour le JONAS_BASE (chaque instance a son environnement qui pointe sur un JONAS_BASE différent).

    Tu as bien positionné tes variables d'environnement ?

    Sinon, c'est que tu as un logiciel tierce (pas JOnAS) qui a deja pris le port que tu veux utiliser dans un de tes JONAS_BASE.
    Dans ce cas la, "netstat -anp" (sous linux, je connais pas l'equivalent windows) est ton ami, et tu dois partir a la chasse tout seul

  17. #17
    Rédacteur
    Avatar de longbeach
    Profil pro
    Architecte de système d’information
    Inscrit en
    Avril 2003
    Messages
    943
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Avril 2003
    Messages : 943
    Points : 2 370
    Points
    2 370
    Par défaut
    Bon,
    je crois que c'est bon.
    J'ai recommencé et j'y suis allé petit à petit.
    ça marche.

    Si ça intéresse qqu'un, je peux détailler les fichiers à modifier etc.

  18. #18
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    Ca m'interesse bien de savoir quel fichier j'ai loupé de te faire modifier, puisque j'avais déjà fait ça plusieurs fois par le passé. . Noublie pas de mettre aussi le tag "résolu" après.
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  19. #19
    Rédacteur
    Avatar de longbeach
    Profil pro
    Architecte de système d’information
    Inscrit en
    Avril 2003
    Messages
    943
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Avril 2003
    Messages : 943
    Points : 2 370
    Points
    2 370
    Par défaut
    Citation Envoyé par DevServlet Voir le message
    Ca m'interesse bien de savoir quel fichier j'ai loupé de te faire modifier, puisque j'avais déjà fait ça plusieurs fois par le passé. . Noublie pas de mettre aussi le tag "résolu" après.
    Alors voici les modifs que j'ai dû faire :

    1) Modif nom instance
    jonas.properties
    jonas.name jonas1

    2) Modif port RMI JRMP
    carol.properties
    # RMI JRMP URL
    carol.jrmp.url=rmi://localhost:1099
    ==>
    # RMI JRMP URL
    carol.jrmp.url=rmi://localhost:1097

    3) Modif port HTTP
    jetty6.xml: 9003 au lieu de 9000
    tomcat6-server.xml: 9003 au lieu de 9000
    tomcat7-server.xml: 9003 au lieu de 9000
    uddi.properties : 9003 au lieu de 9000

    4) Port de HSQL (9001 par defaut)
    HSQL1.properties:datasource.url : 9004 au lieu de 9001
    jonas.properties : 9004 au lieu de 9001

    5) org.objectweb.joram.mom.proxies.tcp.TcpProxyService
    a3servers.xml
    16010 ==> 16009
    joramAdmin.xml ==> 16009


    Mais on m'a parlé de la commande newjc et aussi de l'outil deployme qui pourrait être une bien meilleure solution. J'ai pas encore testé. Si qqu'un peut faire un retour sur ces 2 méthodes (méthodologie), ça serait sympa et utile pour tout le monde.

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

Discussions similaires

  1. [HF18] Plusieurs versions de HyperfileSQL sur la même machine?
    Par fdelepine dans le forum HyperFileSQL
    Réponses: 4
    Dernier message: 27/03/2015, 09h34
  2. plusieurs instances de PostgreSQL sur le même PC
    Par Davboc dans le forum PostgreSQL
    Réponses: 4
    Dernier message: 06/04/2007, 09h48
  3. plusieurs instances de Firebird sur le même PC
    Par Davboc dans le forum Installation
    Réponses: 6
    Dernier message: 20/03/2007, 09h30
  4. Plusieurs instances en cluster sur une même machine
    Par Onarap dans le forum Wildfly/JBoss
    Réponses: 3
    Dernier message: 25/10/2006, 16h42
  5. Autorun pour plusieurs fichiers en simultané sur clé USB
    Par princebaal dans le forum Windows
    Réponses: 1
    Dernier message: 06/10/2005, 13h35

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