views:

25

answers:

3

Hi,

I tried to start a glassfishv3 server in my windows XP system with the command "asadmin start-domain". The start failed due to a timeout. When I try to start again I get an error saying that the port 4848 is allready in use by another process. When I try to stop the server with "asadmin stop-domain" I get the error that it is not running.

Any idea how to solve this deadlock? I cannot find a Windows process with the name glassfish or asadmin to kill.

+1  A: 

The process will be java.exe

You can use one of the sysinternals tools, like tcpview.exe for example to see which program is actually using that port.

John Weldon
+1  A: 

You can also use jps to list all the Java processes on you machine. The GlassFish server main class is called ASMain

Alexis MP
A: 

Adding to Alexis' answer,

jps -v

will show you more about the java processes. Note the pid. You must have configured your path correctly for this to work.

Then do

taskkill /pid <pid>
Jim