Using JBoss 4.2.0.GA, Windows XP

I need to start jboss with start parameter '-b 0.0.0.0'.
First I modify run.bat and everything works well. But in my configuration, 
jboss should run as a windows service. So I added '-b 0.0.0.0' to the start 
parameters of the jboss service. After starting jboss again, some 
UnknownHostExceptions are logged. Nevertheless jboss is accessible through 
machines ip address.

What is the difference when starting jboss by using run.bat or windows service ?
Any ideas are welcome.

windows registry:

  | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\JBoss\Parameters]
  | "JVM Library"="C:\\java_inst\\jdk1.5.0_11\\jre\\bin\\server\\jvm.dll"
  | "JVM Option Count"=dword:00000001
  | "JVM Option Number 
0"="-Djava.class.path=C:\\java_inst\\jdk1.5.0_11\\lib\\tools.jar;C:\\java_inst\\jboss-4.2.0.GA\\bin\\run.jar"
  | "Start Class"="org.jboss.Main"
  | "Start Method"="main"
  | "Start Param Count"=dword:00000001
  | "Start Param Number 0"="-b 0.0.0.0"
  | "Stop Class"="org.jboss.Main"
  | "Stop Method"="systemExit"
  | "Stop Param Count"=dword:00000000
  | "System.out 
File"="C:\\java_inst\\jboss-4.2.0.GA\\server\\default\\log\\stdout.log"
  | "System.err 
File"="C:\\java_inst\\jboss-4.2.0.GA\\server\\default\\log\\stderr.log"
  | "Current Directory"="C:\\java_inst\\jboss-4.2.0.GA\\bin"
  | 

server.log:

  | ....
  | 2007-08-08 12:50:59,832 DEBUG [org.jboss.remoting.ServerInvoker] 
SocketServerInvoker[UNINITIALIZED] stopped
  | 2007-08-08 12:50:59,832 WARN  [org.jboss.system.ServiceController] Problem 
creating service jboss.remoting:service=Connector,transport=socket
  | java.lang.RuntimeException: Error setting up server invoker 
SocketServerInvoker[UNINITIALIZED]
  |     at org.jboss.remoting.ServerInvoker.create(ServerInvoker.java:779)
  |     at org.jboss.remoting.transport.Connector.init(Connector.java:426)
  |     at org.jboss.remoting.transport.Connector.create(Connector.java:766)
  |     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:585)
  |     at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |     at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
  |     at $Proxy0.create(Unknown Source)
  |     at org.jboss.system.ServiceController.create(ServiceController.java:330)
  |     at org.jboss.system.ServiceController.create(ServiceController.java:273)
  |     at org.jboss.system.ServiceController.create(ServiceController.java:349)
  |     at org.jboss.system.ServiceController.create(ServiceController.java:273)
  |     at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:585)
  |     at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |     at $Proxy4.create(Unknown Source)
  |     at org.jboss.deployment.SARDeployer.create(SARDeployer.java:258)
  |     at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
  |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
  |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
  |     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:585)
  |     at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |     at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |     at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |     at $Proxy5.deploy(Unknown Source)
  |     at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
  |     at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
  |     at org.jboss.Main.boot(Main.java:200)
  |     at org.jboss.Main$1.run(Main.java:508)
  |     at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.net.UnknownHostException:  0.0.0.0
  |     at java.net.InetAddress.getAllByName0(InetAddress.java:1133)
  |     at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
  |     at java.net.InetAddress.getAllByName(InetAddress.java:1061)
  |     at java.net.InetAddress.getByName(InetAddress.java:958)
  |     at org.jboss.remoting.ServerInvoker.setup(ServerInvoker.java:935)
  |     at 
org.jboss.remoting.transport.socket.SocketServerInvoker.setup(SocketServerInvoker.java:157)
  |     at org.jboss.remoting.ServerInvoker.create(ServerInvoker.java:775)
  |     ... 51 more
  | 2007-08-08 12:50:59,832 DEBUG [org.jboss.system.ServiceController] Creating 
service jboss.remoting:service=Connector,transport=socket
  | 2007-08-08 12:50:59,832 DEBUG [org.jboss.system.ServiceController] Ignoring 
create request for service: jboss.remoting:service=Connector,transport=socket
  | 2007-08-08 12:50:59,832 DEBUG [org.jboss.system.ServiceController] Creating 
service jboss.jdbc:service=metadata
  | 2007-08-08 12:50:59,832 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary] Creating 
jboss.jdbc:service=metadata
  | 2007-08-08 12:50:59,832 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary] Created 
jboss.jdbc:service=metadata
  | ......
  | 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071976#4071976

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071976
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to