403禁止错误mobilefirst平台

时间:2015-11-02 13:01:56

标签: ibm-mobilefirst rest-client mobilefirst-adapters mobilefirst-server

我创建了一个启用了安全性的MobileFirst Adapter。我生成令牌,当我尝试调用API时,我收到403 Forbidden错误。在localhost上同样有效,但在服务器上部署时会出现此错误。我已经从下面的REST客户端附加了截图。

我正在使用MFP 7.0.0版

403 Error from REST Client

日志文件:

[11/2/15 5:24:57:786 CST] 000049b7 com.ibm.ws.webcontainer.util.ApplicationErrorUtils E SRVE0777E:应用程序类'org.apache.wink.server.internal.RequestProcessor抛出的异常.handleRequest:195' javax.servlet.ServletException:java.lang.NoClassDefFoundError:com.sun.org.apache.xerces.internal.impl.xpath.regex.ParseException     在org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:195)     在org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:119)     在javax.servlet.http.HttpServlet.service(HttpServlet.java:668)     在com.worklight.adapters.rest.JAXRSSandbox $ 2.doFilter(JAXRSSandbox.java:377)     在com.worklight.adapters.rest.FilterChainImpl.doFilter(FilterChainImpl.java:84)     在com.worklight.adapters.rest.JAXRSSandbox.handleRequest(JAXRSSandbox.java:382)     在com.worklight.adapters.rest.RESTAdaptersServiceServlet.doService(RESTAdaptersServiceServlet.java:69)     在com.worklight.adapters.rest.RESTAdaptersServlet.service(RESTAdaptersServlet.java:64)     在javax.servlet.http.HttpServlet.service(HttpServlet.java:668)     在com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1285)     在com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:776)     在com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:473)     在com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:135)     在com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:74)     在com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:978)     在com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1100)     在com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:81)     在com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:912)     在com.ibm.ws.webcontainer.osgi.DynamicVirtualHost $ 2.run(DynamicVirtualHost.java:262)     at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink $ TaskWrapper.run(HttpDispatcherLink.java:955)     在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:627)     在java.lang.Thread.run(Thread.java:863) 引起:java.lang.NoClassDefFoundError:com.sun.org.apache.xerces.internal.impl.xpath.regex.ParseException     at java.lang.Class.forNameImpl(Native Method)     在java.lang.Class.forName(Class.java:253)

1 个答案:

答案 0 :(得分:0)

我已经深入研究了这个问题,因为我们的需求是通过REST客户端调用受@OuathSecurity保护的新java适配器(JAX-RS实现)。

但我需要问你几个问题,以便给你更好的答案:

您正在使用测试令牌终结点?