5 Replies Latest reply on Jan 22, 2004 4:38 AM by mlange

    binding management + jnpPort + rmiPort

    rouvi

       

      "rouvi" wrote:
      Hi,

      I use the Binding Management as described in the documentation (JBoss Administration and Development).

      In my file "binding-service.xml" I have the following configuration :

      <service-config name="jboss:service=Naming" delegateClass="org.jboss.services.binding.AttributeMappingDelegate"
      >
      <delegate-config portName="RmiPort"/>
      <binding port="11098" />

      <delegate-config portName="Port"/>
      <binding port="11099" />
      </service-config>

      If "RmiPort" comes first, the rmiPort is changed.
      If "Port" comes first, the jnpPort is changed.
      BUT IT'S NOT possible to change the two ports.

      Using one <service-config>...</service-config> for each port doesn't help.

      If I modify the ports in the file
      jboss-service.xml
      than all is OK.

      How can I change those ports using the Services Binding Management ?

      Thank you for your help.


        • 1. Re: binding management + jnpPort + rmiPort

           

          "juha@jboss.org" wrote:
          "juha@jboss.org" wrote:
          If that doesn't work, please submit either a patch or a bug report to sourceforge.

          -- Juha


          • 2. Re: binding management + jnpPort + rmiPort
            rouvi

             

            "rouvi" wrote:
            Bug submitted.
            ([ 856973 ] binding management + jnpPort + rmiPort)

            Best regards.
            Jean-Claude


            • 3. Re: binding management + jnpPort + rmiPort
              starksm64

               

              "starksm" wrote:
              You can already do this using:

              <service-config name="jboss:service=Naming"
              delegateClass="org.jboss.services.binding.AttributeMappingDelegate"
              >
              <delegate-config portName="Port" hostName="BindAddress">
              <attribute name="RmiPort">1098</attribute>
              </delegate-config>
              <binding port="1099" host="${jboss.bind.address}"/>
              </service-config>


              • 4. Re: binding management + jnpPort + rmiPort
                rouvi

                 

                "rouvi" wrote:
                It doesn' work !
                (please see
                https://sourceforge.net/tracker/?func=detail&atid=376685&aid=856973&group_id=22866
                )

                We are using :
                JBoss 3.2.2 (build: CVSTag=JBoss_3_2_2 date=200310182216)

                boot.log:
                14:11:20,437 WARN [ServiceConfigurator] Failed to apply service binding override
                javax.management.InvalidAttributeValueException: Attribute value mismatch while setting 'RmiPort': java.lang.String
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.setAttribute(ReflectedMBeanDispatcher.java:215)
                at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:500)
                at org.jboss.services.binding.AttributeMappingDelegate.applyConfig(AttributeMappingDelegate.java:100)
                at org.jboss.services.binding.ServiceBindingManager.applyServiceConfig(ServiceBindingManager.java:174)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                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.system.ServiceConfigurator.configure(ServiceConfigurator.java:415)
                at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:176)
                at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
                at org.jboss.system.ServiceController.install(ServiceController.java:225)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                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)
                at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                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 $Proxy5.deploy(Unknown Source)
                at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
                at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
                at org.jboss.Main.boot(Main.java:150)
                at org.jboss.Main$1.run(Main.java:395)
                at java.lang.Thread.run(Thread.java:536)

                server.log:
                2003-12-09 14:11:21,906 INFO [org.jboss.naming.NamingService] Started jnpPort=1099, rmiPort=0, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076


                • 5. Re: binding management + jnpPort + rmiPort
                  mlange

                   

                  "mlange" wrote:
                  Does anybody know how to make this work in 3.2.2? I have tried to use the bindingservice-plugin.jar from 3.2.3 but this does not help too. I always get the error:

                  WARN [ServiceConfigurator] Failed to apply service binding override
                  javax.management.InvalidAttributeValueException: Attribute value mismatch while setting 'RmiPort': java.lang.String
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.setAttribute(ReflectedMBeanDispatcher.java:215)
                  at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:500)
                  at org.jboss.services.binding.AttributeMappingDelegate.applyConfig(AttributeMappingDelegate.java:100)
                  at org.jboss.services.binding.ServiceBindingManager.applyServiceConfig(ServiceBindingManager.java:174)

                  In 3.2.3 everything is ok. What do I have to change to override the RmiPort in 3.2.2?

                  Thanks!

                  -marek