Recent changes in network-listener config broke EJB embedded tests

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Recent changes in network-listener config broke EJB embedded tests

Marina Vatkina-2
EJB embeddable container suppresses services that won't be necessary for
regular testing of local EJBs. One of such services is a Web container.
We do it by modifying domain.xml on the fly and using that temporary
version during the run.

Unfortunately today's tests on hudson failed with

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:460)
     [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:961)
     [java] at org.jvnet.hk2.config.Dom.invoke(Dom.java:914)
     [java] at org.glassfish.config.support.TranslatedConfigView.invoke(TranslatedConfigView.java:131)
     [java] at $Proxy30.getAdminListener(Unknown Source)
     [java] at com.sun.enterprise.v3.admin.adapter.AdminEndpointDecider.setValues(AdminEndpointDecider.java:118)
     [java] at com.sun.enterprise.v3.admin.adapter.AdminEndpointDecider.<init>(AdminEndpointDecider.java:84)
     [java] at com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter.init(AdminConsoleAdapter.java:507)
     [java] at com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter.postConstruct(AdminConsoleAdapter.java:465)

The tests are located under v2/appserv-tests/devtests/ejb/ejb31/embedded and can be executed with a count of passed/failed/etc via 'ant all-report'

-marina


Reply | Threaded
Open this post in threaded view
|

Re: Recent changes in network-listener config broke EJB embedded tests

Marina Vatkina-2
I filed http://java.net/jira/browse/GLASSFISH-18320

-marina

Marina Vatkina wrote:

> EJB embeddable container suppresses services that won't be necessary
> for regular testing of local EJBs. One of such services is a Web
> container. We do it by modifying domain.xml on the fly and using that
> temporary version during the run.
>
> Unfortunately today's tests on hudson failed with
>
> 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:460)
>
>     [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:961)
>     [java]     at org.jvnet.hk2.config.Dom.invoke(Dom.java:914)
>     [java]     at
> org.glassfish.config.support.TranslatedConfigView.invoke(TranslatedConfigView.java:131)
>
>     [java]     at $Proxy30.getAdminListener(Unknown Source)
>     [java]     at
> com.sun.enterprise.v3.admin.adapter.AdminEndpointDecider.setValues(AdminEndpointDecider.java:118)
>
>     [java]     at
> com.sun.enterprise.v3.admin.adapter.AdminEndpointDecider.<init>(AdminEndpointDecider.java:84)
>
>     [java]     at
> com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter.init(AdminConsoleAdapter.java:507)
>
>     [java]     at
> com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter.postConstruct(AdminConsoleAdapter.java:465)
>
>
> The tests are located under
> v2/appserv-tests/devtests/ejb/ejb31/embedded and can be executed with
> a count of passed/failed/etc via 'ant all-report'
>
> -marina
>
>