0 Replies Latest reply on Aug 19, 2011 12:44 AM by shubhranshu swain

    liferay portlet war file deployment error

    shubhranshu swain Newbie

      Hi All,

       

      I am working in liferay portlet. I have created a portlet in lferay. I create a war file and deploy it in tomcat it works fine but when I deploy it in JBoss it gives the following error. JBoss Version is 5.0.1 GA

       

      java.lang.NoSuchMethodException: org.jboss.deployment.security.WarJaccPolicy.<in

      it>(java.lang.String, org.jboss.metadata.web.jboss.JBossWebMetaData, java.lang.B

      oolean)

              at java.lang.Class.getConstructor0(Class.java:2706)

              at java.lang.Class.getConstructor(Class.java:1657)

              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

      :211)

              at org.jboss.system.ServiceCreator.install(ServiceCreator.java:130)

              at org.jboss.system.microcontainer.InstantiateAction.installAction(Insta

      ntiateAction.java:45)

              at org.jboss.system.microcontainer.InstantiateAction.installAction(Insta

      ntiateAction.java:37)

              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim

      pleInstallAction(SimpleControllerContextAction.java:62)

              at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins

      tall(AccessControllerContextAction.java:71)

              at org.jboss.dependency.plugins.AbstractControllerContextActions.install

      (AbstractControllerContextActions.java:51)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra

      ctControllerContext.java:348)

              at org.jboss.system.microcontainer.ServiceControllerContext.install(Serv

      iceControllerContext.java:286)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr

      oller.java:1598)

              at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra

      ctController.java:934)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr

      actController.java:1062)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr

      actController.java:984)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro

      ller.java:822)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro

      ller.java:553)

              at org.jboss.system.ServiceController.doChange(ServiceController.java:68

      8)

              at org.jboss.system.ServiceController.install(ServiceController.java:274

      )

              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.jav

      a:90)

              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.jav

      a:46)

              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.i

      nternalDeploy(AbstractSimpleRealDeployer.java:62)

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(

      AbstractRealDeployer.java:50)

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer

      Wrapper.java:171)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(Deployer

      sImpl.java:1439)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi

      rst(DeployersImpl.java:1157)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi

      rst(DeployersImpl.java:1178)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers

      Impl.java:1098)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra

      ctControllerContext.java:348)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr

      oller.java:1598)

              at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra

      ctController.java:934)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr

      actController.java:1062)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr

      actController.java:984)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro

      ller.java:822)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro

      ller.java:553)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers

      Impl.java:781)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye

      rImpl.java:698)

              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDSca

      nner.java:290)

              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScan

      ner.java:221)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44

      1)

              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:181)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.

      run(ScheduledThreadPoolExecutor.java:205)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec

      utor.java:885)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor

      .java:907)

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

      08:25:26,171 ERROR [AbstractKernelController] Error installing to Real: name=vfs

      file:/D:/server/liferay%20jboss/jboss-5.0.1.GA/server/default/deploy/Durat-portl

      et.war/ state=PreReal mode=Manual requiredState=Real

      org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.jacc:service

      =jacc,id="vfsfile:/D:/server/liferay%20jboss/jboss-5.0.1.GA/server/default/deplo

      y/Durat-portlet.war/"

              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentExcept

      ion(DeploymentException.java:49)

              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.jav

      a:118)

              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.jav

      a:46)

              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.i

      nternalDeploy(AbstractSimpleRealDeployer.java:62)

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(

      AbstractRealDeployer.java:50)

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer

      Wrapper.java:171)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(Deployer

      sImpl.java:1439)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi

      rst(DeployersImpl.java:1157)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi

      rst(DeployersImpl.java:1178)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers

      Impl.java:1098)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra

      ctControllerContext.java:348)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr

      oller.java:1598)

              at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra

      ctController.java:934)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr

      actController.java:1062)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr

      actController.java:984)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro

      ller.java:822)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro

      ller.java:553)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers

      Impl.java:781)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye

      rImpl.java:698)

              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDSca

      nner.java:290)

              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScan

      ner.java:221)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44

      1)

              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:181)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.

      run(ScheduledThreadPoolExecutor.java:205)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec

      utor.java:885)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor

      .java:907)

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

      Caused by: java.lang.NoSuchMethodException: org.jboss.deployment.security.WarJac

      cPolicy.<init>(java.lang.String, org.jboss.metadata.web.jboss.JBossWebMetaData,

      java.lang.Boolean)

              at java.lang.Class.getConstructor0(Class.java:2706)

              at java.lang.Class.getConstructor(Class.java:1657)

              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

      :211)

              at org.jboss.system.ServiceCreator.install(ServiceCreator.java:130)

              at org.jboss.system.microcontainer.InstantiateAction.installAction(Insta

      ntiateAction.java:45)

              at org.jboss.system.microcontainer.InstantiateAction.installAction(Insta

      ntiateAction.java:37)

              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim

      pleInstallAction(SimpleControllerContextAction.java:62)

              at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins

      tall(AccessControllerContextAction.java:71)

              at org.jboss.dependency.plugins.AbstractControllerContextActions.install

      (AbstractControllerContextActions.java:51)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra

      ctControllerContext.java:348)

              at org.jboss.system.microcontainer.ServiceControllerContext.install(Serv

      iceControllerContext.java:286)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr

      oller.java:1598)

              at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra

      ctController.java:934)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr

      actController.java:1062)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr

      actController.java:984)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro

      ller.java:822)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro

      ller.java:553)

              at org.jboss.system.ServiceController.doChange(ServiceController.java:68

      8)

              at org.jboss.system.ServiceController.install(ServiceController.java:274

      )

              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.jav

      a:90)

              ... 28 more

       

       

       

      Pls help me get out of this.

       

      Thanks