This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes how can i modify the port number of the j2ee reference? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how can i modify the port number of the j2ee reference?" Watch "how can i modify the port number of the j2ee reference?" New topic
Author

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

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
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!
Mat Robinson
Greenhorn

Joined: Aug 02, 2002
Posts: 20
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.
zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
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 ...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how can i modify the port number of the j2ee reference?
 
Similar Threads
How to start J2EE server ?
NoClassDefFoundError when starting J2EE Server
Could not initialize j2ee server - selecting a port#?
Please help me start J2EE server.
SOS!!!about J2EE Server