10 Replies Latest reply on Jul 6, 2007 6:03 PM by BhaktavatsalamReddy

    :: Question On JBoss Clustering with Hibernate Second Level

    BhaktavatsalamReddy Newbie

      Hi,

      I having striving to do clustering on JBoss. It is giving lot of problems.
      Let me first give the environment I am using:
      => JBoss4.2. GA
      => JBossCache - Bundled along with JBoss installation
      => EJB 3.0
      => Hibernate 3.2.X

      Stateless Session Ejb communicates with Hibernates POJOs. Internally Hibernate using JBossCache as the second level Cache.

      It is working fine on Single machine without clustering.

      It is giving problem only on Clustering, but it is raising exceptions during the deployment time one or the other.

      I am providing the complete stack trace and configuration include iGroups related config stuff for the second level cache state transfer.

      Please let me know where am I going wrong.

      Here is the cluster-service.xml
      ===================
      <?xml version="1.0" encoding="UTF-8"?>

      <!-- ===================================================================== -->
      <!-- -->
      <!-- Clustering Service Configuration -->
      <!-- -->
      <!-- ===================================================================== -->



      <!-- ==================================================================== -->
      <!-- Cluster Partition: defines cluster -->
      <!-- ==================================================================== -->



      <!-- Name of the partition being built -->
      ${jboss.partition.name:DefaultPartition}

      <!-- The address used to determine the node name -->
      10.5.1.231

      <!-- Determine if deadlock detection is enabled -->
      False

      <!-- Max time (in ms) to wait for state transfer to complete. Increase for large states -->
      60000

      <!-- The JGroups protocol configuration -->


      The default UDP stack:
      - If you have a multihomed machine, set the UDP protocol's bind_addr attribute to the
      appropriate NIC IP address, e.g bind_addr="192.168.0.2".
      - On Windows machines, because of the media sense feature being broken with multicast
      (even after disabling media sense) set the UDP protocol's loopback attribute to true
      -->
      <!--
      <UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.3}"
      mcast_port="${jboss.hapartition.mcast_port:45566}"
      tos="8"
      ucast_recv_buf_size="20000000"
      ucast_send_buf_size="640000"
      mcast_recv_buf_size="25000000"
      mcast_send_buf_size="640000"
      loopback="false"
      discard_incompatible_packets="true"
      enable_bundling="false"
      max_bundle_size="64000"
      max_bundle_timeout="30"
      use_incoming_packet_handler="true"
      use_outgoing_packet_handler="false"
      ip_ttl="${jgroups.udp.ip_ttl:2}"
      down_thread="false" up_thread="false"/>
      <PING timeout="2000"
      down_thread="false" up_thread="false" num_initial_members="3"/>
      <MERGE2 max_interval="100000"
      down_thread="false" up_thread="false" min_interval="20000"/>
      <FD_SOCK down_thread="false" up_thread="false"/>
      <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
      <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
      <pbcast.NAKACK max_xmit_size="60000"
      use_mcast_xmit="false" gc_lag="0"
      retransmit_timeout="300,600,1200,2400,4800"
      down_thread="false" up_thread="false"
      discard_delivered_msgs="true"/>
      <UNICAST timeout="300,600,1200,2400,3600"
      down_thread="false" up_thread="false"/>
      <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
      down_thread="false" up_thread="false"
      max_bytes="400000"/>
      <pbcast.GMS print_local_addr="true" join_timeout="3000"
      down_thread="false" up_thread="false"
      join_retry_timeout="2000" shun="true"
      view_bundling="true"/>
      <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
      <pbcast.STATE_TRANSFER down_thread="false" up_thread="false" use_flush="false"/>
      -->

      <!-- Alternate TCP stack: customize it for your environment, change bind_addr and initial_hosts -->



      <TCP bind_addr="10.5.1.231" start_port="7800" loopback="true"
      tcp_nodelay="true"
      recv_buf_size="640000"
      send_buf_size="640000"
      discard_incompatible_packets="true"
      enable_bundling="false"
      max_bundle_size="64000"
      max_bundle_timeout="30"
      use_incoming_packet_handler="true"
      use_outgoing_packet_handler="false"
      down_thread="false" up_thread="false"
      use_send_queues="false"
      sock_conn_timeout="300"
      skip_suspected_members="true"/>
      <TCPPING initial_hosts="10.5.1.231[7800]" port_range="3"
      timeout="3000"
      down_thread="false" up_thread="false"
      num_initial_members="1"/>
      <MERGE2 max_interval="100000"
      down_thread="false" up_thread="false" min_interval="20000"/>
      <FD_SOCK down_thread="false" up_thread="false"/>
      <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
      <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
      <pbcast.NAKACK max_xmit_size="60000"
      use_mcast_xmit="false" gc_lag="0"
      retransmit_timeout="300,600,1200,2400,4800"
      down_thread="false" up_thread="false"
      discard_delivered_msgs="true"/>
      <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
      down_thread="false" up_thread="false"
      max_bytes="400000"/>
      <pbcast.GMS print_local_addr="true" join_timeout="3000"
      down_thread="false" up_thread="false"
      join_retry_timeout="2000" shun="true"
      view_bundling="true"/>
      <pbcast.STATE_TRANSFER down_thread="true" up_thread="true" use_flush="true"/>


      jboss:service=Naming

      Here is the treecache.xml
      =================
      <?xml version="1.0" encoding="UTF-8" ?>




      jboss:service=Naming
      jboss:service=TransactionManager

      org.jboss.cache.JBossTransactionManagerLookup

      PESSIMISTIC

      NONE

      LOCAL

      <!-- Clustering Related when the Second Level Cache Is Enabled -->
      0

      0

      false

      true

      false

      20000

      30000

      false

      40000

      ${jboss.partition.name:DefaultPartition}

      org.jboss.cache.eviction.LRUPolicy



      5

      10000
      3600
      86400


      5000
      3600
      3600


      5000
      3600
      3600


      5000
      3600
      3600


      5000
      3600
      3600


      5000
      3600
      3600


      5000
      3600
      3600


      5000
      3600
      3600






      false
      false


      org.jboss.cache.loader.FileCacheLoader

      location=treecache

      false
      true
      false
      true






      <TCP bind_addr="10.5.1.231" start_port="7800" loopback="true"
      tcp_nodelay="true"
      recv_buf_size="640000"
      send_buf_size="640000"
      discard_incompatible_packets="true"
      enable_bundling="false"
      max_bundle_size="64000"
      max_bundle_timeout="30"
      use_incoming_packet_handler="true"
      use_outgoing_packet_handler="false"
      down_thread="false" up_thread="false"
      use_send_queues="false"
      sock_conn_timeout="300"
      skip_suspected_members="true"/>
      <TCPPING initial_hosts="10.5.1.231[7800]" port_range="3"
      timeout="3000"
      down_thread="false" up_thread="false"
      num_initial_members="1"/>
      <MERGE2 max_interval="100000"
      down_thread="false" up_thread="false" min_interval="20000"/>
      <FD_SOCK down_thread="false" up_thread="false"/>
      <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
      <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
      <pbcast.NAKACK max_xmit_size="60000"
      use_mcast_xmit="false" gc_lag="0"
      retransmit_timeout="300,600,1200,2400,4800"
      down_thread="false" up_thread="false"
      discard_delivered_msgs="true"/>
      <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
      down_thread="false" up_thread="false"
      max_bytes="400000"/>
      <pbcast.GMS print_local_addr="true" join_timeout="3000"
      down_thread="false" up_thread="false"
      join_retry_timeout="2000" shun="true"
      view_bundling="true"/>
      <pbcast.STATE_TRANSFER down_thread="true" up_thread="true" use_flush="true"/>





      Her is the Hibernate config file:
      ====================
      true
      org.hibernate.cache.TreeCacheProvider
      true
      true
      true
      false
      <!-- Enable Second Level Caching -->
      <class-cache class="com.abc.hibernate.account.CompanyImpl" usage="transactional" region="CompanyImpl"/>
      <class-cache class="com.abc.hibernate.account.CompanyImpl" usage="transactional" region="LicenceImpl"/>

      <!-- collections caches -->
      <collection-cache collection="com.abc.hibernate.account.CompanyImpl.licenses" usage="transactional" region="CompanyImpl.licenses"/>

      Complete Stack Trace:
      18:36:03,703 ERROR [STDERR] [Fatal Error] :-1:-1: Premature end of file.
      18:36:03,765 ERROR [STDERR] %%%% Error Creating SessionFactory %%%%
      18:36:03,796 ERROR [STDERR] org.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: Premature end of file.; - nested throwable: (org.xml.sax.SAXParseException: Premature end of file.)
      at org.hibernate.cache.TreeCacheProvider.start(TreeCacheProvider.java:78)
      at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:183)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
      at com.rs.mambo.hibernate.session.HibernateSessionFactory.getSessionFactory(HibernateSessionFactory.java:64)
      at com.rs.mambo.hibernate.session.HibernateSessionFactory.currentSession(HibernateSessionFactory.java:50)
      at com.rs.mambo.ejb.session.config.ConfigurationBean.loadConfiguration(ConfigurationBean.java:32)
      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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
      at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
      at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
      at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
      at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
      at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
      at $Proxy205.loadConfiguration(Unknown Source)
      at com.rs.mambo.adapter.ConfigAdapter.loadConfiguration(ConfigAdapter.java:22)
      at com.rs.mambo.servlet.StartupServlet.init(StartupServlet.java:29)
      at javax.servlet.GenericServlet.init(GenericServlet.java:212)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4069)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4373)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
      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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
      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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
      at org.jboss.web.WebModule.startModule(WebModule.java:83)
      at org.jboss.web.WebModule.startService(WebModule.java:61)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor433.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy45.start(Unknown Source)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBean
      18:36:03,796 ERROR [STDERR] Support.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy46.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: org.jboss.util.NestedRuntimeException: Premature end of file.; - nested throwable: (org.xml.sax.SAXParseException: Premature end of file.)
      at org.jboss.util.propertyeditor.DocumentEditor.getAsDocument(DocumentEditor.java:88)
      at org.jboss.util.propertyeditor.ElementEditor.setAsText(ElementEditor.java:41)
      at org.jboss.cache.PropertyConfigurator.configure(PropertyConfigurator.java:252)
      at org.jboss.cache.PropertyConfigurator.configure(PropertyConfigurator.java:161)
      at org.hibernate.cache.TreeCacheProvider.start(TreeCacheProvider.java:69)
      ... 130 more
      Caused by: org.xml.sax.SAXParseException: Premature end of file.
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at org.jboss.util.propertyeditor.DocumentEditor.getAsDocument(DocumentEditor.java:79)
      ... 134 more
      18:36:03,796 ERROR [ExceptionUtil] ==========================================================
      18:36:03,796 ERROR [ExceptionUtil] ============== Exception ID: 1183685763796 ==============
      18:36:03,828 ERROR [ExceptionUtil] ============== Status Code : 2000 ==============
      18:36:03,828 ERROR [ExceptionUtil] ============== Exception Message : java.lang.NullPointerException ==============
      18:36:03,828 ERROR [ExceptionUtil] ============== Exception Class : class javax.ejb.EJBException ==============
      18:36:03,828 ERROR [ExceptionUtil] --------------- Root Cause Exception Trace ---------------
      18:36:03,828 ERROR [ExceptionUtil]
      java.lang.NullPointerException
      at com.rs.mambo.hibernate.session.HibernateSessionFactory.currentSession(HibernateSessionFactory.java:53)
      at com.rs.mambo.ejb.session.config.ConfigurationBean.loadConfiguration(ConfigurationBean.java:32)
      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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
      at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
      at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
      at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
      at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
      at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
      at $Proxy205.loadConfiguration(Unknown Source)
      at com.rs.mambo.adapter.ConfigAdapter.loadConfiguration(ConfigAdapter.java:22)
      at com.rs.mambo.servlet.StartupServlet.init(StartupServlet.java:29)
      at javax.servlet.GenericServlet.init(GenericServlet.java:212)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4069)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4373)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
      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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
      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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
      at org.jboss.web.WebModule.startModule(WebModule.java:83)
      at org.jboss.web.WebModule.startService(WebModule.java:61)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor433.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      Thanks in Advance.
      Bhakta

        • 1. Re: :: Question On JBoss Clustering with Hibernate Second Le
          BhaktavatsalamReddy Newbie

          Looks like the hibernate config properties are not shown up propertly on above post. Here are they:

          true
          org.hibernate.cache.TreeCacheProvider
          true
          true
          true
          false

          Thanks,
          Bhakta

          • 2. Re: :: Question On JBoss Clustering with Hibernate Second Le
            BhaktavatsalamReddy Newbie

            ooooohhh the elements are not shown properly again.
            "true
            org.hibernate.cache.TreeCacheProvider
            true
            true
            true
            false"

            • 3. Re: :: Question On JBoss Clustering with Hibernate Second Le
              BhaktavatsalamReddy Newbie

              true
              org.hibernate.cache.TreeCacheProvider
              true
              true
              true
              false

              • 5. Re: :: Question On JBoss Clustering with Hibernate Second Le
                BhaktavatsalamReddy Newbie

                Here is the treecache.xml
                =================

                <?xml version="1.0" encoding="UTF-8" ?>
                <server>
                 <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar" />
                
                 <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=TreeCache">
                 <depends>jboss:service=Naming</depends>
                 <depends>jboss:service=TransactionManager</depends>
                
                 <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
                
                 <attribute name="NodeLockingScheme">PESSIMISTIC</attribute>
                
                 <attribute name="IsolationLevel">NONE</attribute>
                
                 <attribute name="CacheMode">REPL_SYNC</attribute>
                
                 <!-- Clustering Related when the Second Level Cache Is Enabled -->
                 <attribute name="ReplQueueInterval">0</attribute>
                
                 <attribute name="ReplQueueMaxElements">0</attribute>
                
                 <attribute name="UseReplQueue">false</attribute>
                
                 <attribute name="UseRegionBasedMarshalling">true</attribute>
                
                 <attribute name="UseInterceptorMbeans">false</attribute>
                
                 <attribute name="InitialStateRetrievalTimeout">20000</attribute>
                
                 <attribute name="SyncReplTimeout">30000</attribute>
                
                 <attribute name="FetchInMemoryState">false</attribute>
                
                 <attribute name="LockAcquisitionTimeout">40000</attribute>
                
                 <attribute name="ClusterName">${jboss.partition.name:DefaultPartition}</attribute>
                
                 <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
                
                 <attribute name="EvictionPolicyConfig">
                 <config>
                 <attribute name="wakeUpIntervalSeconds">5</attribute>
                 <region name="/_default_">
                 <attribute name="maxNodes">10000</attribute>
                 <attribute name="timeToLiveSeconds">3600</attribute>
                 <attribute name="maxAgeSeconds">86400</attribute>
                 </region>
                 <region name="/CompanyImpl">
                 <attribute name="maxNodes">5000</attribute>
                 <attribute name="timeToLiveSeconds">3600</attribute>
                 <attribute name="maxAgeSeconds">3600</attribute>
                 </region>
                 <region name="/LicenseImpl">
                 <attribute name="maxNodes">5000</attribute>
                 <attribute name="timeToLiveSeconds">3600</attribute>
                 <attribute name="maxAgeSeconds">3600</attribute>
                 </region>
                 <region name="/CompanyImpl.licenses">
                 <attribute name="maxNodes">5000</attribute>
                 <attribute name="timeToLiveSeconds">3600</attribute>
                 <attribute name="maxAgeSeconds">3600</attribute>
                 </region>
                 <region name="/LicenseImpl.accounts">
                 <attribute name="maxNodes">5000</attribute>
                 <attribute name="timeToLiveSeconds">3600</attribute>
                 <attribute name="maxAgeSeconds">3600</attribute>
                 </region>
                 <region name="/AccountImpl">
                 <attribute name="maxNodes">5000</attribute>
                 <attribute name="timeToLiveSeconds">3600</attribute>
                 <attribute name="maxAgeSeconds">3600</attribute>
                 </region>
                 <region name="/AccountImpl.folderList">
                 <attribute name="maxNodes">5000</attribute>
                 <attribute name="timeToLiveSeconds">3600</attribute>
                 <attribute name="maxAgeSeconds">3600</attribute>
                 </region>
                 <region name="/AccountAccessPlanImpl">
                 <attribute name="maxNodes">5000</attribute>
                 <attribute name="timeToLiveSeconds">3600</attribute>
                 <attribute name="maxAgeSeconds">3600</attribute>
                 </region>
                 </config>
                 </attribute>
                
                 <attribute name="CacheLoaderConfiguration">
                 <config>
                 <passivation>false</passivation>
                 <shared>false</shared>
                
                 <cacheloader>
                 <class>org.jboss.cache.loader.FileCacheLoader</class>
                 <properties>
                 location=treecache
                 </properties>
                 <async>false</async>
                 <fetchPersistentState>true</fetchPersistentState>
                 <ignoreModifications>false</ignoreModifications>
                 <purgeOnStartup>true</purgeOnStartup>
                 </cacheloader>
                 </config>
                 </attribute>
                
                 <attribute name="ClusterConfig">
                 <config>
                 <TCP bind_addr="10.5.1.231" start_port="7800" loopback="true"
                 tcp_nodelay="true"
                 recv_buf_size="640000"
                 send_buf_size="640000"
                 discard_incompatible_packets="true"
                 enable_bundling="false"
                 max_bundle_size="64000"
                 max_bundle_timeout="30"
                 use_incoming_packet_handler="true"
                 use_outgoing_packet_handler="false"
                 down_thread="false" up_thread="false"
                 use_send_queues="false"
                 sock_conn_timeout="300"
                 skip_suspected_members="true"/>
                 <TCPPING initial_hosts="10.5.1.231[7800]" port_range="3"
                 timeout="3000"
                 down_thread="false" up_thread="false"
                 num_initial_members="1"/>
                 <MERGE2 max_interval="100000"
                 down_thread="false" up_thread="false" min_interval="20000"/>
                 <FD_SOCK down_thread="false" up_thread="false"/>
                 <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
                 <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
                 <pbcast.NAKACK max_xmit_size="60000"
                 use_mcast_xmit="false" gc_lag="0"
                 retransmit_timeout="300,600,1200,2400,4800"
                 down_thread="false" up_thread="false"
                 discard_delivered_msgs="true"/>
                 <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
                 down_thread="false" up_thread="false"
                 max_bytes="400000"/>
                 <pbcast.GMS print_local_addr="true" join_timeout="3000"
                 down_thread="false" up_thread="false"
                 join_retry_timeout="2000" shun="true"
                 view_bundling="true"/>
                 <pbcast.STATE_TRANSFER down_thread="true" up_thread="true" use_flush="true"/>
                 </config>
                 </attribute>
                 </mbean>
                </server>



                • 6. Re: :: Question On JBoss Clustering with Hibernate Second Le
                  BhaktavatsalamReddy Newbie

                  Here is the cluster-service.xml
                  ====================

                  <?xml version="1.0" encoding="UTF-8"?>
                  
                  <!-- ===================================================================== -->
                  <!-- -->
                  <!-- Clustering Service Configuration -->
                  <!-- -->
                  <!-- ===================================================================== -->
                  
                  <server>
                  
                   <!-- ==================================================================== -->
                   <!-- Cluster Partition: defines cluster -->
                   <!-- ==================================================================== -->
                  
                   <mbean code="org.jboss.ha.framework.server.ClusterPartition"
                   name="jboss:service=${jboss.partition.name:DefaultPartition}">
                  
                   <!-- Name of the partition being built -->
                   <attribute name="PartitionName">${jboss.partition.name:DefaultPartition}</attribute>
                  
                   <!-- The address used to determine the node name -->
                   <attribute name="NodeAddress">10.5.1.231</attribute>
                  
                   <!-- Determine if deadlock detection is enabled -->
                   <attribute name="DeadlockDetection">False</attribute>
                  
                   <!-- Max time (in ms) to wait for state transfer to complete. Increase for large states -->
                   <attribute name="StateTransferTimeout">60000</attribute>
                  
                   <!-- The JGroups protocol configuration -->
                   <attribute name="PartitionConfig">
                  
                   The default UDP stack:
                   - If you have a multihomed machine, set the UDP protocol's bind_addr attribute to the
                   appropriate NIC IP address, e.g bind_addr="192.168.0.2".
                   - On Windows machines, because of the media sense feature being broken with multicast
                   (even after disabling media sense) set the UDP protocol's loopback attribute to true
                   -->
                   <!--<Config>
                   <UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.3}"
                   mcast_port="${jboss.hapartition.mcast_port:45566}"
                   tos="8"
                   ucast_recv_buf_size="20000000"
                   ucast_send_buf_size="640000"
                   mcast_recv_buf_size="25000000"
                   mcast_send_buf_size="640000"
                   loopback="false"
                   discard_incompatible_packets="true"
                   enable_bundling="false"
                   max_bundle_size="64000"
                   max_bundle_timeout="30"
                   use_incoming_packet_handler="true"
                   use_outgoing_packet_handler="false"
                   ip_ttl="${jgroups.udp.ip_ttl:2}"
                   down_thread="false" up_thread="false"/>
                   <PING timeout="2000"
                   down_thread="false" up_thread="false" num_initial_members="3"/>
                   <MERGE2 max_interval="100000"
                   down_thread="false" up_thread="false" min_interval="20000"/>
                   <FD_SOCK down_thread="false" up_thread="false"/>
                   <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
                   <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
                   <pbcast.NAKACK max_xmit_size="60000"
                   use_mcast_xmit="false" gc_lag="0"
                   retransmit_timeout="300,600,1200,2400,4800"
                   down_thread="false" up_thread="false"
                   discard_delivered_msgs="true"/>
                   <UNICAST timeout="300,600,1200,2400,3600"
                   down_thread="false" up_thread="false"/>
                   <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
                   down_thread="false" up_thread="false"
                   max_bytes="400000"/>
                   <pbcast.GMS print_local_addr="true" join_timeout="3000"
                   down_thread="false" up_thread="false"
                   join_retry_timeout="2000" shun="true"
                   view_bundling="true"/>
                   <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
                   <pbcast.STATE_TRANSFER down_thread="false" up_thread="false" use_flush="false"/>
                   </Config>-->
                  
                   <!-- Alternate TCP stack: customize it for your environment, change bind_addr and initial_hosts -->
                  
                  
                   <config>
                   <TCP bind_addr="10.5.1.231" start_port="7800" loopback="true"
                   tcp_nodelay="true"
                   recv_buf_size="640000"
                   send_buf_size="640000"
                   discard_incompatible_packets="true"
                   enable_bundling="false"
                   max_bundle_size="64000"
                   max_bundle_timeout="30"
                   use_incoming_packet_handler="true"
                   use_outgoing_packet_handler="false"
                   down_thread="false" up_thread="false"
                   use_send_queues="false"
                   sock_conn_timeout="300"
                   skip_suspected_members="true"/>
                   <TCPPING initial_hosts="10.5.1.231[7800]" port_range="3"
                   timeout="3000"
                   down_thread="false" up_thread="false"
                   num_initial_members="1"/>
                   <MERGE2 max_interval="100000"
                   down_thread="false" up_thread="false" min_interval="20000"/>
                   <FD_SOCK down_thread="false" up_thread="false"/>
                   <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
                   <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
                   <pbcast.NAKACK max_xmit_size="60000"
                   use_mcast_xmit="false" gc_lag="0"
                   retransmit_timeout="300,600,1200,2400,4800"
                   down_thread="false" up_thread="false"
                   discard_delivered_msgs="true"/>
                   <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
                   down_thread="false" up_thread="false"
                   max_bytes="400000"/>
                   <pbcast.GMS print_local_addr="true" join_timeout="3000"
                   down_thread="false" up_thread="false"
                   join_retry_timeout="2000" shun="true"
                   view_bundling="true"/>
                   <pbcast.STATE_TRANSFER down_thread="true" up_thread="true" use_flush="false"/>
                   </config>
                   </attribute>
                   <depends>jboss:service=Naming</depends>
                   </mbean>
                  
                   <!-- ==================================================================== -->
                   <!-- HA Session State Service for SFSB -->
                   <!-- ==================================================================== -->
                  
                   <mbean code="org.jboss.ha.hasessionstate.server.HASessionStateService"
                   name="jboss:service=HASessionState">
                   <depends>jboss:service=Naming</depends>
                   <!-- We now inject the partition into the HAJNDI service instead
                   of requiring that the partition name be passed -->
                   <depends optional-attribute-name="ClusterPartition"
                   proxy-type="attribute">jboss:service=${jboss.partition.name:DefaultPartition}</depends>
                   <!-- JNDI name under which the service is bound -->
                   <attribute name="JndiName">/HASessionState/Default</attribute>
                   <!-- Max delay before cleaning unreclaimed state.
                   Defaults to 30*60*1000 => 30 minutes -->
                   <attribute name="BeanCleaningDelay">0</attribute>
                   </mbean>
                  
                   <!-- ==================================================================== -->
                   <!-- HA JNDI -->
                   <!-- ==================================================================== -->
                  
                   <mbean code="org.jboss.ha.jndi.HANamingService"
                   name="jboss:service=HAJNDI">
                   <!-- We now inject the partition into the HAJNDI service instead
                   of requiring that the partition name be passed -->
                   <depends optional-attribute-name="ClusterPartition"
                   proxy-type="attribute">jboss:service=${jboss.partition.name:DefaultPartition}</depends>
                   <!-- Bind address of bootstrap and HA-JNDI RMI endpoints -->
                   <attribute name="BindAddress">${jboss.bind.address}</attribute>
                   <!-- Port on which the HA-JNDI stub is made available -->
                   <attribute name="Port">1100</attribute>
                   <!-- RmiPort to be used by the HA-JNDI service once bound. 0 => auto. -->
                   <attribute name="RmiPort">1101</attribute>
                   <!-- Accept backlog of the bootstrap socket -->
                   <attribute name="Backlog">50</attribute>
                   <!-- The thread pool service used to control the bootstrap and
                   auto discovery lookups -->
                   <depends optional-attribute-name="LookupPool"
                   proxy-type="attribute">jboss.system:service=ThreadPool</depends>
                  
                   <!-- A flag to disable the auto discovery via multicast -->
                   <attribute name="DiscoveryDisabled">false</attribute>
                   <!-- Set the auto-discovery bootstrap multicast bind address. If not
                   specified and a BindAddress is specified, the BindAddress will be used. -->
                   <attribute name="AutoDiscoveryBindAddress">${jboss.bind.address}</attribute>
                   <!-- Multicast Address and group port used for auto-discovery -->
                   <attribute name="AutoDiscoveryAddress">${jboss.partition.udpGroup:230.0.0.4}</attribute>
                   <attribute name="AutoDiscoveryGroup">1102</attribute>
                   <!-- The TTL (time-to-live) for autodiscovery IP multicast packets -->
                   <attribute name="AutoDiscoveryTTL">16</attribute>
                   <!-- The load balancing policy for HA-JNDI -->
                   <attribute name="LoadBalancePolicy">org.jboss.ha.framework.interfaces.RoundRobin</attribute>
                  
                   <!-- Client socket factory to be used for client-server
                   RMI invocations during JNDI queries
                   <attribute name="ClientSocketFactory">custom</attribute>
                   -->
                   <!-- Server socket factory to be used for client-server
                   RMI invocations during JNDI queries
                   <attribute name="ServerSocketFactory">custom</attribute>
                   -->
                   </mbean>
                  
                   <!-- ==================================================================== -->
                   <!-- HA Invokers -->
                   <!-- ==================================================================== -->
                  
                   <mbean code="org.jboss.invocation.unified.server.UnifiedInvokerHA"
                   name="jboss:service=invoker,type=unifiedha">
                   <depends>jboss:service=TransactionManager</depends>
                   <depends optional-attribute-name="Connector"
                   proxy-type="attribute">jboss.remoting:service=Connector,transport=socket</depends>
                   <depends>jboss:service=${jboss.partition.name:DefaultPartition}</depends>
                   </mbean>
                  
                   <mbean code="org.jboss.invocation.jrmp.server.JRMPInvokerHA"
                   name="jboss:service=invoker,type=jrmpha">
                   <attribute name="ServerAddress">${jboss.bind.address}</attribute>
                   <attribute name="RMIObjectPort">4447</attribute>
                   <!--
                   <attribute name="RMIClientSocketFactory">custom</attribute>
                   <attribute name="RMIServerSocketFactory">custom</attribute>
                   -->
                   <depends>jboss:service=Naming</depends>
                   </mbean>
                  
                   <!-- the JRMPInvokerHA creates a thread per request. This implementation uses a pool of threads -->
                   <mbean code="org.jboss.invocation.pooled.server.PooledInvokerHA"
                   name="jboss:service=invoker,type=pooledha">
                   <attribute name="NumAcceptThreads">1</attribute>
                   <attribute name="MaxPoolSize">300</attribute>
                   <attribute name="ClientMaxPoolSize">300</attribute>
                   <attribute name="SocketTimeout">60000</attribute>
                   <attribute name="ServerBindAddress">${jboss.bind.address}</attribute>
                   <attribute name="ServerBindPort">4448</attribute>
                   <attribute name="ClientConnectAddress">${jboss.bind.address}</attribute>
                   <attribute name="ClientConnectPort">0</attribute>
                   <attribute name="EnableTcpNoDelay">false</attribute>
                   <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
                   <depends>jboss:service=Naming</depends>
                   </mbean>
                  
                   <!-- ==================================================================== -->
                  
                   <!-- ==================================================================== -->
                   <!-- Distributed cache invalidation -->
                   <!-- ==================================================================== -->
                  
                   <mbean code="org.jboss.cache.invalidation.bridges.JGCacheInvalidationBridge"
                   name="jboss.cache:service=InvalidationBridge,type=JavaGroups">
                   <!-- We now inject the partition into the HAJNDI service instead
                   of requiring that the partition name be passed -->
                   <depends optional-attribute-name="ClusterPartition"
                   proxy-type="attribute">jboss:service=${jboss.partition.name:DefaultPartition}</depends>
                   <depends>jboss.cache:service=InvalidationManager</depends>
                   <attribute name="InvalidationManager">jboss.cache:service=InvalidationManager</attribute>
                   <attribute name="BridgeName">DefaultJGBridge</attribute>
                   </mbean>
                  
                  </server>
                  


                  • 7. Re: :: Question On JBoss Clustering with Hibernate Second Le
                    BhaktavatsalamReddy Newbie

                    Here is the hibernate config file
                    =====================

                    <?xml version='1.0' encoding='UTF-8'?>
                    <!DOCTYPE hibernate-configuration PUBLIC
                     "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
                     "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
                    <hibernate-configuration>
                    <session-factory>
                     <!-- Data Source -->
                     <property name="hibernate.connection.datasource">
                     java:/mamboDS
                     </property>
                    
                     <!-- Select the dialect for the PostgresSQL database -->
                     <property name="hibernate.dialect">
                     org.hibernate.dialect.PostgreSQLDialect
                     </property>
                    
                     <!-- JBoss Transaction Manager -->
                     <property name="hibernate.transaction.manager_lookup_class">
                     org.hibernate.transaction.JBossTransactionManagerLookup
                     </property>
                    
                     <!-- Use Container Managed Transaction -->
                     <property name="hibernate.transaction.factory_class">
                     org.hibernate.transaction.CMTTransactionFactory
                     </property>
                    
                     <property name="hibernate.show_sql">true</property>
                    
                     <property name="hibernate.use_sql_comments">true</property>
                    
                     <!-- Properties for second level caching -->
                     <property name="hibernate.cache.use_second_level_cache">true</property>
                     <property name="hibernate.cache.provider_class">org.hibernate.cache.TreeCacheProvider</property>
                     <property name="hibernate.cache.use_query_cache">true</property>
                     <property name="hibernate.generate_statistics">true</property>
                     <property name="hibernate.cache.use_structured_entries">true</property>
                     <property name="hibernate.cache.use_minimal_puts">false</property>
                    
                     <!-- Register all the mapping files -->
                     <mapping resource="com/rs/mambo/hibernate/config/Configuration.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/user/User.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/encoder/Encoder.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/account/Security.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/asset/Asset.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/job/Job.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/job/JobQueue.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/encodingProfile/EncodingProfile.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/encodingRequest/EncodingRequest.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/usage/UsageSummary.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/link/Link.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/reservation/Reservation.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/usage/AccountUsageSummary.hbm.xml" />
                     <mapping resource="com/rs/mambo/hibernate/usage/LicenseUsageSummary.hbm.xml" />
                    
                     <!-- Enable Second Level Caching -->
                     <class-cache class="com.rs.mambo.hibernate.account.CompanyImpl" usage="transactional" region="CompanyImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.account.AddressImpl" usage="transactional" region="AddressImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.account.LicenseImpl" usage="transactional" region="LicenseImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.account.LicenseAccessPlanImpl" usage="transactional" region="LicenseAccessPlanImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.account.AccountImpl" usage="transactional" region="AccountImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.account.AccountAccessPlanImpl" usage="transactional" region="AccountAccessPlanImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.asset.FolderImpl" usage="transactional" region="FolderImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.asset.AssetMasterImpl" usage="transactional" region="AssetMasterImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.asset.AssetImpl" usage="transactional" region="AssetImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.encodingProfile.EncodingProfileImpl" usage="transactional" region="EncodingProfileImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.encodingRequest.EncodingRequestImpl" usage="transactional" region="EncodingRequestImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.reservation.ReservationImpl" usage="transactional" region="ReservationImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.job.JobQueueImpl" usage="transactional" region="JobQueueImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.encoder.EncoderImpl" usage="transactional" region="EncoderImpl"/>
                    
                    <!--
                     <class-cache class="com.rs.mambo.hibernate.link.LinkImpl" usage="transactional" region="LinkImpl"/>
                     <class-cache class="com.rs.mambo.hibernate.job.JobImpl" usage="transactional" region="JobImpl"/>
                     -->
                    
                     <!-- collections caches -->
                     <collection-cache collection="com.rs.mambo.hibernate.account.CompanyImpl.licenses" usage="transactional" region="CompanyImpl.licenses"/>
                     <collection-cache collection="com.rs.mambo.hibernate.account.LicenseImpl.accountAccessPlanList" usage="transactional" region="LicenseImpl.accountAccessPlanList"/>
                     <collection-cache collection="com.rs.mambo.hibernate.account.LicenseImpl.accounts" usage="transactional" region="LicenseImpl.accounts"/>
                     <collection-cache collection="com.rs.mambo.hibernate.account.AccountImpl.folderList" usage="transactional" region="AccountImpl.folderList"/>
                     <collection-cache collection="com.rs.mambo.hibernate.asset.FolderImpl.childFolderList" usage="transactional" region="FolderImpl.childFolderList"/>
                     <collection-cache collection="com.rs.mambo.hibernate.asset.FolderImpl.assetMasterList" usage="transactional" region="FolderImpl.assetMasterList"/>
                     <collection-cache collection="com.rs.mambo.hibernate.asset.AssetMasterImpl.assets" usage="transactional" region="AssetMasterImpl.assets"/>
                     <collection-cache collection="com.rs.mambo.hibernate.asset.AssetMasterImpl.encodingRequestImplList" usage="transactional" region="AssetMasterImpl.encodingRequestImplList"/>
                     <collection-cache collection="com.rs.mambo.hibernate.asset.AssetImpl.attributeMap" usage="transactional" region="AssetImpl.attributeMap"/>
                    </session-factory>
                    </hibernate-configuration>
                    


                    • 8. Re: :: Question On JBoss Clustering with Hibernate Second Le
                      BhaktavatsalamReddy Newbie

                      Here is farm-service.xml
                      ================
                      <?xml version="1.0" encoding="UTF-8"?>

                      <!-- ===================================================================== -->
                      <!-- -->
                      <!-- Farming Service Configuration -->
                      <!-- -->
                      <!-- ===================================================================== -->





                      <!-- We now inject the partition into the HAJNDI service instead
                      of requiring that the partition name be passed -->
                      <depends optional-attribute-name="PartitionName"
                      proxy-type="attribute">jboss:service=${jboss.partition.name:DefaultPartition}

                      jboss.web:service=WebServer

                      <!-- Uncomment (and comment/remove version below) to enable usage of the
                      DeploymentCache
                      <depends optional-attribute-name="Deployer">jboss.deployment:type=DeploymentCache
                      -->
                      <depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer

                      <!-- The URLComparator can be used to specify a deployment ordering
                      for deployments found in a scanned directory. The class specified
                      must be an implementation of java.util.Comparator, it must be able
                      to compare two URL objects, and it must have a no-arg constructor.
                      Two deployment comparators are shipped with JBoss:
                      - org.jboss.deployment.DeploymentSorter
                      Sorts by file extension, as follows:
                      "sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip",
                      "*"
                      - org.jboss.deployment.scanner.PrefixDeploymentSorter
                      If the name portion of the url begins with 1 or more digits, those
                      digits are converted to an int (ignoring leading zeroes), and
                      files are deployed in that order. Files that do not start with
                      any digits will be deployed last, and they will be sorted by
                      extension as above with DeploymentSorter.
                      -->
                      org.jboss.deployment.DeploymentSorter

                      <!--
                      org.jboss.deployment.scanner.PrefixDeploymentSorter
                      -->

                      <!-- The Filter specifies a java.io.FileFilter for scanned
                      directories. Any file not accepted by this filter will not be
                      deployed. The org.jboss.deployment.scanner.DeploymentFilter
                      rejects the following patterns:
                      "#*", "%*", ",*", ".*", "_$*", "*#", "*$", "*%", "*.BAK",
                      "*.old", "*.orig", "*.rej", "*.bak", "*,v", "*~", ".make.state",
                      ".nse_depinfo", "CVS", "CVS.admin", "RCS", "RCSLOG", "SCCS",
                      "TAGS", "core", "tags"
                      -->
                      org.jboss.deployment.scanner.DeploymentFilter

                      5000

                      <!-- URLs are comma seperated and unprefixed arguments are considered
                      file URLs and resolve relative to server home(JBOSS_DIST/server/default)
                      unless the given path is absolute. Any referenced directories cannot
                      be unpackaged archives, use the parent directory of the unpacked
                      archive.
                      -->
                      farm/




                      • 9. Re: :: Question On JBoss Clustering with Hibernate Second Le
                        BhaktavatsalamReddy Newbie

                        No the problem is with farming deployment: I could able to resolve the previous error by making element to in treecache.xml.
                        New Trace trace is

                        [ServiceConfigurator] Problem configuring service jboss:service=FarmMember,partition=MyPartition
                        java.lang.IllegalArgumentException: java.lang.String is not an interface
                         at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
                         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
                         at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
                         at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:375)
                         at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
                         at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
                         at org.jboss.system.ServiceController.install(ServiceController.java:226)
                         at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
                         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:155)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                         at $Proxy4.install(Unknown Source)
                         at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
                         at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                         at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
                         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:155)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                         at $Proxy9.deploy(Unknown Source)
                         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                         at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                         at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
                         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:155)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                         at $Proxy0.start(Unknown Source)
                         at org.jboss.system.ServiceController.start(ServiceController.java:417)
                         at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
                         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:155)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                         at $Proxy4.start(Unknown Source)
                         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                         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:155)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                         at $Proxy5.deploy(Unknown Source)
                         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                         at org.jboss.Main.boot(Main.java:200)
                         at org.jboss.Main$1.run(Main.java:508)
                         at java.lang.Thread.run(Thread.java:595)
                        11:51:10,531 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jdk1.5.0_11\bin
                        


                        • 10. Re: :: Question On JBoss Clustering with Hibernate Second Le
                          BhaktavatsalamReddy Newbie

                          Please help me out where am I going wrong with FARMING DEPLOYMENT in JBOSS with the above environment.

                          Thanks in advance,
                          Bhakta