我安装了wso2-emm 2.0.1。我能够登录并创建用户。当试图添加Android设备时,我收到错误消息:“无法继续注册。请联系管理员”。在wso2server.log的服务器上,我发现以下错误消息:
[2016-05-15 10:35:12,524] WARN - No operation matching request path "/mdm-android-agent/operation/c8018e1e51bbc600" is found, Relative Path: /c8018e1e51bbc600, HTTP Method: GET, ContentType: */*, Accept: */*,. Please enable FINE/TRACE log level for more details. {org.apache.cxf.jaxrs.utils.JAXRSUtils}
[2016-05-15 10:35:12,526] WARN - javax.ws.rs.ClientErrorException
at org.apache.cxf.jaxrs.utils.SpecExceptions.toHttpException(SpecExceptions.java:110)
at org.apache.cxf.jaxrs.utils.ExceptionUtils.toHttpException(ExceptionUtils.java:158)
at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(JAXRSUtils.java:478)
......
我认为,我在修改配置文件时犯了一个错误,但不知道为什么对我来说看起来不错的请求不起作用以及从哪里开始调查......
答案 0 :(得分:1)
我终于找到了: 我在/repository/deployment/server/webapps/mdm-android-agent/WEB-INF/web.xml中启用了HTTPS而没有修改Android应用程序。
评论下面的块让它再次运作:
<security-constraint>
<web-resource-collection>
<web-resource-name>MDM-Admin</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>