在将应用程序注册到MobileFirst Server 8.0时,在JSON中命中意外的令牌(Hitting Unexpected token < in JSON when registering app to MobileFirst server 8.0)

我正在尝试按照本教程使用MobileFirst 8.0在SITServer中注册我的应用程序

1)遇到这个错误:

mfpdev app register SITServer

验证服务器配置...错误:无法连接到' http://xxx.xxx.xxx.xxx:9080 '上的服务器'SITServer'。 原因:无法设置运行时详细信息:在位置0的JSON中出现意外的令牌:HTTP 404 - 未找到

$ mfpdev server info

2)是否由服务器版本的差异引起? 我的本地服务器版本是8.0.0-2016101416,SITServer版本是8.0.0.00-20160822-2140

I'm trying to register my app in SITServer using MobileFirst 8.0 by following this tutorial

1) Hitting this error:

mfpdev app register SITServer

Verifying server configuration... Error: Cannot connect to server 'SITServer' at 'http://xxx.xxx.xxx.xxx:9080'. Reason: Failed to set runtime details.: Unexpected token < in JSON at position 0: HTTP 404 - Not Found

$ mfpdev server info

2) Is it caused by the difference in server version? My Local server version is 8.0.0-2016101416 and SITServer version is 8.0.0.00-20160822-2140

最满意答案

我怀疑这是因为您对server.xml所做的一些更改; 你没有提到你做了哪些改变,所以我建议仔细检查那些(改变这些的任何真正原因?)。

无论哪种方式,都支持HTTP和HTTPS,是的。

I suspect this happened due to some of the changes you've made to the server.xml; you did not mention which changes you've done so I would advise to double check those (any real reason to change these?).

Either way, both HTTP and HTTPS are supported, yes.

更多推荐