6 Replies Latest reply on Sep 24, 2008 4:08 AM by Arul Kumar

    Jboss CR2 - ServiceBindingManager Exception

    Arul Kumar Newbie

      I got the below exception while migrating from 4.2 to 5 cr2

      Caused by: java.lang.NoSuchMethodException: org.jboss.services.binding.ServiceBindingManager.()
      at java.lang.Class.getConstructor0(Class.java:2647)
      at java.lang.Class.getConstructor(Class.java:1629)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1241)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
      at org.jboss.system.ServiceCreator.installPlainMBean(ServiceCreator.java:197)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:115)


      Here is my service binding mbean configuration in jboss-service.xml

      <mbean code="org.jboss.services.binding.ServiceBindingManager"
       name="jboss.system:service=ServiceBindingManager">
       <attribute name="ServerName">default</attribute>
       <attribute name="StoreURL">../../config/jboss/service-bindings/${jboss.service.bindings.filename}</attribute>
       <attribute name="StoreFactoryClassName">
       org.jboss.services.binding.XMLServicesStoreFactory
       </attribute>
       </mbean>
      

      In Jboss CR1 version , The ServiceBindingManager.java does not have any constructor. But In CR2 I could see a two argument constructor and also noticed couple of other changes too.

      I am not sure the above configuration needs to be updated to work under CR2

      I appreciate your help on this