users@glassfish.java.net

Re: Glassfish as a service on windows: asadmin create-service fails

From: <glassfish_at_javadesktop.org>
Date: Mon, 13 Sep 2010 12:02:14 PDT

I've stumbled across Kohsuke's winsw project, which appears to be being used by some guts somewhere deep within the create-service command.

Then I found the .xml config file created, presumably, by the create-service command. It looks like this:
[code]
<service>
  <id>application/GlassFish/LEADGlassfish</id>
  <name>domain1 GlassFish Server</name>
  <description>GlassFish Server</description>
  <executable>C:/glassfish-3.1b19/glassfish/bin/asadmin.bat</executable>
  <logpath>C:\\glassfish-3.1b19\\glassfish\\domains/domain1/bin</logpath>
  <logmode>reset</logmode>
  <depend>tcpip</depend>
  <startargument>start-domain</startargument>
  <startargument>--verbose</startargument>
     <startargument>--domaindir</startargument>
  <startargument>C:\\glassfish-3.1b19\\glassfish\\domains</startargument>
<startargument>domain1</startargument>
  <stopargument>stop-domain</stopargument>
     <stopargument>--domaindir</stopargument>
  <stopargument>C:\\glassfish-3.1b19\\glassfish\\domains</stopargument>
<stopargument>domain1</stopargument>
</service>
[/code]
Note the suspicious? maybe? name element, and the distinct lack of anything that looks at all remotely like "LEADGlassfish" (the name I attempted repeatedly to supply to the service creation machinery). I will try manually editing this file to have a name element with a value of, say, "gf" (all one word with no spaces). Maybe that will do it....

L
[Message sent by forum member 'ljnelson']

http://forums.java.net/jive/thread.jspa?messageID=482553