On 7/3/07, Jacek Laskowski <[EMAIL PROTECTED]> wrote:

Another issue I'm struggling with is to get at the information that
are displayed in the Geronimo Console. In JMX Viewer, there's
contextPath attribute for WebModule. Whenever a query for the
attribute is issued from a JMX Remote or MEJB client the following
exception is thrown:

Exception in thread "main"
javax.management.AttributeNotFoundException:  Cannot find attribute
contextPath for
StandardEngine[Geronimo].StandardHost[0.0.0.0].StandardContext[/console]
        at 
org.apache.tomcat.util.modeler.ManagedBean.getGetter(ManagedBean.java:490)
        at 
org.apache.tomcat.util.modeler.BaseModelMBean.getAttribute(BaseModelMBean.java:180)
...
            ObjectName searchpattern = new ObjectName("*:j2eeType=WebModule,*");

Figured it out - instead of * (the star) use 'geronimo' and it will
work beautifully (NB plugin gets better!).

Jacek

--
Jacek Laskowski
http://www.JacekLaskowski.pl

Reply via email to