Problem starting j2ee server..any expert can help

Posted this in the JMS Forum...

Probably..I should ask people in this forum

Anyone knows why I can't start the j2ee ..which I hope to use it as the JMS provider. I am trying to try the e.g. from JMS tutorial....

But it seems that I can't start the j2ee in the first place 'cos error say that I have another instance running...(but I didn't start anything in the first place). How should I solve this?

How could I stop the j2ee server....I tried the command

j2ee -stop but cannot..

Anyone can help?

Thank u in advance

AG

G:\jmseg\simple>j2ee -verbose

J2EE server listen port: 1050

java.lang.RuntimeException: Could not initialize j2ee server. Possible cause cou

ld be another instance of the server already running.

at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMg

r.java:134)

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:227)

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:918)

java.lang.RuntimeException: Could not initialize j2ee server. Possible cause cou

ld be another instance of the server already running.

at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMg

r.java:134)

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:227)

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:918)

java.lang.RuntimeException: Could not initialize j2ee server. Possible cause cou

ld be another instance of the server already running.

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:355)

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:918)

J2EE server reported the following error: Could not initialize j2ee server. Poss

ible cause could be another instance of the server already running.

Error executing J2EE server ...

G:\jmseg\simple>

[1956 byte] By [alexgnp] at [2007-9-26 8:24:01]
# 1
Tried restarting a number of time but it doesn't work... However I mnage to solve this problem by shutting down the computer and then starting it again..Beats me why this could be solve that way AG
alexgnp at 2007-7-1 18:59:41 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
There is one instance of server already running. so kill that first and then start the server again.
AshwinP at 2007-7-1 18:59:41 > top of Java-index,Other Topics,Patterns & OO Design...
# 3

Alex,

I have also seen this problem on Win 2K and also Linux. It is not because some other instance of the RI is already running, but because some other application or OS service is using TCP port Number 1050.

The J2EE RI does not depend on this port, however, there is a config file called orb.properties in the config subdirectory of your installation. In this file, you can change the port number to anything you like as long as it's free. I changed mine to 1051 and everything worked fine.

Greets,

Florian.

fvk at 2007-7-1 18:59:41 > top of Java-index,Other Topics,Patterns & OO Design...