4 Replies Latest reply on May 10, 2008 11:08 PM by Jeffrey Norton

    Cannot access JBoss 4.2 from internet when run as Windows Se

    Jeffrey Norton Newbie

      I need to run JBoss as a windows service. I used JavaService to install it as a service which I got to work. But when I added the "-b 0.0.0.0" parameter needed to allow access from other machines JBoss blows up.
      How do I run JBoss as a windows service AND allow access to it from remote machines?

      My service installation command is:

      JavaService.exe -install ResonantHub "C:\Program Files\Java\jdk1.5.0_15\jre\bin\server\jvm.dll" -Djava.class.path="C:\Jboss\bin\run.jar;C:\Program Files\Java\jdk1.5.0_15\lib\tools.jar" -Djava.endorsed.dirs="C:\Jboss/lib/endorsed" -Xms128M -Xmx512M -start org.jboss.Main -params "-b 0.0.0.0" -stop org.jboss.Main -method systemExit -out "C:\Jboss\bin\out.log" -err "C:\Jboss\bin\err.log" -current "C:\Jboss\bin" -depends MySQL -auto -overwrite -startup 6
      

      The error I'm getting is:
      17:31:41,812 INFO [Server] Starting JBoss (MX MicroKernel)...
      17:31:41,828 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
      17:31:41,828 INFO [Server] Home Dir: C:\Resonant\APHub\ProcessHub
      17:31:41,828 INFO [Server] Home URL: file:/C:/Resonant/APHub/ProcessHub/
      17:31:41,828 INFO [Server] Patch URL: null
      17:31:41,828 INFO [Server] Server Name: default
      17:31:41,828 INFO [Server] Server Home Dir: C:\Resonant\APHub\ProcessHub\server\default
      17:31:41,828 INFO [Server] Server Home URL: file:/C:/Resonant/APHub/ProcessHub/server/default/
      17:31:41,828 INFO [Server] Server Log Dir: C:\Resonant\APHub\ProcessHub\server\default\log
      17:31:41,828 INFO [Server] Server Temp Dir: C:\Resonant\APHub\ProcessHub\server\default\tmp
      17:31:41,828 INFO [Server] Root Deployment Filename: jboss-service.xml
      17:31:42,234 INFO [ServerInfo] Java version: 1.5.0_15,Sun Microsystems Inc.
      17:31:42,234 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_15-b04,Sun Microsystems Inc.
      17:31:42,234 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      17:31:43,171 INFO [Server] Core system initialized
      17:31:46,218 INFO [ServiceConfigurator] Problem configuring service jboss:service=WebService
      org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute@b1074a on mbean jboss:service=WebService; - nested throwable: (java.net.UnknownHostException: 0.0.0.0: 0.0.0.0)
       at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:707)
       at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:462)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
       at org.jboss.system.ServiceController.install(ServiceController.java:226)
       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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.install(Unknown Source)
       at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
       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: 0.0.0.0
       at java.net.InetAddress.getAllByName0(InetAddress.java:1145)
       at java.net.InetAddress.getAllByName(InetAddress.java:1072)
       at java.net.InetAddress.getAllByName(InetAddress.java:1008)
       at java.net.InetAddress.getByName(InetAddress.java:958)
       at org.jboss.web.WebService.toInetAddress(WebService.java:340)
       at org.jboss.web.WebService.setBindAddress(WebService.java:157)
       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.AttributeDispatcher.invoke(AttributeDispatcher.java:136)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:103)
       at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461)
       at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
       at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:703)
       ... 39 more


      Thanks for you help!