• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Start J2EE server : null.open error

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 !
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 *:*
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Goodbye moon men. Hello tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic