title: Glassfish create-service for [domain 2]
body: <p>I'm trying to create windows service for glassfish and I've had no problems creating one for the default domain, but when it comes to a domain I created my self, I seem to struggle.</p>
  
  <p>the command I'm using is:</p>
  
  <pre><code>asadmin&gt;create-service --domaindir C:\Program Files\glassfish-4.1.1\glassfish\domains\testdomain
  </code></pre>
  
  <p>I only get a filenotfound exception. I don't seem to understand glassfish's directory for its domains</p>
  
  <p>aside from this, one of my other problems in the service I created for the default domain is that everytime I try to start it, it just stops immediately</p>
  
  <blockquote>
    <p>The domain1 GlassFish Server on Local Computer started and then stopped. Some services stop automatically...</p>
  </blockquote>
  
  <p>it gives me that kind of popup</p>