Skip to main content

Glassfish services on Windows 2008 - Error 1607

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
4 replies [Last post]
gliesian
Offline
Joined: 2008-06-22

I created a windows service for glassfish: asadmin create-service.
I then tried to start the service through the Windows Services Manager (services.msc).
The follow message was returned:

"Windows could not start the domain1 Glassfish Server service on Local Computer.
Error 1067: The process terminated unexpectedly."
Note: I'm using Glassfish 3 and Windows 2008 R2 Enterprise. I'm also using JRE 1.6.
Any ideas how I can start the service?
Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bnevins
Offline
Joined: 2005-03-28

The first thing to try is a reboot.
If that doesn't work then respond with the EXACT details of what commands you ran. And you can run these series of commands:

asaadmin stop-domain
asadmin _delete-service
start asadmin start-domain --verbose (did it startup OK?)
asadmin stop-domain
// now you know that the domain starts up OK
del <gf-home>/domains/domain1/logs/server.log
asadmin create-service
sc query domain1 // do you see it?
sc start domain1
take a look in the server.log or hit it with a browser, or check for the running java-process, or call "asadmin list-domains"
----------------

mgainty
Offline
Joined: 2004-05-21

start command Starts a separate window to run a specified program or command.

START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/AFFINITY ] [/WAIT] [/B] [command/program]
[parameters]

to start a windows service drop to command line and run:
net start NameOfGlassfishWindowsService

where NameOfGlassfishWindowsService is the name of the Glassfish Service identified in the Windows Registry

hth
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

> To: users@glassfish.java.net
> Subject: Re: Glassfish services on Windows
> From: forums@java.net
> Date: Fri, 18 Mar 2011 00:54:29 -0500
>
> The first thing to try is a reboot.
>
> If that doesn't work then respond with the EXACT details of what commands
> you ran. And you can run these series of commands:
>
>
>
> asaadmin stop-domain
>
> asadmin _delete-service
>
> start asadmin start-domain --verbose (did it startup OK?)
>
> asadmin stop-domain
>
> // now you know that the domain starts up OK
>
> del /domains/domain1/logs/server.log
>
> asadmin create-service
>
> sc query domain1 // do you see it?
>
> sc start domain1
>
> take a look in the server.log or hit it with a browser, or check for the
> running java-process, or call "asadmin list-domains"
>

simgineer
Offline
Joined: 2011-03-21

had same issue on my windows 7 box which went away after i rebooted.

jackson.lobo
Offline
Joined: 2013-04-17

Thanks Simgineer. This resolution helped !!!