Lloyd L Chambers wrote:
> Anissa,
>
> You must be passing the nulls. When I use jmxcmd
>
> jmxcmd createVirtualServerConfig:test1,localhost,null
>
> I get this in domain.xml:
>
> <virtual-server hosts="localhost" id="test1" />
>
> Are you sure you're not passing null values in (possibly from getting
> default values that are null)?
I believe i do pass in NULL after creating the config object.
server.setLogFile(filepath); where filepath maybe NULL.
That is how we pass in for V2. It will be lots of work for us to go
through all the code to test if it is NULL before calling backend.
There are so many optional attributes.
If there is a superclass where it can be fixed so that null means
removing the optional attribute, it will certainly help. It will be
much safer that way too. It should never put in "null" as spelled out.
btw, if the optional map is not empty, i am getting an exception. Is
this a known issue:
INFO: last ARG = {property.accessLogBufferSize=5555,
property.sso-enabled=false,
property.docroot=${com.sun.aas.instanceRoot}/docroot,
property.accesslog=${com.sun.aas.instanceRoot}/logs/access}
Mar 28, 2008 3:42:57 PM
INFO: createConfig: createVirtualServerConfig, args = AAA, localhost,
{property.accessLogBufferSize=5555, property.sso-enabled=false,
property.docroot=${com.sun.aas.instanceRoot}/docroot,
property.accesslog=${com.sun.aas.instanceRoot}/logs/access}, types =
java.lang.String, java.lang.String, java.util.Map ===> numRequiredArgs =
2, optionalAttrs =
property.accessLogBufferSize=5555,property.accesslog=${com.sun.aas.instanceRoot}/logs/access,property.docroot=${com.sun.aas.instanceRoot}/docroot,property.sso-enabled=false
Mar 28, 2008 3:42:57 PM
INFO: createConfig: j2eeType = X-VirtualServerConfig, return type =
com.sun.appserv.management.config.VirtualServerConfig
Mar 28, 2008 3:43:16 PM
SEVERE: java.lang.reflect.UndeclaredThrowableException
SEVERE: Caused by: javax.management.MBeanException
Mar 28, 2008 3:43:16 PM
SEVERE: at
org.glassfish.admin.amx.config.AMXConfigImplBase.invokeManually(AMXConfigImplBase.java:1141)
Mar 28, 2008 3:43:16 PM
SEVERE: at
org.glassfish.admin.amx.mbean.AMXImplBase.invoke(AMXImplBase.java:1688)
Mar 28, 2008 3:43:16 PM
SEVERE: at
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
Mar 28, 2008 3:43:16 PM
SEVERE: at
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
Mar 28, 2008 3:43:16 PM
SEVERE: at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
Mar 28, 2008 3:43:16 PM
SEVERE: at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
Mar 28, 2008 3:43:16 PM
SEVERE: at
org.glassfish.admin.mbeanserver.AppserverMBeanServer.invoke(AppserverMBeanServer.java:184)
thanks
Anissa
>
> Lloyd
>
>
> On Mar 28, 2008, at 2:13 AM, Anissa Lam wrote:
>> - creating the config object,
>> If we don't set the optional attributes, it will be set to "null"
>> and written out to 'domain.xml' as "null".
>> eg.<virtual-server default-web-module="" state="on" hosts="localhost"
>> log-file="null" id="ABC" http-listeners="null" />
>
> ---
> Lloyd L Chambers
> lloyd.chambers_at_sun.com
> Sun Microsystems, Inc
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>