wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Start J2EE server : null.open error 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 "Start J2EE server : null.open error" Watch "Start J2EE server : null.open error" New topic
Author

Start J2EE server : null.open error

Gwen Lin
Greenhorn

Joined: Apr 15, 2004
Posts: 3
Dear Experts,
I am a beginner, trying to learn J2EE. I installed J2SE1.3.1(JDK1.3) and J2EE1.3. I tried to start the J2EE server, but it wouldn't work. THe following is the error I got (on WindowXP) :
------------------------------------------------------------
C:\>j2ee -verbose
J2EE server listen port: 1050
Naming service started:1050
Binding DataSource, name = jdbc/InventoryDB, url =
jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/EstoreDB, url =
jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/DB2, url =
jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/Cloudscape, url =
jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/DB1, url =
jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
Binding DataSource, name = jdbc/XACloudscape__xa, dataSource =
COM.cloudscape.core.RemoteXaDataSource@9de5b
Starting JMS service...
Initialization complete - waiting for client requests
Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No
properties >
Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No
properties >
Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No
properties >
Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No
properties >
Starting web service at port: 8000
Starting secure web service at port: 7000
J2EE SDK/1.3
LifecycleException: null.open: java.net.BindException: Address in use: JVM_Bind at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1081)
at org.apache.catalina.startup.Embedded.start(Embedded.java:945)
at com.sun.web.server.WebService.start(WebService.java:214)
at com.sun.web.server.WebServer.start(WebServer.java:193)
at com.sun.enterprise.server.J2EEServer.startWebService(J2EEServer.java:730)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:294)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
java.lang.RuntimeException: null.open
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:350)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
J2EE server reported the following error: null.open
Error executing J2EE server ...
---------------------------------------
I don't know what I have missed or what should check next ? Could anyone please give some helps ?
My: JAVA_HOME is set as jdk1.3.1
J2EE_HOME is set as j2sdkee1.3
Please Help !!! Thanks !


Meow
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
It looks like you already have some server running on one of the ports it needs. Do you have something like Tomcat or another webserver going? If so, shut it down before you start this up.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
On a default setup, the J2EE server tries to start a web service at port 9191. If you type netstat - a on your command line you should see if this port is already in use. If it is used by another program then you can edit the %J2EE_HOME%\config\ejb.properties file and change the line http.port=9191 to http.port=a safe unused port on your system
HTH
Nigel
Gwen Lin
Greenhorn

Joined: Apr 15, 2004
Posts: 3
Hi experts,
The following is my ports ... but I couldn't see anything wrong myself ... could anyone please give me some suggestions ???
Also, I have NOT installed Tomcat. Is that necessary for J2EE1.3 and J2SE1.3.1 ?
Thanks a lot !!!
------------------------------------------------
C:\>netstat -a
Active Connections
Proto Local Address Foreign Address State
TCP TaichiPC:epmap TaichiPC:0 LISTENING
TCP TaichiPC:microsoft-ds TaichiPC:0 LISTENING
TCP TaichiPC:1005 TaichiPC:0 LISTENING
TCP TaichiPC:1025 TaichiPC:0 LISTENING
TCP TaichiPC:1061 TaichiPC:0 LISTENING
TCP TaichiPC:1162 TaichiPC:0 LISTENING
TCP TaichiPC:1582 TaichiPC:0 LISTENING
TCP TaichiPC:1606 TaichiPC:0 LISTENING
TCP TaichiPC:5000 TaichiPC:0 LISTENING
TCP TaichiPC:8000 TaichiPC:0 LISTENING
TCP TaichiPC:8443 TaichiPC:0 LISTENING
TCP TaichiPC:netbios-ssn TaichiPC:0 LISTENING
TCP TaichiPC:1162 cosmos.ucsd.edu:telnet ESTABLISHED
TCP TaichiPC:1582 baym-cs127.msgr.hotmail.com:1863 ESTABLISHED
TCP TaichiPC:1602 f601.mail.yahoo.com:http TIME_WAIT
TCP TaichiPC:1606 216.239.57.99:http ESTABLISHED
UDP TaichiPC:bootps *:*
UDP TaichiPC:427 *:*
UDP TaichiPC:microsoft-ds *:*
UDP TaichiPC:isakmp *:*
UDP TaichiPC:1027 *:*
UDP TaichiPC:1036 *:*
UDP TaichiPC:1037 *:*
UDP TaichiPC:1038 *:*
UDP TaichiPC:1039 *:*
UDP TaichiPC:1040 *:*
UDP TaichiPC:1041 *:*
UDP TaichiPC:1043 *:*
UDP TaichiPC:1044 *:*
UDP TaichiPC:1045 *:*
UDP TaichiPC:1068 *:*
UDP TaichiPC:1546 *:*
UDP TaichiPC:1586 *:*
UDP TaichiPC:8000 *:*
UDP TaichiPC:10167 *:*
UDP TaichiPC:10527 *:*
UDP TaichiPC:27892 *:*
UDP TaichiPC:ntp *:*
UDP TaichiPC:1063 *:*
UDP TaichiPC:1064 *:*
UDP TaichiPC:1066 *:*
UDP TaichiPC:1076 *:*
UDP TaichiPC:1520 *:*
UDP TaichiPC:1900 *:*
UDP TaichiPC:ntp *:*
UDP TaichiPC:netbios-ns *:*
UDP TaichiPC:netbios-dgm *:*
UDP TaichiPC:1900 *:*
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Meow Meow,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
The Beginners forum probably isn't the place to discuss the installation, configuration, and/or running of a J2EE server.
I'm moving this to the EJB and Other J2EE Technologies...
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
Well it looks to me as though you are currently using port 8000 for both TCP and UDP traffic. This seems to be stopping your j2ee server from starting properly. If you know it is safe to do so try killing the processes using port 8000 and then starting j2ee server. Or you could edit the %J2EE_Home%\config\web.properties file so that the http.port and the https.port are safe unused ports.
HTH
Nigel
Gwen Lin
Greenhorn

Joined: Apr 15, 2004
Posts: 3
Hi this is Meow again !
Thanks for the information. But .... how do I find out which program is using port 8000 and kill it ? could anyone please give me more detailed instructions ....
"Or you could edit the %J2EE_Home%\config\web.properties file so that the http.port and the https.port are safe unused ports."
If I want to edit that file ..... how do I modify it .... sorry I am a new-b ........
many many thanks !!!
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
Gwen,
How much of a newbie are you ? Have you experience with J2SE ? If not I advise that you learn the core java class libraries before jumping into J2EE.
As for editing to the '.properties' file, you can use any text editor to do that. Just open the file with notepad and change the port numbers to avoid the collision with the ports already in use.
HTH
Nigel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Start J2EE server : null.open error
 
Similar Threads
confusion with output of java -version command
J2EE RI Security Exception Mac OS X
Please help me
New Here .. Need Help
Problem with starting j2sdk RI server