dev@glassfish.java.net

Placeholder for instanceRoot in asadmin

From: Nithya Subramanian <Nithya.Subramanian_at_Sun.COM>
Date: Thu, 02 Sep 2010 08:55:52 +0530

Hi,

It appears that for the asadmin commands, the placeholder
${com.sun.aas.instanceRoot} is not getting translated into its proper
instance value - domains/domain-dir directory path.

This is causing command like this to fail (Glassfish Issue 13168)
 ./asadmin create-auth-realm --classname
com.sun.enterprise.security.auth.realm.file.FileRealm --property
'file=${com.sun.aas.instanceRoot}/config/testfile:jaas-context=fileJaax'

This instanceRoot placeholder is getting translated into its proper
value if specified directly in domain.xml. During an asadmin command, it
does not get translated.
This was found to be working until a while back. Have there been any
recent changes to the workspace that might have caused this?

Thanks
Nithya