0 Replies Latest reply on Apr 22, 2004 11:23 AM by columod

    SSLB's and MBeans

    columod

      hi all,
      i'm new to JBX so apologies if this question sounds niave.
      I've an application which has a number of stateless session beans running the business logic. I'd like to expose some of the methods on these beans to JMX so that i can manage the beans when they are deployed.
      However, i can' t seem to deploy the mbeans ;-( I've the session beans and mbean interfaces packages into a jar file and this jar file along with the corresponding jboss-service.xml file are packaged into a .sar. When i deploy the .sar i get the following error :

      2004-04-22 15:19:32,639 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/home/codea/applications/jboss-3.2.3/server/gmmh_node1/tmp/deploy/tmp31660gmmh.ear-contents/gmmh-mbean.sar
      org.jboss.deployment.DeploymentException: create operation failed for package file:/home/codea/applications/jboss-3.2.3/server/gmmh_node1/tmp/deploy/tmp31660gmmh.ear-contents/gmmh-mbean.sar; - nested throwable: (org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.InstantiationException))
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.InstantiationException)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:139)
      at org.jboss.system.ServiceController.install(ServiceController.java:225)
      at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
      ... 16 more




      if i convert the session bean into a plain java file it seems to work fine but this is not ideal as i need the other features of session beans.
      so my question is, is what i'm attempting possible/a good idea or are SSLB's just not mbeanable??

      thanks in advance,
      colum.