Hi all,
        i am experiencing problems in connecting to teh MBean server embedded in
Jboss 3.2.1
i have been using for long time jboss 3.0.2 without any problems. today i have
downloaded the latest version of jboss, deployed my applicaiton (which registers 2 
MBeans
with Mbean server) and got the following exception:

17:13:22,050 ERROR [Engine] ----- Root Cause -----
java.lang.NoClassDefFoundError: org/jboss/util/jmx/MBeanServerLocator
        at com.marco.config.JBossJMXAgent.connectToServer(Unknown Source)
        at com.marco.config.JBossJMXAgent.<init>(Unknown Source)
        at com.marco.ActionServlet.init(Unknown Source)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:935)
        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
a:668)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV


i have written an agent that connects to jboss mbean server and registers two MBeans.
code is as following:

package com.marco.config;
import org.jboss.util.jmx.*;
import javax.management.*;

public class JBossJMXAgent implements JMXAgent {

        private MBeanServer _server;
        
        public JBossJMXAgent() {
                try {
                        System.err.println("JBossJMXAgent.connecting to JMX 
Server...");
                        connectToServer();
                } catch(Exception e) {
                        System.err.println("JBossJMXAgent. Failed to connect to 
server!\n" +
                                                                e.toString());
                }
        }

        private void connectToServer() throws Exception {
                _server = org.jboss.util.jmx.MBeanServerLocator.locate();
                // TODO Auto-generated method stub

        }
....
}

what am i missing? if i got no class def found exception, either i the 
MBeanServerLocator has
changed package, or i have to configure something else (that at the moment i don't 
know)

i m runnign jboss version as mentioned in subject on a Compaq armada m700, which has 
installed
Windows 2K and java 1.3.1_07

anyone can help?

thanx in advance and regards
        marco


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to