gateway could not start

we had installed 2005q4m3 sp1 and new gateway.

I did gateway -i to install and gateway -s to start the gateway and got this error.

C:\Program Files\SunIdentityManager6\gateway>gateway -i

06/05/2007 10.54.24.021000 [14356] (../../../../src/wps/agent/logging/WSTrace.cp

p,150): trace active, level: 4, file: C:/gatewaytrace.txt, maxSize: 500 KB

06/05/2007 10.54.24.021000 [14356] (../../../../src/wps/agent/logging/WSTrace.cp

p,108): In WSTrace::init()

06/05/2007 10.54.24.021000 [14356] (../../../../src/wps/agent/logging/WSTrace.cp

p,109): Gateway version: 'Sun Java System Identity Manager 6.0 SP1'

06/05/2007 10.54.24.031000 [14356] (../../../../src/wps/agent/logging/WSTrace.cp

p,110): OS version: 'Windows Server 2003 Family Service Pack 2 (Build 3790)'

An error occured when trying to install the service: No error

C:\Program Files\SunIdentityManager6\gateway>gateway -s

06/05/2007 10.54.35.087000 [15692] (../../../../src/wps/agent/logging/WSTrace.cp

p,150): trace active, level: 4, file: C:/gatewaytrace.txt, maxSize: 500 KB

06/05/2007 10.54.35.087000 [15692] (../../../../src/wps/agent/logging/WSTrace.cp

p,108): In WSTrace::init()

06/05/2007 10.54.35.087000 [15692] (../../../../src/wps/agent/logging/WSTrace.cp

p,109): Gateway version: 'Sun Java System Identity Manager 6.0 SP1'

06/05/2007 10.54.35.087000 [15692] (../../../../src/wps/agent/logging/WSTrace.cp

p,110): OS version: 'Windows Server 2003 Family Service Pack 2 (Build 3790)'

06/05/2007 10.54.35.097000 [15220] (../../../../src/wps/agent/util/ThreadRunner.

cpp,61): Waiting for request event

An error occured when trying to start the service: No such file or directory

Can anybody point me what could be going wrong here?

Thanks.

[1871 byte] By [G_identitya] at [2007-11-27 6:29:34]
# 1
Hi,Make sure there are no previous instances of gateway running. Also, if u using windows restarting would help.Thanks,
sungirla at 2007-7-12 17:53:41 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Thanks.I removed all the instances(just delete the gateway folder(s)) and then restarted Win.It worked.
G_identitya at 2007-7-12 17:53:41 > top of Java-index,Web & Directory Servers,Directory Servers...