java.security.AccessControlException:访问被拒绝错误

时间:2018-05-08 11:11:54

标签: java eclipse web-services soap runtime

我为我的Web应用程序创建了一个简单的Web服务。当我试图访问wsdl文件时,我收到此错误。有人知道我为什么会收到错误吗?

  

18:44:39,420 ERROR [io.undertow.request] UT005023:异常处理   请求/ dC / Hello:java.security.AccessControlException:access   否认(" java.lang.RuntimePermission"   " org.jboss.as.server.LOOKUP_CURRENT_SERVICE_CONTAINER")at   java.security.AccessControlContext.checkPermission(未知来源)   [rt.jar:1.8.0_161] at   java.security.AccessController.checkPermission(未知来源)   [rt.jar:1.8.0_161] at   org.jboss.as.server.CurrentServiceContainer.checkPermission(CurrentServiceContainer.java:64)     在   org.jboss.as.server.CurrentServiceContainer.getServiceContainer(CurrentServiceContainer.java:52)     在   org.jboss.as.webservices.util.ASHelper.getMSCService(ASHelper.java:382)     在   org.jboss.as.webservices.util.ServiceContainerEndpointRegistry.getEndpoint(ServiceContainerEndpointRegistry.java:65)     在   org.jboss.wsf.stack.cxf.transport.ServletHelper.initServiceEndpoint(ServletHelper.java:79)     在   org.jboss.wsf.stack.cxf.transport.ServletHelper.initEndpoint(ServletHelper.java:67)     在   org.jboss.wsf.stack.cxf.CXFServletExt.loadBus(CXFServletExt.java:68)     在org.jboss.wsf.stack.cxf.CXFServletExt.init(CXFServletExt.java:62)     在org.jboss.wsf.spi.deployment.WSFServlet.init(WSFServlet.java:57)   [jbossws-spi-2.3.1.Final.jar:2.3.1.Final] at   io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:79)     在   io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.core.ManagedServlet $ DefaultInstanceStrategy.start(ManagedServlet.java:220)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.core.ManagedServlet.getServlet(ManagedServlet.java:163)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:84)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:130)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:129)   [afow-websockets-jsr-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:132)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:162)   [javamelody-core.jar:1.59.0] at   io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:132)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)     在   io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)   [afow-core-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)   [afow-core-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)   [afow-core-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)   [afow-core-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)   [afow-core-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)   [afow-core-1.1.0.Final.jar:1.1.0.Final] at   org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)     在   io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)   [afow-core-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)   [afow-core-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.ServletInitialHandler.access $ 000(ServletInitialHandler.java:76)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.servlet.handlers.ServletInitialHandler $ 1 $ 1.run(ServletInitialHandler.java:172)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   java.security.AccessController.doPrivileged(本机方法)   [rt.jar:1.8.0_161] at   io.undertow.servlet.handlers.ServletInitialHandler $ 1.handleRequest(ServletInitialHandler.java:169)   [afow-servlet-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)   [afow-core-1.1.0.Final.jar:1.1.0.Final] at   io.undertow.server.HttpServerExchange $ 1.run(HttpServerExchange.java:759)   [afow-core-1.1.0.Final.jar:1.1.0.Final] at   java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)   [rt.jar:1.8.0_161] at   java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)   [rt.jar:1.8.0_161] at java.lang.Thread.run(Unknown Source)   [rt.jar中:1.8.0_161]

0 个答案:

没有答案