I think you need to throw naming exception and not remote exception in the
bean InterestBean.java. My reference code imports import javax.naming.*; to
the XXXBean.java class.
I base this on the topmost exception:
> javax.management.MBeanException: Exception thrown in the MBean's
> constructor
HTH,
BobK
> I've been having trouble getting any application to access the bean on
> the JBoss Server. It always comes up with the error below. Java files
[quoted text clipped - 17 lines]
> constructor
> at com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.instantiate(MBeanInstantiatorI
mpl.java:259)
> at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBe
anServerInterceptor.java:298)
> at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBe
anServerInterceptor.java:207)
> at
com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.java:405)
> at
org.jboss.system.client.ClientServiceMBeanSupport.internalReadResolve(Client
ServiceMBeanSupport.java:71)
> <snip>
> at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
> at
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:522)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:479)
[quoted text clipped - 3 lines]
> parsing the XML file:
> at
org.jboss.mx.metadata.JBossXMBean10.build(JBossXMBean10.java:117)
> at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:270)
> at org.jboss.mx.modelmbean.XMBean.<init>(XMBean.java:214)
> at org.jboss.mx.modelmbean.XMBean.<init>(XMBean.java:240)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
> at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> at com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.instantiate(MBeanInstantiatorI
mpl.java:234)
> ... 42 more
> Caused by: javax.management.RuntimeOperationsException: Exception
> occured in ModelMBeanOperationInfo constructor
> at
javax.management.modelmbean.ModelMBeanOperationInfo.<init>(ModelMBeanOperati
onInfo.java:278)
> at
org.jboss.mx.metadata.JBossXMBean10.buildOperationInfo(JBossXMBean10.java:35
3)
> at
org.jboss.mx.metadata.JBossXMBean10.buildMBeanMetaData(JBossXMBean10.java:22
1)
> at
org.jboss.mx.metadata.JBossXMBean10.build(JBossXMBean10.java:108)
> ... 50 more
> Caused by: java.lang.IllegalArgumentException: Invalid descriptor
[quoted text clipped - 106 lines]
> throws RemoteException, CreateException;
> }