0 Replies Latest reply on Jan 18, 2006 10:02 AM by Saroj Kachhwal

    How to publish JNDI names for Websphere MQ JMS administered

    Saroj Kachhwal Newbie

      I am using jboss-4.0.2 (windows) with jdk 1.4. and Websphere MQ JMS implementation. I want to publish administered objects that is Connectionfactory(Queue Manager) and Queues into Jboss JNDI through MBean option. I went thru "Using WebSphere MQ Series with JBossAS Part I" from wiki on the following link
      http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingWebSphereMQSeriesWithJBossASPartI
      and tried to do the same to achieve this. I downloaded the zip attached on the link and used the source to impl the Mbean.
      When deploying it is giving errors on jboss console like:
      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
      :143)
      at org.jboss.system.ServiceController.install(ServiceController.java:202
      )
      at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:220)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:121)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:325)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:483)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:204)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:215)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:194)
      Caused by: java.lang.reflect.UndeclaredThrowableException
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:203)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
      tor.java:153)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
      :118)
      ... 33 more
      Caused by: java.lang.NoClassDefFoundError: com/ibm/mq/jms/MQTopic
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
      at java.lang.Class.getConstructor0(Class.java:1922)
      at java.lang.Class.getConstructor(Class.java:1019)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
      1217)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
      271)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
      329)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:124)
      ... 35 more

      Can you tell me the reason why it is giving such error and its solution please?
      I am running short of time and new to JBOSS also..
      Your instant help would be of gr8 help.
      Thanks in advance...