org.glassfish.deployment.common.DeploymentException: Error in linking security policy for wmsreports-ear-1.1-SNAPSHOT -- Inconsistent Module State

Oracle Community | bjoice | 6 years ago
  1. 0

    Unable to deploy ear in glassfish v3

    Oracle Community | 6 years ago | bjoice
    org.glassfish.deployment.common.DeploymentException: Error in linking security policy for wmsreports-ear-1.1-SNAPSHOT -- Inconsistent Module State
  2. 0

    I tried to deploy ear file through "Local Packaged File or Directory That Is Accessible from the Enterprise Server" and Status check box enabled. Other check boxes like precompile, run verifier, force redeploy and java webstart not checked. This application is built on Struts 1.2, Spring, Hibernate and Acegi. I saw similar bug that has EJB in it. But I don't have any EJB part of my application. I am getting Exception while loading the app : org.glassfish.deployment.common.DeploymentException: Error in linking security policy for myapp -- Inconsistent Module State Here is the full stack trace: [#|2009-12-21T13:30:37.126-0600|SEVERE|glassfishv3.0|javax.enterprise.system.cor e.com.sun.enterprise.v3.server|_ThreadID=29;_ThreadName=http-thread-pool-4848-(2 );|Exception while loading the app org.glassfish.deployment.common.DeploymentException: Error in linking security p olicy for myapp -- Inconsistent Module State at com.sun.enterprise.security.SecurityUtil.linkPolicyFile(SecurityUtil. java:329) at com.sun.enterprise.security.SecurityDeployer.linkPolicies(SecurityDep loyer.java:259) at com.sun.enterprise.security.SecurityDeployer.access$100(SecurityDeplo yer.java:63) at com.sun.enterprise.security.SecurityDeployer$AppDeployEventListener.e vent(SecurityDeployer.java:96) at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java :224) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationL ifecycle.java:338) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationL ifecycle.java:183) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.ja va:272) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunner Impl.java:305) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunner Impl.java:320) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunner Impl.java:1176) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunne rImpl.java:83) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execut e(CommandRunnerImpl.java:1235) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execut e(CommandRunnerImpl.java:1224) at org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCom mandRunner.run(LocalDeploymentFacility.java:138) at org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(Abs tractDeploymentFacility.java:350) at org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacilit y(DeployUtil.java:89) at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java: 66) at org.glassfish.admingui.common.handlers.DeploymentHandler.deploy(Deplo ymentHandler.java:186) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handl er.java:442) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHa ndlers(LayoutElementBase.java:420) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHa ndlers(LayoutElementBase.java:394) at com.sun.jsftemplating.layout.event.CommandActionListener.invokeComman dHandlers(CommandActionListener.java:150) at com.sun.jsftemplating.layout.event.CommandActionListener.processActio n(CommandActionListener.java:98) at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88) at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java: 772) at javax.faces.component.UICommand.broadcast(UICommand.java:300) at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java: 160) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1 267) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat ionPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java :1523) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:215) at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:229) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESess ionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.j ava:332) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:233) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(Container Mapper.java:239) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:7 91) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil ter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro tocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav a:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav a:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java :76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT ask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask. java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadP ool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool .java:309) at java.lang.Thread.run(Thread.java:619) |#]

    Java.net JIRA | 7 years ago | averagegeeker
    org.glassfish.deployment.common.DeploymentException: Error in linking security p olicy for myapp -- Inconsistent Module State
  3. 0

    What makes it impossible to use EJB injection in my WAB?

    Stack Overflow | 5 years ago | iXĂ´
    org.glassfish.osgijavaeebase.DeploymentException: Deployment of WABPluginToto [366] failed because of following reason: Failed while deploying bundle WABPluginToto [366] : java.lang.RuntimeException: Failed to deploy bundle [ WABPluginToto [366] ], root cause: Exception while loading the app
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OSGI wab deploy fails with "Inconsistent Module State" exception (glassfish 3.1) | Java.net

    java.net | 1 year ago
    org.glassfish.osgijavaeebase.DeploymentException: Deployment of com.mywar [257] failed because of following reason: Failed while deploying bundle com.mywar [257] : java.lang.RuntimeException: Failed to deploy bundle [ com.mywar [257] ], root cause: Exception while loading the app
  6. 0

    OSGI wab deploy fails with "Inconsistent Module State" exception (glassfish 3.1)

    Oracle Community | 5 years ago | okna2000
    org.glassfish.osgijavaeebase.DeploymentException: Deployment of com.mywar [257] failed because of following reason: Failed while deploying bundle com.mywar [257] : java.lang.RuntimeException: Failed to deploy bundle [ com.mywar [257] ], root cause: Exception while loading the app

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.glassfish.deployment.common.DeploymentException

      Error in linking security policy for wmsreports-ear-1.1-SNAPSHOT -- Inconsistent Module State

      at com.sun.enterprise.security.SecurityUtil.linkPolicyFile()
    2. Security Core Classes
      SecurityDeployer$AppDeployEventListener.event
      1. com.sun.enterprise.security.SecurityUtil.linkPolicyFile(SecurityUtil.java:329)
      2. com.sun.enterprise.security.SecurityDeployer.linkPolicies(SecurityDeployer.java:275)
      3. com.sun.enterprise.security.SecurityDeployer.access$100(SecurityDeployer.java:77)
      4. com.sun.enterprise.security.SecurityDeployer$AppDeployEventListener.event(SecurityDeployer.java:110)
      4 frames
    3. Kernel Classes
      EventsImpl.send
      1. org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125)
      1 frame
    4. Private APIs of Glassfish
      ApplicationInfo.load
      1. org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:224)
      1 frame
    5. Kernel Classes
      ApplicationLifecycle.deploy
      1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
      2 frames
    6. Embedded GlassFish Web
      DeployCommand.execute
      1. org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
      1 frame
    7. Kernel Classes
      CommandRunnerImpl$ExecutionContext.execute
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
      2. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
      3. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
      4. com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
      5. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
      6. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
      6 frames
    8. org.glassfish.admingui
      LocalDeploymentFacility$LocalDFCommandRunner.run
      1. org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:138)
      1 frame
    9. GF Deployment
      AbstractDeploymentFacility.deploy
      1. org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:350)
      1 frame
    10. org.glassfish.admingui
      DeploymentHandler.deploy
      1. org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:89)
      2. org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:66)
      3. org.glassfish.admingui.common.handlers.DeploymentHandler.deploy(DeploymentHandler.java:186)
      3 frames
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    12. com.sun.jsftemplating
      CommandActionListener.processAction
      1. com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
      2. com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
      3. com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
      4. com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)
      5. com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)
      5 frames
    13. JavaEE 7
      UICommand.broadcast
      1. javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
      2. javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:772)
      3. javax.faces.component.UICommand.broadcast(UICommand.java:300)
      3 frames
    14. com.sun.webui
      WebuiCommand.broadcast
      1. com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:166)
      1 frame
    15. JavaEE 7
      UIViewRoot.processApplication
      1. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
      2. javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
      2 frames
    16. JSF
      LifecycleImpl.execute
      1. com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      3. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      3 frames
    17. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      1 frame
    18. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
      2. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
      3. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
      3 frames
    19. com.sun.webui
      UploadFilter.doFilter
      1. com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:223)
      1 frame
    20. Glassfish Core
      StandardPipeline.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
      5 frames
    21. Glassfish
      PESessionLockingStandardPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
      2. com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
      2 frames
    22. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
      2. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
      3. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
      3 frames
    23. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)
      1 frame
    24. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      13 frames
    25. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame