dev@glassfish.java.net

some recent change broke EJB embedded tests

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Wed, 20 Jul 2011 17:58:40 -0700

EJB container, to startup quickly, creates a temp version of the
domain.xml. Something happened between yesterday morning and now (the
tests didn't run on hudson today for an unknown reason):

     [java] Caused by: java.lang.IllegalStateException: Can't operate
without at least one <network-listener>
     [java] at
com.sun.enterprise.config.util.ServerHelper.getAdminListener(ServerHelper.java:164)
     [java] at
com.sun.enterprise.config.serverbeans.Config$Duck.getAdminListener(Config.java:625)
     [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] at java.lang.reflect.Method.invoke(Method.java:597)
     [java] at org.jvnet.hk2.config.Dom.invokeDuckMethod(Dom.java:948)
     [java] at org.jvnet.hk2.config.Dom.invoke(Dom.java:901)
     [java] at
org.glassfish.config.support.TranslatedConfigView.invoke(TranslatedConfigView.java:119)
     [java] at $Proxy26.getAdminListener(Unknown Source)
     [java] at
com.sun.enterprise.config.serverbeans.Config$Duck.addIndex(Config.java:633)
     [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] at java.lang.reflect.Method.invoke(Method.java:597)
     [java] at org.jvnet.hk2.config.Dom.invokeDuckMethod(Dom.java:948)
     [java] at org.jvnet.hk2.config.Dom.invoke(Dom.java:901)
     [java] at
org.glassfish.config.support.TranslatedConfigView.invoke(TranslatedConfigView.java:119)
     [java] at $Proxy26.addIndex(Unknown Source)
     [java] at
org.glassfish.config.support.DomainXml.decorate(DomainXml.java:149)
     [java] at
org.glassfish.config.support.DomainXml.run(DomainXml.java:140)
     [java] at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.populateConfig(AbstractModulesRegistryImpl.java:179)
     [java] at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:158)

-marina