File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes can't start j2ee server - What to do? 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 "can Watch "can New topic
Author

can't start j2ee server - What to do?

willem jacobus odendaal
Greenhorn

Joined: Sep 13, 2004
Posts: 12
alo all
i am trying to set j2ee up on my pc. i downloaded it and ran the self installer(windows 2000). according to the quickstart guide the first thing to do is to start the server, by selecting 'Start Default Domain', which i did but then ran into the following error:"CLI156 could not start the domain domain1.".

the server.log file offers this help:
com.sun.appserv.server.ServerLifecycleException: [C4003]: Error occurred on connection creation [batt155:2966]. - cause: java.net.ConnectException: Connection refused: connect

batt155 is my computer name and 2966 is the port i asume.

not getting the server started is blocking my j2ee progress as you can imagine so if there is any help out there, i would greatly appreciate it!

cheers

PS-I get serious fits of narcolepsy reading sun.java documentation, does anyone out there know of a idiot-friendly j2ee-site that can explain it all to me?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Wild stab in the dark: is 2966 being used by something else? Try the command "netstat -ao" from a command prompt. This will show you what PIDs are using what ports.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
willem jacobus odendaal
Greenhorn

Joined: Sep 13, 2004
Posts: 12
Paul

port 2967 is being used, but not port 2966.
willem jacobus odendaal
Greenhorn

Joined: Sep 13, 2004
Posts: 12
more info...

I tried starting the server from the command prompt and got:

E:\j2eeTutorial\j2eetutorial14\examples\web\bookstore>j2ee
'j2ee' is not recognized as an internal or external command,
operable program or batch file.

My enviroment variables are set to:
J2EE_HOME C:\Sun\AppServer\jdk ***I`m not sure this is right***
JAVA_HOME C:\j2sdk1.4.1_02
ANT_HOME C:\apache-ant-1.6.1-bin\apache-ant-1.6.1

PATH C:\Sun\AppServer\bin;%JAVA_HOME%\bin;%ANT_HOME%\bin...

any thoughts?
 
 
subject: can't start j2ee server - What to do?
 
Similar Threads
Internet Access
could not start the SunAppServer
Unable Connect from servlet-jdbc to Oracle
j2ee bother..
Connect to SQL 2005 with JBOSS 4.0.3