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

Oracle Community | okna2000 | 5 years ago
  1. 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
  2. 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
  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

    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
  6. 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

    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 com.mywar_1.0.0.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:335)
      2. com.sun.enterprise.security.SecurityDeployer.linkPolicies(SecurityDeployer.java:279)
      3. com.sun.enterprise.security.SecurityDeployer.access$100(SecurityDeployer.java:81)
      4. com.sun.enterprise.security.SecurityDeployer$AppDeployEventListener.event(SecurityDeployer.java:114)
      4 frames
    3. Kernel Classes
      EventsImpl.send
      1. org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
      1 frame
    4. Private APIs of Glassfish
      ApplicationInfo.load
      1. org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:262)
      1 frame
    5. Kernel Classes
      ApplicationLifecycle.deploy
      1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
      2 frames
    6. Embedded GlassFish Web
      JavaEEExtender$HybridBundleTrackerCustomizer$1.call
      1. org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
      2. org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
      3. org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
      4. org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
      5. org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)
      6. org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
      7. org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)
      8. org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)
      8 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      5. java.lang.Thread.run(Thread.java:662)
      5 frames