IBM Social Business ToolKit の使用を開始するために、次のガイドラインに従っています: https://www.ibmdw.net/social/getting-started-as-java-developer/
そして、リストされているコミュニティ (/myapp.contextroot/GetMyCommunity.jsp) を取得しようとすると、応答が返されます (application/javascript):
if(typeof _sbt=='undefined' || window._sbt_bridge_compat)
{_sbt=0;
if(typeof define=='undefined'){
dojo.registerModulePath('sbt','http://localhost:8080/sbt/js/sdk/sbt');
dojo.registerModulePath('sbt._bridge','http://localhost:8080/sbt/js/sdk/_bridges/dojo');
dojo.registerModulePath('sbt.widget','http://localhost:8080/sbt/js/sdk/dojo');
dojo.require('sbt._bridge.amdcompat');
}
else {
dojo.registerModulePath('sbt','http://localhost:8080/sbt/js/sdk/sbt');
dojo.registerModulePath('sbt/_bridge','http://localhost:8080/sbt/js/sdk/_bridges/dojo-amd');
dojo.registerModulePath('sbt/widget','http://localhost:8080/sbt/js/sdk/dojo2');
}
define('sbt/config',['sbt/ErrorTransport','sbt/Endpoint'],
function(ErrorTransport,Endpoint){
window.sbt = {};
sbt.Properties={"libraryUrl":"http:\/\/localhost:8080\/social.helloworld\/library","serviceUrl":"http:\/\/localhost:8080\/social.helloworld\/service","sbtUrl":"http:\/\/localhost:8080\/sbt\/js\/sdk"};
sbt.Endpoints={
'sametime':new Endpoint({"invalid":"true","transport":new ErrorTransport('sametime','Required endpoint is not available: sametime')}),
'domino':new Endpoint({"invalid":"true","transport":new ErrorTransport('domino','Required endpoint is not available: domino')}),
'smartcloud':new Endpoint({"invalid":"true","transport":new ErrorTransport('smartcloud','Required endpoint is not available: smartcloud')}),
'connections':new Endpoint({"invalid":"true","transport":new ErrorTransport('connections','Required endpoint is not available: connections')})};
return sbt;
}
);
}
どうにかして JS ランタイムを設定する必要があるようです。私は正しいですか?
と
ガイドライン ドキュメントのポイント #8 で、WebContent\WEB-INF フォルダーにファイル managed-beans.xml を作成するように指示されています。空にする必要がありますか?設定方法は?
参考までに: com.ibm.sbt.sample.web は、独自の IBM Connections インストールに対して魅力的に動作します。
使用:
- sbtsdk-1.0.0.20130603-0843
- 事前構成された apache-tomcat-7.0.30
- eclipse Juno (EE 開発者向け)
- 独自のサーバー上の IBM Connection 4
更新: 私は ibmsbt のチームにその間違いについて書き、修正されました。これで、そのチュートリアルにエラーはなくなりました。どうぞ!