jQuery in Action, 3rd edition
The moose likes JBoss/WildFly and the fly likes JBoss service issue if accessed from another machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss service issue if accessed from another machine" Watch "JBoss service issue if accessed from another machine" New topic

JBoss service issue if accessed from another machine

abhilash nalla

Joined: Nov 05, 2008
Posts: 5
I have an issue with JBoss running as a service. We use JBoss 4.2. Registered it as a Windows service using following command:

@echo off
JBossService.exe -install JBoss422 "C:\Program Files\Java\jdk1.6.0_16\jre\bin\server\jvm.dll" -Djava.class.path="C:\Program Files\Java\jdk1.6.0_16\lib\tools.jar;C:\jboss-4.2.2\bin\run.jar" -Xms768m -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=128m -start org.jboss.Main -params -b -stop org.jboss.Main -method systemExit -out C:\jboss-4.2.2\bin\stdout.log -err C:\jboss-4.2.2\bin\stderr.log -current C:\jboss-4.2.2\bin

Now, this has been running fine for couple of years but we cannot get to our applications hosted on this server since last couple of days.

We can open our web applications from the server itself using http://localhost but when we try from another computer using IP Address, it says time out.

Now, there is one more thing. If I stop the service and run the run.bat file from bin folder, I can get to my applications both from the server as well as from other computers using the IP address.

Not sure what's going on. Any help or suggestions are greatly appreciated.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Looks like you are using JavaService to run JBoss AS as a service. (https://community.jboss.org/wiki/JavaService)
It stores the startup parameters in the registry at HKLM\system\CurrentControlSet\<service-name>\Parameters (in your case, <service-name> is Jboss422). Look there to verify that your settings are still correct, especially the "-b".
If that looks OK, then you need to verify that the service is running (look in Task Manager) and that it has the desired ports opened (use TCPView or netstat).

JBoss In Action
I agree. Here's the link: http://aspose.com/file-tools
subject: JBoss service issue if accessed from another machine
It's not a secret anymore!