Hello,
This does not help me further.

I try do do something different now.

How can I use the mx4j HTTP-Adaptor with Jboss?
I am not able to register my http-Adaptor Bean as described in the mx4j Manual.

http://mx4j.sourceforge.net/docs/ch05.html

I use:

  | InitialContext ic = new InitialContext();
  |        this.server = (RMIAdaptor) ic.lookup("jmx/invoker/RMIAdaptor");
  | 

and then to register the http-adaptor:

  |   ObjectName nameHttp = new ObjectName("Server:name=HttpAdaptor");
  |         indi.server.createMBean("mx4j.tools.adaptor.http.HttpAdaptor", 
nameHttp, null);
  |        server.setAttribute(nameHttp, new Attribute("Port", new 
Integer("8080")));
  |        server.setAttribute(nameHttp, new Attribute("Host", "localhost"));
  |        server.invoke(nameHttp, "start", null, null);
  | 

getting the Excetion:


  | RuntimeErrorException: instantiating mx4j.tools.adaptor.http.HttpAdaptor 
failed: java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
  | 
  | Cause: java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
  | 
  | at 
org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBeanServerImpl.java:942)
  | 
  | at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:875)
  | 
  | at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:290)
  | 
  | at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:267)
  | 
  | at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:310)
  | 
  | ...
  | 
  | 

Best regards

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944844#3944844

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944844


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to