在添加由Java程序一個Java擴展PIP,包裝成一個.jar文件,並使用entitlement.properties配置:WSO2身份 - XACML PIP擴展會org.apache.axis2.AxisFault:異常發生
PIP.AttributeDesignators.Designator.2=com.ibm.carbon.pip.RedAttributeFinder
Error while loading entitlement policies. Exception occurred while trying to invoke service method getAllPolicies
The following error details are available. Please refer logs for more details.
org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method getAllPolicies
at org.wso2.carbon.identity.entitlement.ui.client.EntitlementPolicyAdminServiceClient.handleException(EntitlementPolicyAdminServiceClient.java:478)
at org.wso2.carbon.identity.entitlement.ui.client.EntitlementPolicyAdminServiceClient.getAllPolicies(EntitlementPolicyAdminServiceClient.java:81)
at org.apache.jsp.entitlement.index_jsp._jspService(org.apache.jsp.entitlement.index_jsp:183)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
...
我已經做了範例和源代碼進行審查,試了好者,也:
的服務器重新啓動後,如跟蹤和在Web授權屏幕上可見的服務器拋出一個錯誤信息使用本文發佈的最新示例代碼。在所有測試條件下,無論擴展程序添加的代碼如何,所得到的錯誤總是完全相同。
是否有在PIP引擎調試內部錯誤消息,並發現這個問題,抑制了Axis服務的根本錯誤的技術?
狀態更新:
然而,我沒有與PIP擴展測試進度。所定義的WSO2服務器無法讀取並加載名爲「RedAttributeFinder」的Java擴展類,該類遵循http://xacmlinfo.org/2011/12/18/writing-jdbc-pip-module/的說明進行註冊。我們也不會在服務器啓動和日誌中看到任何類加載器錯誤消息,只是如上所述的「AxisFault」錯誤消息。包名被修改爲名稱「com.red.carbon.pip」。
PIP.AttributeDesignators.Designator.2=com.red.carbon.pip.RedAttributeFinder
我們的代碼將使用默認的「subjectid」作爲輸入參數,創建六大領域作爲輸出的一個列表:
類是使用下面的定義激活。是否需要定義字段,添加的字段以及將其定義在模式.xsd或.xml文件中,如果有,是否有文檔可用?在我們的測試中,我們沒有使用XML的「數據源」定義,因爲那時候不需要使用數據庫服務。
問題:在WSO2服務器上激活配置並加載PIP擴展代碼並使其對PDP擴展控制檯顯示可見或修正「AxisFault」錯誤需要哪些定義?