讨论区 » AAS-V10企业版 »
中间件启动报Error in generating security policy for __admingui -- JACC Policy provider: repository not initialized?
由 何 善才 在 大约 3 年 之前添加
异常详情:
[2021-12-01T19:43:13] [] [SEVERE] [AS-WEB-CORE-00175] [javax.enterprise.web.core] [tid: _ThreadID=190 _ThreadName=ApusicLogManager] [timeMillis: 1638358993945] [levelValue: 1000] [[
Exception during cleanup after start failed
org.apache.catalina.LifecycleException: Manager has not yet been started
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:838)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5785)
at com.sun.enterprise.web.WebModule.stop(WebModule.java:549)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5598)
at com.sun.enterprise.web.WebModule.start(WebModule.java:520)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:885)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:868)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:644)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2032)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1678)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:83)
at com.apusic.aas.internal.data.EngineRef.start(EngineRef.java:98)
at com.apusic.aas.internal.data.ModuleInfo.start(ModuleInfo.java:267)
at com.apusic.aas.internal.data.ApplicationInfo.start(ApplicationInfo.java:358)
at com.apusic.enterprise.v10.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:479)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:384)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.load(InstallerThread.java:189)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.run(InstallerThread.java:78)
]]
[2021-12-01T19:43:13] [] [SEVERE] [AS-WEB-CORE-00108] [javax.enterprise.web.core] [tid: _ThreadID=190 _ThreadName=ApusicLogManager] [timeMillis: 1638358993945] [levelValue: 1000] [[
ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: com.apusic.aas.deployment.common.DeploymentException: Error in generating security policy for __admingui -- JACC Policy provider: repository not initialized
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5602)
at com.sun.enterprise.web.WebModule.start(WebModule.java:520)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:885)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:868)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:644)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2032)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1678)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:83)
at com.apusic.aas.internal.data.EngineRef.start(EngineRef.java:98)
at com.apusic.aas.internal.data.ModuleInfo.start(ModuleInfo.java:267)
at com.apusic.aas.internal.data.ApplicationInfo.start(ApplicationInfo.java:358)
at com.apusic.enterprise.v10.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:479)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:384)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.load(InstallerThread.java:189)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.run(InstallerThread.java:78)
Caused by: com.apusic.aas.deployment.common.DeploymentException: Error in generating security policy for __admingui -- JACC Policy provider: repository not initialized
at com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl.getContextDirectoryName(PolicyConfigurationFactoryImpl.java:212)
at com.sun.enterprise.security.provider.PolicyConfigurationImpl.getContextDirectoryName(PolicyConfigurationImpl.java:875)
at com.sun.enterprise.security.provider.PolicyConfigurationImpl.getPolicyFileName(PolicyConfigurationImpl.java:868)
at com.sun.enterprise.security.provider.PolicyConfigurationImpl.fileChanged(PolicyConfigurationImpl.java:789)
at com.sun.enterprise.security.provider.PolicyConfigurationImpl.refresh(PolicyConfigurationImpl.java:743)
at com.sun.enterprise.security.provider.BasePolicyWrapper.refresh(BasePolicyWrapper.java:268)
at com.sun.enterprise.security.ee.SecurityUtil.generatePolicyFile(SecurityUtil.java:221)
at com.sun.enterprise.security.ee.SecurityDeployer.commitPolicy(SecurityDeployer.java:236)
at com.sun.enterprise.security.ee.SecurityDeployer.access$400(SecurityDeployer.java:63)
at com.sun.enterprise.security.ee.SecurityDeployer$AppDeployEventListener.event(SecurityDeployer.java:131)
at com.apusic.aas.kernel.event.EventsImpl.send(EventsImpl.java:107)
at com.sun.enterprise.web.WebContainer.afterServletContextInitializedEvent(WebContainer.java:633)
at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:588)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5580)
... 14 more
]]
[2021-12-01T19:43:13] [] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=190 _ThreadName=ApusicLogManager] [timeMillis: 1638358993945] [levelValue: 900] [[
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.apusic.aas.deployment.common.DeploymentException: Error in generating security policy for __admingui -- JACC Policy provider: repository not initialized
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.apusic.aas.deployment.common.DeploymentException: Error in generating security policy for __admingui -- JACC Policy provider: repository not initialized
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:889)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:868)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:644)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2032)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1678)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:83)
at com.apusic.aas.internal.data.EngineRef.start(EngineRef.java:98)
at com.apusic.aas.internal.data.ModuleInfo.start(ModuleInfo.java:267)
at com.apusic.aas.internal.data.ApplicationInfo.start(ApplicationInfo.java:358)
at com.apusic.enterprise.v10.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:479)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:384)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.load(InstallerThread.java:189)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.run(InstallerThread.java:78)
]]
[2021-12-01T19:43:13] [] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=190 _ThreadName=ApusicLogManager] [timeMillis: 1638358993945] [levelValue: 1000] [[
Exception while invoking class com.sun.enterprise.web.WebApplication start method
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.apusic.aas.deployment.common.DeploymentException: Error in generating security policy for __admingui -- JACC Policy provider: repository not initialized
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:112)
at com.apusic.aas.internal.data.EngineRef.start(EngineRef.java:98)
at com.apusic.aas.internal.data.ModuleInfo.start(ModuleInfo.java:267)
at com.apusic.aas.internal.data.ApplicationInfo.start(ApplicationInfo.java:358)
at com.apusic.enterprise.v10.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:479)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:384)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.load(InstallerThread.java:189)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.run(InstallerThread.java:78)
]]
[2021-12-01T19:43:13] [] [SEVERE] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=190 _ThreadName=ApusicLogManager] [timeMillis: 1638358993945] [levelValue: 1000] [[
Exception during lifecycle processing
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.apusic.aas.deployment.common.DeploymentException: Error in generating security policy for __admingui -- JACC Policy provider: repository not initialized
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:112)
at com.apusic.aas.internal.data.EngineRef.start(EngineRef.java:98)
at com.apusic.aas.internal.data.ModuleInfo.start(ModuleInfo.java:267)
at com.apusic.aas.internal.data.ApplicationInfo.start(ApplicationInfo.java:358)
at com.apusic.enterprise.v10.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:479)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:384)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.load(InstallerThread.java:189)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.run(InstallerThread.java:78)
]]
[2021-12-01T19:43:13] [] [SEVERE] [AS-WEB-GLUE-00192] [javax.enterprise.web] [tid: _ThreadID=190 _ThreadName=ApusicLogManager] [timeMillis: 1638358993946] [levelValue: 1000] [[
Undeployment failed for context ]]
[2021-12-01T19:43:13] [] [WARNING] [] [] [tid: _ThreadID=190 _ThreadName=ApusicLogManager] [timeMillis: 1638358993952] [levelValue: 900] [[
The web application [] registered the JDBC driver [org.apache.ibatis.datasource.unpooled.UnpooledDataSource.DriverProxy] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.]]
[2021-12-01T19:43:13] [] [WARNING] [] [javax.enterprise.system.core.security.com.sun.enterprise.security.ee] [tid: _ThreadID=190 _ThreadName=ApusicLogManager] [timeMillis: 1638358993956] [levelValue: 900] [[
Unable to destroy WebSecurityManager
java.lang.RuntimeException: JACC Policy provider: repository not initialized
at com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl.getContextDirectoryName(PolicyConfigurationFactoryImpl.java:212)
at com.sun.enterprise.security.provider.PolicyConfigurationImpl.getContextDirectoryName(PolicyConfigurationImpl.java:875)
at com.sun.enterprise.security.provider.PolicyConfigurationImpl.getPolicyFileName(PolicyConfigurationImpl.java:868)
at com.sun.enterprise.security.provider.PolicyConfigurationImpl.fileChanged(PolicyConfigurationImpl.java:789)
at com.sun.enterprise.security.provider.PolicyConfigurationImpl.refresh(PolicyConfigurationImpl.java:743)
at com.sun.enterprise.security.provider.BasePolicyWrapper.refresh(BasePolicyWrapper.java:268)
at com.sun.enterprise.security.web.integration.WebSecurityManager.destroy(WebSecurityManager.java:567)
at com.sun.enterprise.security.ee.SecurityDeployer.cleanSecurityContext(SecurityDeployer.java:387)
at com.sun.enterprise.security.ee.SecurityDeployer.unload(SecurityDeployer.java:189)
at com.sun.enterprise.security.ee.SecurityDeployer.unload(SecurityDeployer.java:62)
at com.apusic.aas.internal.data.EngineRef.unload(EngineRef.java:118)
at com.apusic.enterprise.v10.server.ApplicationLifecycle$2.actOn(ApplicationLifecycle.java:258)
at com.apusic.enterprise.v10.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:486)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:384)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.load(InstallerThread.java:189)
at com.apusic.enterprise.v10.admin.adapter.InstallerThread.run(InstallerThread.java:78)
]]
[2021-12-01T19:43:13] [] [SEVERE] [NCLS-CORE-00041] [javax.enterprise.system.core] [tid: _ThreadID=190 _ThreadName=ApusicLogManager] [timeMillis: 1638358993957] [levelValue: 1000] [[
Application deployment failed: ]]
导致问题:
管控台无法访问,一片空白
解决:
ApusicAS/aas/domains/mydomain/generated/policy
删掉这个文件夹重启
注意:
如果中间件启动后,应用没正常启动,需要启动一下应用