File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss service issue if accessed from another machine

 
abhilash nalla
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 0.0.0.0 -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
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 0.0.0.0".
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).
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic