Announcement Announcement Module
Collapse
No announcement yet.
Using Jetty's JMX in spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using Jetty's JMX in spring

    Hi

    Has anyone been able to get the org.mortbay.jetty.jmx.ServerMBean service explosed an a Mbean using Spring JMX.

    I startup Jetty and load the spring context via web.xml.

    On statup I get the following message

    Creating shared instance of singleton bean 'jettyJMX'
    2005-06-30 20:14:48,764 org.mortbay.util.jmx.ModelMBeanImpl WARN operation addListener
    java.lang.ClassNotFoundException: org.mortbay.http.HttpListener
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.mortbay.http.ContextLoader.loadClass(ContextLo ader.java:227)
    at org.mortbay.http.ContextLoader.loadClass(ContextLo ader.java:195)
    at org.mortbay.util.jmx.ModelMBeanImpl.defineOperatio n(ModelMBeanImpl.java:546)
    at org.mortbay.util.jmx.ModelMBeanImpl.defineOperatio n(ModelMBeanImpl.java:507)
    at org.mortbay.http.jmx.HttpServerMBean.defineManaged Resource(HttpServerMBean.java:104)
    at org.mortbay.jetty.jmx.ServerMBean.defineManagedRes ource(ServerMBean.java:93)
    at org.mortbay.util.jmx.ModelMBeanImpl.setManagedReso urce(ModelMBeanImpl.java:288)
    at org.mortbay.http.jmx.HttpServerMBean.<init>(HttpSe rverMBean.java:64)

    If anyone has managed to get it going please can you send me sample config used.

    Using spring 1.2.1, Jetty 5.13

    Thanks

    Bill

  • #2
    Bill,

    I'm not in anyway an expert on Jetty but it seems that the configuration you are loading does not have the necessary classes loaded.

    I found this on the Jetty web site: http://jetty.mortbay.org/jetty/project/jmx.html

    Let me know if this helps.

    Regards,

    Rob

    Comment

    Working...
    X