users@glassfish.java.net

Re: CLI130 Could not create domain, domain1

From: <glassfish_at_javadesktop.org>
Date: Thu, 17 Apr 2008 07:59:55 PDT

Here's the full output after making the changes and running command you requested:

[i]
C:\glassfish>asadmin create-domain --portbase 5000 foo
++++++++++++++++++++++++++++ Command loaded from file and it is create-domain 1
| {adminport string null,adminuser string null,adminpassword string null,user
 string u, null,password string w, null,interactive boolean I, true,profile stri
ng null,template string null,terse boolean t, false,echo boolean e, false,inst
anceport string null,domainproperties string null,portbase string null,path s
tring null,domaindir string null,passwordfile string null,checkports boolean
 true,masterpassword string null,savemasterpassword boolean false,savelogin bo
olean false,} | } | | } | create-domain [--user admin] [--adminport port_numbe
r] [--terse=false] [--echo=false] [--interactive=true] [--domaindir domain_direc
tory] [--profile profile_name] [--template domain_template] [--passwordfile fil
ename ] [--instanceport port_number] [--savemasterpassword=false] [--domainprope
rties (name=value)[:name=value]*] [--portbase portbase] [--savelogin=false] [--c
heckports=true] domain_name {}
basePackage: com.sun.enterprise.cli.commands
propertyFile: LocalStrings
basePackage: com.sun.enterprise.cli.commands
propertyFile: LocalStrings
**** insert Default Options interactive true
**** insert Default Options terse false
**** insert Default Options echo false
**** insert Default Options checkports true
**** insert Default Options savemasterpassword false
**** insert Default Options savelogin false
Reading asadminenv.conf file
asadminenv.conf: set the following options: profile=developer
asadminenv.conf: set the following options: secure=false
asadminenv.conf: set the following options: port=4848
Port =5048
Port =5080
Port =5081
Port =5038
Port =5039
Port =5076
Port =5037
Port =5086
CLI146 .asadminprefs does not exist in the file system or read permission denied
.
CLI146 .asadminprefs does not exist in the file system or read permission denied
.
Please enter the admin user name>admin
Please enter the admin password>
com.sun.enterprise.cli.framework.CommandValidationException: Usage: create-domai
n [--user admin] [--adminport port_number] [--terse=false] [--echo=false] [--int
eractive=true] [--domaindir domain_directory] [--profile profile_name] [--templa
te domain_template] [--passwordfile filename ] [--instanceport port_number] [--
savemasterpassword=false] [--domainproperties (name=value)[:name=value]*] [--por
tbase portbase] [--savelogin=false] [--checkports=true] domain_name
CLI128 Password for admin password must have 8 or more characters.
        at com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:1
81)
        at com.sun.enterprise.cli.framework.CLIMain.main(CLIMain.java:79)

Usage: create-domain [--user admin] [--adminport port_number] [--terse=false] [-
-echo=false] [--interactive=true] [--domaindir domain_directory] [--profile prof
ile_name] [--template domain_template] [--passwordfile filename ] [--instancepo
rt port_number] [--savemasterpassword=false] [--domainproperties (name=value)[:n
ame=value]*] [--portbase portbase] [--savelogin=false] [--checkports=true] domai
n_name
CLI128 Password for admin password must have 8 or more characters.

C:\glassfish>asadmin create-domain --portbase 5000 foo
++++++++++++++++++++++++++++ Command loaded from file and it is create-domain 1
| {adminport string null,adminuser string null,adminpassword string null,user
 string u, null,password string w, null,interactive boolean I, true,profile stri
ng null,template string null,terse boolean t, false,echo boolean e, false,inst
anceport string null,domainproperties string null,portbase string null,path s
tring null,domaindir string null,passwordfile string null,checkports boolean
 true,masterpassword string null,savemasterpassword boolean false,savelogin bo
olean false,} | } | | } | create-domain [--user admin] [--adminport port_numbe
r] [--terse=false] [--echo=false] [--interactive=true] [--domaindir domain_direc
tory] [--profile profile_name] [--template domain_template] [--passwordfile fil
ename ] [--instanceport port_number] [--savemasterpassword=false] [--domainprope
rties (name=value)[:name=value]*] [--portbase portbase] [--savelogin=false] [--c
heckports=true] domain_name {}
basePackage: com.sun.enterprise.cli.commands
propertyFile: LocalStrings
basePackage: com.sun.enterprise.cli.commands
propertyFile: LocalStrings
**** insert Default Options interactive true
**** insert Default Options terse false
**** insert Default Options echo false
**** insert Default Options checkports true
**** insert Default Options savemasterpassword false
**** insert Default Options savelogin false
Reading asadminenv.conf file
asadminenv.conf: set the following options: profile=developer
asadminenv.conf: set the following options: secure=false
asadminenv.conf: set the following options: port=4848
Port =5048
Port =5080
Port =5081
Port =5038
Port =5039
Port =5076
Port =5037
Port =5086
CLI146 .asadminprefs does not exist in the file system or read permission denied
.
CLI146 .asadminprefs does not exist in the file system or read permission denied
.
Please enter the admin user name>admin
Please enter the admin password>
Please enter the admin password again>
Please enter the master password [Enter to accept the default]:>
Please enter the master password again [Enter to accept the default]:>
domainName = foo
Port =5048
Port =5080
domain properties = {orb.listener.port=5037, domain.jmxPort=5086, jms.port=5076,
 orb.ssl.port=5038, orb.mutualauth.port=5039, http.ssl.port=5081}
Using port 5048 for Admin.
Using port 5080 for HTTP Instance.
Using port 5076 for JMS.
Using port 5037 for IIOP.
Using port 5081 for HTTP_SSL.
Using port 5038 for IIOP_SSL.
Using port 5039 for IIOP_MUTUALAUTH.
Using port 5086 for JMX_ADMIN.
Domain being created with profile:developer, as specified by variable AS_ADMIN_P
ROFILE in configuration file.
Security Store uses: JKS

**** Executing command:
c:\java6\jre/../bin/keytool
-genkey
-keyalg
RSA
-keystore
C:\glassfish\domains\foo\config\keystore.jks
-alias
s1as
-dname
CN=lw-ct-comerfos.Corp.Espn3.com,OU=Sun Java System Application Server,O=Sun Mic
rosystems,L=Santa Clara,ST=California,C=US
-validity
3650
-keypass
adminadmin
-storepass
adminadmin
-J-Dsun.security.internal.keytool.skid

com.sun.enterprise.cli.framework.CommandException: CLI130 Could not create domai
n, foo
        at com.sun.enterprise.cli.commands.CreateDomainCommand.runCommand(Create
DomainCommand.java:299)
        at com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:1
71)
        at com.sun.enterprise.cli.framework.CLIMain.main(CLIMain.java:79)
Caused by: com.sun.enterprise.admin.servermgmt.DomainException:
        at com.sun.enterprise.admin.servermgmt.pe.PEDomainsManager.createDomain(
PEDomainsManager.java:193)
        at com.sun.enterprise.ee.admin.servermgmt.EEDomainsManager.createDomain(
EEDomainsManager.java:170)
        at com.sun.enterprise.cli.commands.CreateDomainCommand.createTheDomain(C
reateDomainCommand.java:468)
        at com.sun.enterprise.cli.commands.CreateDomainCommand.runCommand(Create
DomainCommand.java:294)
        ... 2 more
Caused by: com.sun.enterprise.admin.servermgmt.RepositoryException:
        at com.sun.enterprise.admin.servermgmt.KeystoreManager$KeytoolExecutor.e
xecute(KeystoreManager.java:127)
        at com.sun.enterprise.admin.servermgmt.KeystoreManager.createKeyStore(Ke
ystoreManager.java:205)
        at com.sun.enterprise.admin.servermgmt.KeystoreManager.createSSLCertific
ateDatabase(KeystoreManager.java:175)
        at com.sun.enterprise.ee.admin.servermgmt.EEDomainsManager.createSSLCert
ificateDatabase(EEDomainsManager.java:234)
        at com.sun.enterprise.admin.servermgmt.pe.PEDomainsManager.createDomain(
PEDomainsManager.java:175)
        ... 5 more
Caused by: com.sun.enterprise.util.ExecException:
        at com.sun.enterprise.util.ProcessExecutor.execute(ProcessExecutor.java:
341)
        at com.sun.enterprise.util.ProcessExecutor.execute(ProcessExecutor.java:
246)
        at com.sun.enterprise.util.ProcessExecutor.execute(ProcessExecutor.java:
229)
        at com.sun.enterprise.admin.servermgmt.KeystoreManager$KeytoolExecutor.e
xecute(KeystoreManager.java:121)
        ... 9 more

CLI130 Could not create domain, foo[/i]
[Message sent by forum member 'kingseanc' (kingseanc)]

http://forums.java.net/jive/thread.jspa?messageID=269779