java.lang.RuntimeException: Failure removing policy context directory: C:\Program Files\sges-v3\glassfish\domains\domain1/generated/policy\WebApplication1/WebApplication1

Coderanch | vineet walia | 6 years ago
  1. 0

    The module has not been deployed. BUILD FAILED error problem (SCWCD forum at JavaRanch)

    coderanch.com | 1 year ago
    java.lang.RuntimeException: Failure removing policy context directory: C:\Program Files\sges-v3\glassfish\domains\domain1/generated/policy\WebApplication1/WebApplication1
  2. 0

    The module has not been deployed. BUILD FAILED error problem

    Coderanch | 6 years ago | vineet walia
    java.lang.RuntimeException: Failure removing policy context directory: C:\Program Files\sges-v3\glassfish\domains\domain1/generated/policy\WebApplication1/WebApplication1
  3. 0

    Downloaded appserver_v9_agent_3.zip Installed the agent as per instructions on a separate GlassFIsh V3 domain, with amendments as follows: * copy the necessary jar files into glassfish/domains/domain1/lib (agent.jar and openssoclientsdk.jar) * copy the locale/* files and the Agent_001/config/* files into glassfish/domains/domain1/lib/classes folder These amendments are necessary otherwise the above files are not found. Please refer to: https://kir-dev.sch.bme.hu/kategoriak/english/ http://forums.java.net/jive/thread.jspa?messageID=378158 Deployed the sample application When opening in browser, the error is: java.lang.RuntimeException: Failed to load configuration: C:\Program%20Files\sges-v3\glassfish\domains\domain2\lib\classes\OpenSSOAgentBootstrap.properties (The system cannot find the path specified) Please note the %20 in the path. I don't know why systems are installed in directories that include spaces if they cannot read from them. There is not much I can do about it because the NetBeans IDE installs the GlassFish V3 server in this directory. java.lang.ExceptionInInitializerError at com.sun.identity.agents.arch.Manager.<clinit>(Manager.java:643) at com.sun.identity.agents.filter.AmAgentBaseFilter.initializeFilter(AmAgentBaseFilter.java:260) at com.sun.identity.agents.filter.AmAgentBaseFilter.getAmFilterInstance(AmAgentBaseFilter.java:350) at com.sun.identity.agents.filter.AmAgentBaseFilter.doFilter(AmAgentBaseFilter.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) 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(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.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(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: Failed to load configuration: C:\Program%20Files\sges-v3\glassfish\domains\domain2\lib\classes\OpenSSOAgentBootstrap.properties (The system cannot find the path specified) at com.sun.identity.agents.arch.AgentConfiguration.bootStrapClientConfiguration(AgentConfiguration.java:714) at com.sun.identity.agents.arch.AgentConfiguration.initializeConfiguration(AgentConfiguration.java:1054) at com.sun.identity.agents.arch.AgentConfiguration.<clinit>(AgentConfiguration.java:1498) ... 29 more

    ForgeRock JIRA | 7 years ago | bht
    java.lang.ExceptionInInitializerError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NetBeans Forums - Problem with Glassfish v2--HELP

    netbeans.org | 1 year ago
    java.lang.RuntimeException: EMBEDDED Broker start failure:code = 1 Starting Domain domain1, please wait. Default Log location is C:\Program Files\glassfish-v2.1\domains\domain1\logs\server.log. Redirecting output to C:/Program Files/glassfish-v2.1/domains/domain1/logs/server.log Domain domain1 failed to startup. Please check the server log for more details.
  6. 0

    Problem Deploying Wicket/JPA (EclipseLink) App to Glassfish

    Stack Overflow | 6 years ago | sdoca
    java.lang.RuntimeException: Unable to load EJB module. DeploymentContext does not contain any EJB Check archive to ensure correct packaging for C:\Program Files\glassfishv3\glassfish\domains\domain1\applications\MyApp

    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. java.lang.RuntimeException

      Failure removing policy context directory: C:\Program Files\sges-v3\glassfish\domains\domain1/generated/policy\WebApplication1/WebApplication1

      at com.sun.enterprise.security.provider.PolicyConfigurationImpl.removePolicyContextDirectory()
    2. Security Core Classes
      PolicyConfigurationImpl.delete
      1. com.sun.enterprise.security.provider.PolicyConfigurationImpl.removePolicyContextDirectory(PolicyConfigurationImpl.java:937)
      2. com.sun.enterprise.security.provider.PolicyConfigurationImpl.removePolicy(PolicyConfigurationImpl.java:997)
      3. com.sun.enterprise.security.provider.PolicyConfigurationImpl.delete(PolicyConfigurationImpl.java:693)
      3 frames
    3. Security Core Classes
      SecurityDeployer.cleanArtifacts
      1. com.sun.enterprise.security.SecurityUtil.removePolicy(SecurityUtil.java:269)
      2. com.sun.enterprise.security.SecurityDeployer.removePolicy(SecurityDeployer.java:287)
      3. com.sun.enterprise.security.SecurityDeployer.cleanArtifacts(SecurityDeployer.java:144)
      3 frames
    4. Deployment Related Common Classes
      SimpleDeployer.clean
      1. org.glassfish.deployment.common.SimpleDeployer.clean(SimpleDeployer.java:94)
      1 frame
    5. Private APIs of Glassfish
      EngineRef.clean
      1. org.glassfish.internal.data.EngineInfo.clean(EngineInfo.java:114)
      2. org.glassfish.internal.data.EngineRef.clean(EngineRef.java:171)
      2 frames
    6. Kernel Classes
      ApplicationLifecycle.deploy
      1. com.sun.enterprise.v3.server.ApplicationLifecycle$1.actOn(ApplicationLifecycle.java:224)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:342)
      3. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
      3 frames
    7. Embedded GlassFish Web
      DeployCommand.execute
      1. org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
      1 frame
    8. Kernel Classes
      AdminAdapter.service
      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)
      7. com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
      8. com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
      8 frames
    9. Grizzly WS
      GrizzlyAdapter.service
      1. com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
      1 frame
    10. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
      2 frames
    11. 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
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame