Forums Register Login

how can i modify the port number of the j2ee reference?

+Pie Number of slices to send: Send
hello
i install the j2ee1.3 on my windows2000 server,after i setup the environment,i iuput the "j2ee -verbose" within the dos window,the following exception is throwed:

Logging for J2EE Server Version: 1.3.1-b17 started at: Wed Aug 07 19:23:22 CST 2002..
Using the Java HotSpot(TM) Client VM and the version number 1.3.1 from Sun Microsystems Inc..
VM is using the classpath: E:\j2sdkee1.3.1\lib\system\cloudscape.jar;E:\j2sdkee1.3.1\lib\system\tools.jar;E:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;E:\j2sdkee1.3.1\lib\cloudscape\cloudclient.jar;E:\j2sdkee1.3.1\lib\classes;E:\j2sdkee1.3.1\classes;E:\j2sdkee1.3.1\lib\j2ee.jar;E:\j2sdkee1.3.1\lib\toolclasses;E:\j2sdkee1.3.1\lib\j2eetools.jar;E:\j2sdkee1.3.1\lib\locale;;E:\JBuilder6\jdk1.3.1\lib\tools.jar;E:\j2sdkee1.3.1\lib\jhall.jar .
J2EE Home Directory has been set to: E:\j2sdkee1.3.1.

java.lang.RuntimeException: Could not initialize j2ee server. Possible cause could be another instance of the server already running.
at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java:119)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:226)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
java.lang.RuntimeException: Could not initialize j2ee server. Possible cause could be another instance of the server already running.
at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java:119)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:226)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
java.lang.RuntimeException: Could not initialize j2ee server. Possible cause could be another instance of the server already running.
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
J2EE server reported the following error: Could not initialize j2ee server. Possible cause could be another instance of the server already running.
Error executing J2EE server ...


it seem like that the "1050" port is in using by other program,but i don't know which one,i think i should modify the j2ee reference to use other port,how can i do that?

thank you very much!
+Pie Number of slices to send: Send
Your first job should be finding out whether the port is in use, you can try using netstat from a command prompt.
If that doesnt give you the desired answer try a proper port scanner, like Ostro Internet tools http://www.ostrosoft.com/ostronet.html.
Mat.
+Pie Number of slices to send: Send
thanks Mat.
neither the netstat nor the ostro port scanner can find any program is using the port,i try to change the port number in the "config/orb.properties" to other numbers,such as:2090,1000,.......
but both of them throw the same exception as follow,could you help me?
E:\>j2ee
J2EE server listen port: 2090
org.omg.CORBA.INTERNAL: minor code: 1398079697 completed: No
at com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:256)
at com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIOPImpl.java:205)
at com.sun.corba.ee.internal.iiop.GIOPImpl.initEndpoints(GIOPImpl.java:140)
at com.sun.corba.ee.internal.POA.POAORB.getServerEndpoint(POAORB.java:492)
at com.sun.corba.ee.internal.POA.POAImpl.pre_initialize(POAImpl.java:156)
at com.sun.corba.ee.internal.POA.POAImpl.<init>(POAImpl.java:114)
at com.sun.corba.ee.internal.POA.POAORB.makeRootPOA(POAORB.java:114)
at com.sun.corba.ee.internal.POA.POAORB$1.evaluate(POAORB.java:132)
at com.sun.corba.ee.internal.core.Future.evaluate(Future.java:21)
at com.sun.corba.ee.internal.corba.ORB.resolveInitialReference(ORB.java:2488)
at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2423)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:196)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
J2EE server reported the following error: Unable to create ORB. Possible causes include TCP/IP ports in use by anot
her process
Error executing J2EE server ...
There's a hole in the bucket, dear Liza, dear Liza, a hole in the bucket, dear liza, a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 911 times.
Similar Threads
How to start J2EE server ?
NoClassDefFoundError when starting J2EE Server
SOS!!!about J2EE Server
Please help me start J2EE server.
Could not initialize j2ee server - selecting a port#?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:04:27.