-
1. Re: MBean classpath
adrian.brock May 16, 2002 10:54 AM (in response to pdmleng)For 2.4 I think your analysis is correct.
An MLet is an MBean so you could add the MLet to
jboss.jcml
Can you post the stack trace for the ClassNotFoundException?
Regards,
Adrian -
2. Re: MBean classpath
pdmleng May 16, 2002 11:41 AM (in response to pdmleng)Hi Adrian,
Thanks for your reply.
> For 2.4 I think your analysis is correct.
I'm glad to hear that ;-).
Is it different for 3.0?
> An MLet is an MBean so you could add the MLet to
> jboss.jcml
Yes, sure, but i couldn't find a way to pass classpath parameter with an tag in the jboss.jcml..... Did i miss something?
> Can you post the stack trace for the
> ClassNotFoundException?
See below; 'DateTimeSchedule' is the ejb's remote interface.
Thanks for your help,
Regards,
Pete
[ERROR,ContainerFactory] Verify failure
java.lang.NoClassDefFoundError: com/nedap/aeos/ac/domain/time/DateTimeSchedule
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getMethods(Class.java:742)
at org.jboss.verifier.strategy.AbstractVerifier.isRMIIDLRemoteInterface(AbstractVerifier.java:907)
at org.jboss.verifier.strategy.AbstractVerifier.isRMIIIOPType(AbstractVerifier.java:875)
at org.jboss.verifier.strategy.AbstractVerifier.hasLegalRMIIIOPReturnType(AbstractVerifier.java:157)
at org.jboss.verifier.strategy.EJBVerifier11.verifyEntityHome(EJBVerifier11.java:775)
at org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier11.java:121)
at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:465)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
at $Proxy0.start(Unknown Source)
at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.Main.(Main.java:208)
at org.jboss.Main$1.run(Main.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:106) -
3. Re: MBean classpath
adrian.brock May 16, 2002 12:50 PM (in response to pdmleng)Yes,
In 3.0, the MBean can see the EJB classes.
Both can be hotdeployed, although you'll need to
specify a dependency to make sure the EJB is loaded
before the MBean.
The classloading problem is caused because the home
interface returns a class from the ejb's jar
which isn't visible to home's classloader.
Regards,
Adrian -
4. Re: MBean classpath
pdmleng May 21, 2002 10:00 AM (in response to pdmleng)Ok, thanks Adrian.
From your mail i conclude that in 2.4.4 there is no solution, except for the (bit silly) workaround i descriped in my first post. Apparently, there is no way to set the classpath specifically for an mbean, for example by passing a specific attribute value with the tag in the jboss.jcml
Again, thanks for your help,
Regards,
Pete.