Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

j2ee startup problem  RSS feed

 
Lara McCarver
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using j2ee 1.3.1 on Windows 2000 Professional.
When I use "j2ee -verbose" I get the following errors:
--------------------
J2EE server listen port: 1050
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 209 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 another process
Error executing J2EE server ...
--------------------
Any advice would be greatly appreciated.
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
netstat -an will give you a listing of known ports in use by windows.
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following is from the j2ee tutorial page entittled Common Problems and Their Solutions
Symptom: When you start the J2EE server with the -verbose option, it displays these lines:
J2EE server listen port: 1050
RuntimeException: Could not initialize server...

Solution: Another process is using port 1050. If the J2EE server is already running, you can stop it by typing j2ee -stop. If some other program is using the port, then you can change the default port number (1050) by editing the config/orb.properties file of your J2EE SDK installation.
For more information about default port numbers, see the Configuration Guide in the download bundle of the J2EE SDK.
 
Lara McCarver
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your ideas. I have use netstat -n and there is nothing at port 1050. I used netstat -an and got a much longer list but still nothng special showed up for 1050. However, I did try changing the port number in the orb.properties file anyway, and I am still having the same problem.
I have also restarted my machine and run this from a relatively clean start, i.e. no other apps up, although my computer is configured to use ClearCase and also there may be some type of company-installed virus protection thing going on but it is not visible in the appbar or the system tray.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also used to get this error on Windows Professional, J2EE1.3.1 and JDK1.3.
I shutdown my other applications/services running on my box.
JRun I guess uses 1050 port.
Try random port numbers greater than 2000. You might be lucky.
I changed it to 6995 and it is working fine for me now.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!