Any ideas on how to properly stop the service?
When you stop the service, are there any errors in the server.log file?
The server log (and run.log) do not update after I click "stop" on the service. The last message is that of JBoss start up completion (from when the service was started). There are also no errors during startup.
Did you get any solution for this...
The issue i am facing is that... its trying to look for some thing on port 1099. And says that its not able to find, to kill the server...
i changed the jboss-service.xml to run on 8180... does this cause an issue...
"its trying to look for some thing on port 1099" What is trying to look for something on port 1099?
"its not able to find," What is it not able to find? And what is attempting to do the finding?
Are you saying that there is a port binding conflict on port 1099 when you start the app server? If so, why not simply post the error message (and stack trace) you are getting. And if that is the problem, see http://wiki.jboss.org/wiki/Wiki.jsp?page=DebugBindException
Changing the port binding to 8180 does not cause any issues, other than people having to know to use that port when accessing app server.
In my case, as I said earlier, there was no error whatsoever during startup, and no messages at all after I clicked 'stop'
By the way (correct my if I'm wrong), but port 1099 is default for naming services or RMI, no? It is possible that stopping involves some RMI client (JMX-based maybe) that tells the server to stop. If your naming service/RMI is provided by some external application, it may be related...
sagiman, I apologize. I didn't see that explorer had appended a question to your post or I would have asked explorer to start a new post. Anyway, my answers were to exlorer's questions, not to your posts.
Unfortunately, I have never used 4.0.1 (I skipped from 3.2.7 to 4.0.2), and have never used JBoss Native (though I have used both JavaService and Java Service Wrapper to run JBoss AS as a service).
sagimann, could you able to solve the problem. As I am also experiencing the same issue, it would be great if I get some help.
JBoss Native uses the shutdown script to stop the service. Are you able to manually launch the app server using the run script and then stop it using the shutdown script? If you cannot do this manually, then JBoss Native will not be able to do it either.
Have you by any chance locked down the JMX Invoker?
Also, what are the last dozen or so entries in the log file?
Still experiencing the issue. Not sure how to use the alternative method (java wrapper service) and anyway, it's not an authorized method in my company. Any updates anyone?
sagimann, not sure what to tell you beyond what I posted earlier. Did you try what I suggested? What happened, were you able to stop the app server using shutdown.bat? What about the log entries I asked for? Or the question about the invoker?
Sorry, I've just seen your post... I've found the problem: my app server was using a non default RMI port. If I change it back to the default port, the service is able to stop. Thanks for the info about shutdown.bat - it helped me with diagnostics.
However, I still need a non-default port for my implementation. Do you know how to provide the correct RMI URL to jbosssvc.exe? I now know that I can shut it down manually using:
shutdown.bat -s=localhost:my_rmi_port> -S
But when I try to stop the service using Control Panel or "net stop", it still tries to use the default URL: localhost:1099.
correction: the manual cmdline should be:
shutdown.bat -s=localhost:my_rmi_port -S