我想在wildfly服务器上部署Web应用程序(app.war)。 Web应用程序具有自己的自定义安全管理器集,不允许更改Java安全策略。 我能够成功部署Web应用程序。 但是当访问它时,它会抛出异常。是否有办法解决问题而不更改应用程序代码
at CustomSecurityManager.checkPermission(CustomSecurityManager.java:131)
at javax.security.jacc.PolicyContext.setContextID(PolicyContext.java:206)
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler$SetContextIDAction.run(JACCContextIdHandler.java:85)
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler$SetContextIDAction.run(JACCContextIdHandler.java:74)
at org.wildfly.security.manager.WildFlySecurityManager.doUnchecked(WildFlySecurityManager.java:837)
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.setContextID(JACCContextIdHandler.java:92)
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:65)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)