dev@glassfish.java.net

Re: [v3] application information registered in domain.xml now

From: Pramod Gopinath <Pramod.Gopinath_at_Sun.COM>
Date: Fri, 22 Feb 2008 11:04:06 -0800

Hi Hong
  I saw Ur checkin related to the deployment information for an
application being registered to the domain.xml. I am using the code bits
that have been checked out today morning.

Not sure if U mentioned this but wanted to point one issue that I am
running into w.r.t contextroot specified on the asadmin deploy command.
This is not being saved into the domain.xml and hence the server is
brought down and up, get this exception stack trace :

java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:396)
        at java.util.Properties.setProperty(Properties.java:128)
        at
com.sun.enterprise.v3.services.impl.ApplicationLoaderService.populateDeployParamsFromDomainXML(ApplicationLoaderService.java:377)
        at
com.sun.enterprise.v3.services.impl.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:214)
        at
com.sun.enterprise.v3.services.impl.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:114)
        at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:114)
        at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:50)
        at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:39)
        at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:22)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:71)
        at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:19)
        at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:125)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:388)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:351)
        at com.sun.enterprise.module.bootstrap.Main.start(Main.java:154)
        at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:70)


For now I am able to work around it, by adding this entry
"--context-root = "/xxxx" to the entry :
<application directory-deployed="true" object-type="user" enabled="true"
location="file:/Users/pramodgopinath/work_related/jruby_samples/rails1.x/hello/"
name="hello">
in the domain.xml,

Thanks
Pramod