Skip to main content

setup.xml: can't create Windows domain

7 replies [Last post]
igncto
Offline
Joined: 2005-12-30

I am using build25. The output of ant -f setup.xml includes:

setup.init:

create.domain.windows:
[exec] Usage: create-domain [--terse=false] [--echo=false] [--interactive=true] [--domaindir domain_directory] --ad
minport port_number --adminuser admin [--passwordfile filename ] [--instanceport port_number] [--savemasterpassword=fals
e] [--domainproperties (name=value)[:name=value]*] domain_name
[exec] CLI019 Invalid number of operands. Number of operands should be equal to 1.

What am I doing wrong?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vbkraemer
Offline
Joined: 2003-09-03

I have filed a DEFECT issue for this.

See https://glassfish.dev.java.net/issues/show_bug.cgi?id=125.

vbkraemer
Offline
Joined: 2003-09-03

There are a number of things that could be wrong.

Build 25 is pretty old. I would upgrade to build 32 as a "first step".

I would also run 'ant -verbose -f setup.xml' instead of 'ant -f setup.xml' when you install the newer build. The dash-V option will produce a lot of output. If setup.xml runs successfully, you can discard it. If the problem persists, you should examine it and see if you see something that looks "wrong", folks will have more info to diagnose the issue.

vbk

rreganjr
Offline
Joined: 2004-08-13

I was getting the same error. the "-verbose" helped me figure it out.

I had installed in a folder that contained spaces in the name "C:\Program Files\Java\glassfish" and the create.domain.windows task doesn't quote the parameter values so if they contain spaces an error occurs. I updated the setup.xml and added a quote entity """ around the parameter value for the password path. Note this may look strange if the entity gets resolved when displayed:











rreganjr
Offline
Joined: 2004-08-13

I got too smaht for my own good the " should just be "

--passwordfile "${adminpassfile}"

igncto
Offline
Joined: 2005-12-30

You were correct about Program Files\glassfish. I reinstalled to c:\glassfish and it worked w/ build25. The reason I picked build25 is the Java EE5 blueprints suggest it.

What's the username/password for localhost:4848?

vbkraemer
Offline
Joined: 2003-09-03

The uname/password for the domain that is created by setup.xml is usually [username: admin; password: adminadmin].

I say usually, because there are ways to change it, but you would probably know them then.

vbk

igncto
Offline
Joined: 2005-12-30

Indeed password=adminadmin works.

Thank you for the help.