J2EE Server FAILS TO START!

I am very new to J2EE Programming.. i had been programming on J2SE all this while.. I downloaded J2EE1.4 and ran the installation . The installation was successful and so i wanted to verify the installtion.. i started the Default Server. But i got this messaage

Starting Domain domain1, please wait.

Log redirected to d:\Sun\AppServer\domains\domain1\logs\server.log.

Domain domain1 does not exist in D:\Sun\AppServer\domains. Use a different domain name or the --domaindir option.

CLI156 Could not start the domain domain1.

Press any key tocontinue . . .

I checked the environment variables .. the PATH variable.. its fine.. pointing to the %J2EE_Home%\ bin directory.

I am really stumped!! PLEASE PLEASE PLEASE HElp me out with this!!

Thanks in Advance

[846 byte] By [arijit_datta] at [2007-11-26 8:33:00]
# 1
So, what is the content of D:\Sun\AppServer\domains folder? As error message says, server configuration was not found there as expected.
Snjezana at 2007-7-6 21:58:00 > top of Java-index,Application & Integration Servers,Application Servers...
# 2

Thanks for replying... I was trying to solve the prob myself. and was checking the installtion logs.. found.. there was some error with the installtion itself.. so i unsintalled the whole thing.. and cleaned up the PATH variable, so that there was no garbage there.. and tried installing once again.. ..But the installtion failed at : here is installtion log:

INFO - unpacked jar file: activation.jar.pack

INFO - unpacked jar file: appserv-assemblytool.jar.pack

INFO - unpacked jar file: appserv-cmp.jar.pack

INFO - unpacked jar file: appserv-ext.jar.pack

INFO - unpacked jar file: appserv-jstl.jar.pack

INFO - unpacked jar file: appserv-rt1.jar.pack

INFO - unpacked jar file: appserv-rt2.jar.pack

INFO - unpacked jar file: appserv-rt3.jar.pack

INFO - unpacked jar file: appserv-rt4.jar.pack

INFO - unpacked jar file: appserv-tags.jar.pack

INFO - unpacked jar file: commons-launcher.jar.pack

INFO - unpacked jar file: commons-logging.jar.pack

INFO - unpacked jar file: deployhelp.jar.pack

INFO - unpacked jar file: j2ee-svc.jar.pack

INFO - unpacked jar file: j2ee.jar.pack

INFO - unpacked jar file: jaxr-api.jar.pack

INFO - unpacked jar file: jaxr-impl.jar.pack

INFO - unpacked jar file: jaxrpc-api.jar.pack

INFO - unpacked jar file: jaxrpc-impl.jar.pack

INFO - unpacked jar file: jsf-api.jar.pack

INFO - unpacked jar file: jsf-impl.jar.pack

INFO - unpacked jar file: mail.jar.pack

INFO - unpacked jar file: relaxngDatatype.jar.pack

INFO - unpacked jar file: saaj-api.jar.pack

INFO - unpacked jar file: saaj-impl.jar.pack

INFO - unpacked jar file: sun-appserv-ant.jar.pack

INFO - unpacked jar file: xsdlib.jar.pack

INFO - unpacked jar file: sun-as-jsr88-dm.jar.pack

INFO - number of merged jar entries: 2741

INFO - number of merged jar entries: 1430

INFO - number of merged jar entries: 2473

INFO - number of merged jar entries: 776

INFO - number of merged jar entries: 646

INFO - Start core server configuration.

ERROR - default domain creation returned following exception: abnormal subprocess termination: Detailed Message:'File' is not recognized as an internal or external command,

operable program or batch file.

Usage: create-domain [--terse=false] [--echo=false] [--interactive=true] [--domaindir domain_directory] --adminport port_number --adminuser admin [--passwordfile filename ] [--instanceport port_number] [--savemasterpassword=false] [--domainproperties (name=value)[:name=value]*] domain_name

CLI020 Operand is required.

'File' is not recognized as an internal or external command,

operable program or batch file.

'File' is not recognized as an internal or external command,

operable program or batch file.

Usage: create-domain [--terse=false] [--echo=false] [--interactive=true] [--domaindir domain_directory] --adminport port_number --adminuser admin [--passwordfile filename ] [--instanceport port_number] [--savemasterpassword=false] [--domainproperties (name=value)[:name=value]*] domain_name

CLI020 Operand is required.

'File' is not recognized as an internal or external command,

operable program or batch file.

INFO - End core server configuration.

INFO - Start samples configuration.

INFO - End samples configuration.

INFO - Start Derby Configuration.

INFO - End Derby Configuration.

INFO - Start Sun Java System Message Queue configuration

INFO - End Sun Java System Message Queue configuration

....

More Information:

Log File: C:\DOCUME~1\totalinx\LOCALS~1\Temp\Install_Application_Server_8PE_200605171107.log

arijit_datta at 2007-7-6 21:58:00 > top of Java-index,Application & Integration Servers,Application Servers...
# 3

If you checked your PATH, you might have run into issue described in this thread:

http://forum.java.sun.com/thread.jspa?threadID=738559

Could you please check the name of the downloaded file to see if this is the same issue and rename it if necessary? Alternatively, you can create domain manually as described in that thread.

Snjezana at 2007-7-6 21:58:00 > top of Java-index,Application & Integration Servers,Application Servers...
# 4

Hi snjezana,

Thanks so much for helping me out. I am really grateful and as a reward here is your Duke Dollars!

Yes the issue was infact with the Filename.. and i too didnt notice it as the download was handled by a download manager.. so i renamed it and it worked just fine.

Yes the solution is great. But as given in the other thread , the way to create a domain manually using the #asadmin create-domain command, I didnt understand it very well. If you could be kind enough to explain this a bit better & how to go about it. I would be grateful. Thanks a lot.

arijit_datta at 2007-7-6 21:58:00 > top of Java-index,Application & Integration Servers,Application Servers...
# 5

Just to be absolutely clear: if you renamed the distribution file and reinstalled, you don't have to worry about manual domain creation at all - you do have full installation now.

Manual domain creation would mean that you fix your existing (failed) installation and manually perform server configuration step which failed during your initial installation. You would do that by running 'asadmin create-domain' command from Windows command prompt. This was recommended as the solution in that thread since we did not know why exactly the initial installation failed, but it is certainly preferable to simply rename the distribution file and run clean installation end-to-end.

If you want more generic information about 'asadmin create-domain' command you can take a look at appropriate product documentation:

http://docs.sun.com/app/docs/doc/819-4724/6n6rubc9f?a=view

Snjezana at 2007-7-6 21:58:00 > top of Java-index,Application & Integration Servers,Application Servers...
# 6
Hey.. Thnaks a lot..The documentation proved to be very useful.
arijit_datta at 2007-7-6 21:58:00 > top of Java-index,Application & Integration Servers,Application Servers...