xfire 与 spring整合问题
xfire1.2.6与spring3.1.1整合,在地址栏中输入XXXservice?swdl后出错,路径没有问题HTTP ERROR 500
Problem accessing /service/RonDemoService. Reason:
Could not create wsdl builder. Nested exception is java.security.AccessControlException: access denied (java.io.FilePermission null/lib/wsdl.properties read)
Caused by:
org.codehaus.xfire.XFireRuntimeException: Could not create wsdl builder. Nested exception is java.security.AccessControlException: access denied (java.io.FilePermission null/lib/wsdl.properties read)
java.security.AccessControlException: access denied (java.io.FilePermission null/lib/wsdl.properties read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
at java.security.AccessController.checkPermission(AccessController.java:553)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at org.eclipse.jetty.security.CustomSecurityManager.checkPermission(CustomSecurityManager.java:39)
at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
at java.io.FileInputStream.<init>(FileInputStream.java:130)
at javax.wsdl.factory.WSDLFactory.findFactoryImplName(Unknown Source)
at javax.wsdl.factory.WSDLFactory.newInstance(Unknown Source)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.<init>(WSDLBuilder.java:85)
at org.codehaus.xfire.wsdl11.builder.DefaultWSDLBuilderFactory.createWSDLBuilder(DefaultWSDLBuilderFactory.java:25)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilderAdapter.write(WSDLBuilderAdapter.java:40)
at org.codehaus.xfire.DefaultXFire.generateWSDL(DefaultXFire.java:104)
at org.codehaus.xfire.transport.http.XFireServletController.generateWSDL(XFireServletController.java:380)
at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:125)
at org.codehaus.xfire.transport.http.XFireServlet.doGet(XFireServlet.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:550)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:489)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:480)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:249)
at com.baidu.jetty.security.quotalimit.LimitQuotaHandler.doHandle(LimitQuotaHandler.java:64)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1003)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:200)
at com.baidu.jetty.security.quotalimit.LimitQuotaHandler.doScope(LimitQuotaHandler.java:43)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:934)
at org.eclipse.jetty.webapp.WebAppContext.doScope(WebAppContext.java:539)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:226)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:305)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:368)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:605)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1069)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:425)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:679) --------------------编程问答-------------------- null/lib/wsdl.properties
配置文件读取错误 自己看看啥问题 --------------------编程问答-------------------- 相同的配置在tomcate下是没问题的,改用jetty后出现错误
补充:Java , Web 开发