*
The moose likes EJB and other Java EE Technologies and the fly likes More problems starting J2EE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "More problems starting J2EE" Watch "More problems starting J2EE" New topic
Author

More problems starting J2EE

Jessica Farnham
Greenhorn

Joined: Feb 12, 2001
Posts: 5
I'm trying to run J2EE on a Windows NT machine. I've set up JAVA_HOME and J2EE_HOME environment variables and set up my PATH to include %JAVA_HOME%\bin and %J2EE_HOME\bin. I know these are correct because I can run javac and j2ee from the command line. My CLASSPATH includes "%J2EE_HOME%\lib\j2ee.jar; %JAVA_HOME%\lib\tools.jar;". I think that this is right because the error messages below suggest j2ee is finding j2ee.jar.
However, I'm getting a couple of different errors when I do "j2ee -verbose" at the command line. Yesterday I got the following (sorry it got a little truncated on the right, but I think it's only missing line numbers):
C:\>j2ee -verbose
J2EE server Listen Port: = 1049
Naming service started: :1050
Published the configuration object ..
Binding DataSource, name = jdbc/Cloud
DB;create=true
java.lang.RuntimeException:
at com.sun.enterprise.server.
at com.sun.enterprise.server.
J2EE server reported the following error:
Error executing J2EE server ...
Today, I'm getting this error:
C:\>j2ee -verbose
J2EE server Listen Port: = 1049
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:118)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
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:348)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
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 ...
I didn't change any of the environment variables between yesterday and today. As far as I know, there is no other j2ee server running on my machine.
Any ideas? Thanks!
sandy gupta
Ranch Hand

Joined: Jan 30, 2001
Posts: 228
iTS VERY CLEARLY STATED THAT THE SERVER INSTANCE IS ALREADY RUNNING.
GOTO CONTRO PANEL->SERVICES AND SEE WHETHER THE SERVER IS INDEED RUNNING, SHUT IT DOWN AND THEN DO THE REST
OR ON THE CMD PROMPT DO NETSTAT -N TO SEE WHETHER THE PORT THAT U HAVE MARKED AS THE SERVER LISTENER IS ALREADY BUSY
HTH
SAHIL
P.S: In case u still have problem please post or mail at g_sahil@usa.net


Adios
Jessica Farnham
Greenhorn

Joined: Feb 12, 2001
Posts: 5
Thanks for your response. I've looked in Control Panel->Services, but I didn't see anything that looked like a the j2ee server. Does it have a non-obvious name? My netstat output doesn't show anything on port 1050, which is where the naming server started yesterday. I haven't yet gotten into j2ee and so I haven't done anything about manually setting up ports--whatever is happening is default behavior. Is there something I need to do that wasn't in Sun's installation instructions?
sandy gupta
Ranch Hand

Joined: Jan 30, 2001
Posts: 228
Hi Jess,
I am sorry but i am a Weblogic guy and so i can't say much bout the j2EE server anomalies. I guess if my earlier reply did not help u then theres not much that i can do.
Am Sorry
Sahil
p.s: Make sure that u did not start J2EE Server as a Windows service coz then if u'r m/c boots then that service is started but that is shown in the services. If nothing helps then u can boot the m/c and start again
Jessica Farnham
Greenhorn

Joined: Feb 12, 2001
Posts: 5
Thanks Sandy. Ultimately, this turned out to be a probable networking problem. The startup procedure crashed while trying to startup the IIOP listener for CORBA. I'm on an NT workstation on a network, and it looks like the default port for the listener is unavailable because of the way things are set up. I'm still working on a solution, but I did get j2ee up and running on a Win98 machine with no problem.
sandy gupta
Ranch Hand

Joined: Jan 30, 2001
Posts: 228
good for you
Bye
Sahil
Carlos Cuevas
Greenhorn

Joined: Sep 26, 2002
Posts: 9
Hey sandy, this has happened to us when other apps. (ex: Outlook) somehow use the 1050 port... you might wanna use j2ee on another port o change your app.....
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
Yep - I've had a few problems in the past with applications like Outlook and Yahoo Messenger. A reboot followed by starting up the J2EE server before any other apps usually sorts it out.
Simon
HanMing Low
Ranch Hand

Joined: Oct 18, 2001
Posts: 196
Hi,
If I'm not wrong, running ICQ will cause some problem starting J2EE-RI server.
Cheers.

Han Ming
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: More problems starting J2EE