• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why failed to start server?  RSS feed

 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

I am fresh to J2EE and now face a simple problem. Under Windows2000, I tried to start the server in way: Programs->Sun Microsystems->Application Server PE->Start Default Server .
The result which printed in the screen is like:
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 doma
in name or the --domaindir option.
CLI156 Could not start the domain domain1.
So why cant start the server? Could anyone help me?
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it looks like that your application server is not installed correctly.
you may do one of the following :

1-uninstall the application server and install it again
2-create a new domain using the following sequence :

-apps_home\bin\asadmin.bat
now enter something like :
create-domain --adminport 8080 --instanceport 80 --domaindir c:/apps/domains smfdomain --adminuser admin

please report back if your domain creation faild
 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Masoud,

Thanks for your reply. I did what u told me to do, the result is as:
asadmin> create-domain --adminport 8080 --instanceport 80 --domaindir D:\Sun\App
Server/domains smfdomain --adminuser admin
Usage: create-domain [--terse=false] [--echo=false] [--interactive=true] [--doma
indir domain_directory] --adminport port_number --adminuser admin [--passwordfil
e filename ] [--instanceport port_number] [--savemasterpassword=false] [--domain
properties (name=value)[:name=value]*] domain_name
CLI019 Invalid number of operands. Number of operands should be equal to 1.
asadmin>


my app_home is D:\Sun\AppServer. So what is wrong about this time?
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aha , that was a typo in the domain creation command , here is the correct command

 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Masoud,

The result of this time is different from privious, like:
Use "exit" to exit and "help" for online help.
asadmin> create-domain --adminport 8080 --instanceport 80 --domaindir D:\domains
--adminuser admin smfdomain
Please enter the admin password>
Please enter the admin password again>
Please enter the master password>
Please enter the master password again>
Using default port 7676 for JMS.
Using default port 3700 for IIOP.
Using default port 8181 for HTTP_SSL.
Using default port 3820 for IIOP_SSL.
Using default port 3920 for IIOP_MUTUALAUTH.
Using default port 8686 for JMX_ADMIN.
Domain smfdomain created.
WARNING: Existing user preference file .asadminprefs has been detected in your h
ome directory. Application Server administration commands will attempt to use a
dmin user name and password stored in this file and this may cause unexpected be
havior and security issues. It is recommended that you delete this file prior t
o using this new domain, smfdomain.
asadmin>

I can also see a new package called domains created in /bin directory. But I still cant start the default server.
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is good news , it means that you have create a domain successfully.

now to make sure that youu have a domain created use :


comman in asadmin environment. it will show you what domains you and what is thier names.

after that you can start a domain using :
1-startserv.bat command inside domains\doman_name\bin folder

2-using asadmin environment , something like :


you can obtain domain name using
list-domains command inside asadmin env
 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I still have some questions:
1. When use command list-domains, the result is as:
asadmin> list-domains
CLI141 No Domains to list.
Command list-domains executed successfully.

Also can start smfdomain. Why?
2. In the app_home there is a package called domains, should the created domain be located in such a directory?
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
list-domains list domains that are under default domains directory
apps_home/domains , it looks that you create the domain in another directory , so you need to use --domaindir to address the domain directory that you want to start.


or you can create a domain in default domain directory :
 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Masoud,

I want to show you the result like:
Use "exit" to exit and "help" for online help.
asadmin> create-domain --adminport 8080 --instanceport 80 --domaindir D:\Sun\AppServer\domains --adminuser admin smfdomain
Please enter the admin password>
Please enter the admin password again>
Please enter the master password>
Please enter the master password again>
Using default port 7676 for JMS.
Using default port 3700 for IIOP.
Using default port 8181 for HTTP_SSL.
Using default port 3820 for IIOP_SSL.
Using default port 3920 for IIOP_MUTUALAUTH.
Using default port 8686 for JMX_ADMIN.
Domain smfdomain created.
WARNING: Existing user preference file .asadminprefs has been detected in your h
ome directory. Application Server administration commands will attempt to use a
dmin user name and password stored in this file and this may cause unexpected be
havior and security issues. It is recommended that you delete this file prior t
o using this new domain, smfdomain.
asadmin>

And this time a package called SunAppServerdomains created in \bin\ directory.
 
Ali Aman
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have experienced the same thing
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!