tag:blogger.com,1999:blog-7503515668102711213.post7181399474455411461..comments2023-09-19T16:46:32.767+01:00Comments on Igor Duarte Cardoso: Running GlassFish as a service on Windows (Error 1067)Anonymoushttp://www.blogger.com/profile/02815666243691532243noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-7503515668102711213.post-91656111976744842902012-03-22T12:27:30.174+00:002012-03-22T12:27:30.174+00:00So, you say that if I create a service like the fo...So, you say that if I create a service like the following:<br /><br />sc create myglassfish binPath= "C:\my folder\glassfish\bin\asadmin.bat start-domain domain1 --watchdog" start= auto<br /><br />Then I'll be able to start and stop the service via the windows service manager?Anonymoushttps://www.blogger.com/profile/02815666243691532243noreply@blogger.comtag:blogger.com,1999:blog-7503515668102711213.post-72238672272853945922012-03-22T12:24:58.459+00:002012-03-22T12:24:58.459+00:00My corrections (the tags got hacked off just like ...My corrections (the tags got hacked off just like yours):<br /><br />where is "I had only used double quotes in the section and not in the ones." should be "I had only used double quotes in the executable section and not in the startargument and stopargument ones".Anonymoushttps://www.blogger.com/profile/02815666243691532243noreply@blogger.comtag:blogger.com,1999:blog-7503515668102711213.post-9039778774536400482012-03-21T20:43:57.054+00:002012-03-21T20:43:57.054+00:00Sorry. The second part of the work-around is to l...Sorry. The second part of the work-around is to leave alone the logpath and executable paths.<br />DO NOT quote them or it won't work at all.Byron Nevinshttps://www.blogger.com/profile/06536180236748376172noreply@blogger.comtag:blogger.com,1999:blog-7503515668102711213.post-83687143090416948792012-03-21T20:42:17.065+00:002012-03-21T20:42:17.065+00:00It hacked-off the tags -->
it should say to do...It hacked-off the tags --><br /><br />it should say to double quote all paths in the html tags startargument and stopargumentByron Nevinshttps://www.blogger.com/profile/06536180236748376172noreply@blogger.comtag:blogger.com,1999:blog-7503515668102711213.post-54592046687353308282012-03-21T20:40:30.513+00:002012-03-21T20:40:30.513+00:00Corrections:
(1) Use the --watchdog option instea...Corrections:<br /><br />(1) Use the --watchdog option instead of --verbose so you don't get all log messages duplicated.<br /><br />(2) There is a bug in winsw (domain1Service.exe). The bug is fixed in a newer version of winsw. I have permanently added the following work-around to the GF trunk codebase. I'll also try to get it into the first patch of 3.1.2. The work-around fixes the problem completely:<br /><br />WORK-AROUND<br />* Put double quotes around all paths in and <br />* DO NOT double-quote the or (winsw is already doing it for you!)Byron Nevinshttps://www.blogger.com/profile/06536180236748376172noreply@blogger.comtag:blogger.com,1999:blog-7503515668102711213.post-31375710770859827892012-03-20T22:30:25.717+00:002012-03-20T22:30:25.717+00:00Using the --verbose option makes no effect on the ...Using the --verbose option makes no effect on the start of the service here. I still get the error 1053 (The service did not respond to the start or...). GlassFish actually starts after that, but because the service didn't officially start, there's no way of telling it to stop...<br /><br />The double quotes solution really works! I had only used double quotes in the section and not in the ones. I'm gonna update this post with the perfect solution right away!<br /><br />Many thanks! I'm looking forward for the first GlassFish version with your fix.Anonymoushttps://www.blogger.com/profile/02815666243691532243noreply@blogger.comtag:blogger.com,1999:blog-7503515668102711213.post-41278250716397345932012-03-20T18:57:07.976+00:002012-03-20T18:57:07.976+00:00Here is the easiest solution
Simply surround the ...Here is the easiest solution <br />Simply surround the path in the xml file with double quotes. E.g.<br /><br />"D:\\a b\\glassfish\\domains"<br /><br />I tested it and it works. I'll put the fix in the trunk of GF code today. Thanks!Byron Nevinshttps://www.blogger.com/profile/06536180236748376172noreply@blogger.comtag:blogger.com,1999:blog-7503515668102711213.post-60550749139919563322012-03-20T18:36:12.727+00:002012-03-20T18:36:12.727+00:00Hi,
It will start and stop for you like a normal ...Hi,<br /><br />It will start and stop for you like a normal service. You need to use the "--verbose" option for start-domain. Try it at a command-line. What happens is the asadmin JVM stays alive, fires up the DAS and hangs around until it dies. <br /><br />Now if you kill the asadmin JVM -- the server will definitely go down with it. <br /><br />I'll look into the space-in-path problem. Thanks for finding this problem.Byron Nevinshttps://www.blogger.com/profile/06536180236748376172noreply@blogger.com