2 Replies Latest reply on Sep 27, 2010 12:46 AM by sree g

    Error while clustering using mod_cluster

    sree g Newbie

      Iam trying to do clustering using mod_cluster (in jboss-eap5.0.1.GA) following the steps mentioned in the below  link : http://www.mastertheboss.com/jboss-server/257-clustering-with-jboss-modcluster.html However , am getting class cast exception when i add the following line to jbossweb.sar/server.xml :

       

      <Listener className="org.jboss.web.tomcat.service.deployers.MicrocontainerIntegrationLifecycleListener" delegateBeanName="ModClusterService"/>

       

       

       

      The exception messages is as below :

       

      Deployment "WebServer" is in error due to the following reason(s): java.lang.ClassCastException: org.jboss.web.tomcat.metada ta.ListenerMetaData cannot be cast to org.jboss.web.tomcat.metadata.ListenerMetaData       

      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:994)       

      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:940)      

        at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)      

        at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)        

      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:416)        

      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)        

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)       

      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)        

      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)       

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98 )    

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:1 81)      

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)       

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)       

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)       

      at java.lang.Thread.run(Thread.java:619)

       

       

       

       

       

      Please help me how to resolve this .

      -Thank you