-
1. Re: JBoss AS 7 as a Windows Service
gerry.matte Jul 27, 2011 9:02 PM (in response to ortizfabio)1 of 1 people found this helpfulI attempted to setup a JBoss AS 7 windows service using the windows service wrapper included at http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-9.html
Creating the service seemed to be fairly easy (changes were made to invoke standalone.xml) and the resulting service starts without any errors.
However, when I stop the service it shuts down windows 7. Not good.
When I posted this issue at https://community.jboss.org/message/617264#617264
Jean-Frederic Clere responded:
I will make a try: I am preparing a new version of native (should be later this week).
(See the July 24 postings)
-
2. Re: JBoss AS 7 as a Windows Service
ortizfabio Jul 28, 2011 3:07 PM (in response to gerry.matte)Gerry,
I actually use the 2-0-8 native and I got the service installed and running. However I had to made changes to the batch file. I changed the name of the executable to the 64bit version and the name of the script to point to the standalone.bat file. This seems to work so far.
Thanks,
Fabio
-
3. Re: JBoss AS 7 as a Windows Service
gerry.matte Jul 28, 2011 4:41 PM (in response to ortizfabio)Could you post your service.bat file ?
I tried to modify mine but the result was unsuccessful.
Thanks Fabio.
-
-
5. Re: JBoss AS 7 as a Windows Service
gerry.matte Aug 2, 2011 2:24 PM (in response to ortizfabio)To attach a file, start a Reply then in the upper right corner of the reply window click on "Advanced Editor". Near the bottom left of that window is a button "Choose File" button for file attachments below your text message.
I'll attach my service.bat to ensutre it works ok.
-
service.bat.zip 1.5 KB
-
-
6. Re: JBoss AS 7 as a Windows Service
gerry.matte Aug 2, 2011 2:32 PM (in response to ortizfabio)BTW, there's also a discussion at http://community.jboss.org/message/618530 about using a generic java service wrapper instead of the tomcat native wrapper. I've used that approach before - it's very configurable but can be complex to set up. They almost having it working.
-
7. Re: JBoss AS 7 as a Windows Service
ortizfabio Aug 2, 2011 2:50 PM (in response to gerry.matte)The problem might be that the standalone.conf.bat or domanin.conf.bat are not being source in from the corrensponding batch file. It was working because I had the definitions added to my environment like JAVA_HOME. But now I installed in another server and they are not being seeing.
Fabio
-
8. Re: JBoss AS 7 as a Windows Service
ortizfabio Aug 2, 2011 3:02 PM (in response to ortizfabio)The biggest problem is that every time I shutdown the service it shutdowns the SERVER. Then I have to contact the admins to restart which are not really happy. Even if I do it form the command line with "net stop servicename" it brings down the server.
Fabio
-
9. Re: JBoss AS 7 as a Windows Service
gerry.matte Aug 2, 2011 9:48 PM (in response to ortizfabio)That's exactly the problem I was having. Not an acceptable situation - expescially for servers.
Keep an eye on https://community.jboss.org/message/617264 for Jean-Frederic's response.
-
10. Re: JBoss AS 7 as a Windows Service
sebastian.koske Aug 3, 2011 5:29 AM (in response to gerry.matte)Hi,
i uncommented the line in service.bat / :cmdStop (line 84)
REM call shutdown -S < .s.lock >> shutdown.log 2>&1
this solved it for me.
-
11. Re: JBoss AS 7 as a Windows Service
nickarls Aug 3, 2011 5:32 AM (in response to sebastian.koske)Do you mind sharing the configuration files?
-
12. Re: JBoss AS 7 as a Windows Service
sebastian.koske Aug 3, 2011 6:31 AM (in response to nickarls)Hi sure,
I downloaded the bundle from
http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-9.html
and applied some minor modifications to the service.bat (attached)
-
service.bat.zip 1.3 KB
-
-
13. Re: JBoss AS 7 as a Windows Service
nickarls Aug 3, 2011 6:42 AM (in response to sebastian.koske)Excellent, it works for me!
(Windows 7 users should make sure their cmd is run in administrator mode if you want to do a service install)
-
14. Re: JBoss AS 7 as a Windows Service
ortizfabio Aug 3, 2011 2:59 PM (in response to sebastian.koske)Removing the shutdown statements fixes the problem. I am not even sure why they were there in the first place. It has nothing to do with the "Jboss windows service" code.
Thanks,