This content has been marked as final.
Show 7 replies
-
1. Re: Running Two Jboss as Windows Service
sajithpp Sep 11, 2007 10:17 AM (in response to sajithpp)"sajithpp" wrote:
Hi,
I Installed two Jboss windows as Windows Service, and trying to run on Two different ports. But when i Run its woking fine. when iam starting to other two its not running. Is any documentation or configuration settings I need to do this.
i need to run two Jboss as windows service, Is any documentation / configuration settings for this on net, i can refer ?
Please Help
Sajith -
2. Re: Running Two Jboss as Windows Service
peterj Sep 11, 2007 11:31 AM (in response to sajithpp)Which tool are you using to run the app server as a service? JBoss Native? JavaService? Java Service Wrapper? Each one has different configuration mechanisms.
-
3. Re: Running Two Jboss as Windows Service
peterj Sep 11, 2007 11:32 AM (in response to sajithpp)Oh, and also tell me how you set up the two services.
-
4. Re: Running Two Jboss as Windows Service
sajithpp Sep 11, 2007 12:49 PM (in response to sajithpp)"PeterJ" wrote:
Oh, and also tell me how you set up the two services.
iam using JavaService.exe
i run "install.bat" in the from the bin Directory of jboss
and my install.bat is for JBOSS 1 :
-------------------------------------------------------------
Rem Start Here
set javadll=%JAVA_HOME%\jre\bin\client\jvm.dll
set javatool=%JAVA_HOME%\lib\tools.jar
set javarun=%JBOSS_HOME%\bin\run.jar
set outlog=%JBOSS_HOME%\bin\stdout.log
set errlog=%JBOSS_HOME%\bin\stderr.log
JavaService.exe -install JBoss "%javadll%" -Djava.class.path="%javatool%";"%javarun%" -start org.jboss.Main -stop org.jboss.Main -method systemExit -out "%outlog%" -err "%errlog%" -current "%JBOSS_HOME%\bin" -manual
Rem End Here
JBoss 2
-----------------------------------------------------------------
Rem Start Here
set javadll=%JAVA_HOME%\jre\bin\client\jvm.dll
set javatool=%JAVA_HOME%\lib\tools.jar
set javarun=%JBOSS_HOME1%\bin\run.jar
set outlog=%JBOSS_HOME1%\bin\stdout.log
set errlog=%JBOSS_HOME1%\bin\stderr.log
JavaService.exe -install JBoss1 "%javadll%" -Djava.class.path="%javatool%";"%javarun%" -start org.jboss.Main -stop org.jboss.Main -method systemExit -out "%outlog%" -err "%errlog%" -current "%JBOSS_HOME1%\bin" -manual
Rem End Here
Ihave twi JBOSS_HOME env variable
1. JBOSS_HOME set to c:\jboss
2. JBOSS_HOME1 set to c:\jboss1 -
5. Re: Running Two Jboss as Windows Service
peterj Sep 11, 2007 1:53 PM (in response to sajithpp)If I understand this correctly, you have two installations of JBoss AS, one at c:\jboss and the other at c:\jboss1. For both services, you are running the "default" configuration in their respective installations. That should work, provided that each uses its own port or host binding. For more information, see http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfiguringMultipleJBossInstancesOnOneMachine.
-
6. Re: Running Two Jboss as Windows Service
sajithpp Sep 11, 2007 2:49 PM (in response to sajithpp)"PeterJ" wrote:
If I understand this correctly, you have two installations of JBoss AS, one at c:\jboss and the other at c:\jboss1. For both services, you are running the "default" configuration in their respective installations. That should work, provided that each uses its own port or host binding. For more information, see http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfiguringMultipleJBossInstancesOnOneMachine.
Now i can run two jboss but iam getting this error on first (c:\jboss) server lo :
jboss.mq:service=InvocationLayer,type=JVM dependent components: []
2007-09-11 14:34:48,512 DEBUG [org.jboss.system.ServiceController] starting service jboss.mq:service=InvocationLayer,type=UIL2
2007-09-11 14:34:48,512 DEBUG [org.jboss.mq.il.uil2.UILServerILService] Starting jboss.mq:service=InvocationLayer,type=UIL2
2007-09-11 14:34:48,512 DEBUG [org.jboss.mq.il.uil2.UILServerILService] Starting failed jboss.mq:service=InvocationLayer,type=UIL2
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method) -
7. Re: Running Two Jboss as Windows Service
peterj Sep 11, 2007 3:10 PM (in response to sajithpp)Apparently some other program is already using that port. See http://wiki.jboss.org/wiki/Wiki.jsp?page=DebugBindException