I am trying to run multip instances of JBoss on a single machine. I see that 
Tomcat ports are handled bings file by use of XSLT. I like to apply this to 
rest of the ports. I started with RMI port and here is the xsl that I am using:

<service-config name="jboss:service=Naming"
         delegateClass="org.jboss.services.binding.XSLTConfigDelegate" >
         <delegate-config>
            <xslt-config configName="Port"><![CDATA[
                            <xsl:stylesheet
                            xmlns:xsl='http://www.w3.org/1999/XSL/Transform' 
version='1.0'>
                            <xsl:output method="xml" />
                           <xsl:param name="port"/>
                           <xsl:variable name="port" select="$port - 731"/>
                           <xsl:template match="*">
                           <xsl:value-of select="$port"/>
                           </xsl:template>
                           </xsl:stylesheet>
                           ]]>
                   </xslt-config>
         </delegate-config>
         
      </service-config>

Am I using the wrong delegate? 
But this is throwing the following exception:

08:55:23,668 WARN  [ServiceConfigurator] Failed to apply service binding 
override
java.lang.ClassCastException: java.lang.String
        at 
org.jboss.services.binding.XSLTConfigDelegate.applyConfig(XSLTConfigDelegate.java:73)
        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:585)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.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.system.ServiceConfigurator.configure(ServiceConfigurator.java:375)
        at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:164)
        at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
        at 
org.jboss.system.ServiceController.install(ServiceController.java:202)
        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:585)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.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 org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925823#3925823

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925823


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to