0

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 インストールに対して魅力的に動作します。

使用:

  1. sbtsdk-1.0.0.20130603-0843
  2. 事前構成された apache-tomcat-7.0.30
  3. eclipse Juno (EE 開発者向け)
  4. 独自のサーバー上の IBM Connection 4

更新: 私は ibmsbt のチームにその間違いについて書き、修正されました。これで、そのチュートリアルにエラーはなくなりました。どうぞ!

4

1 に答える 1

1

問題の原因は、ポイント 5 のドキュメントに誤りがあることだと思います。ライブラリ サーブレットの URL パターンは、/* ではなく /library/* です。

これで問題が解決しない場合は、 GetMyCommunity.jsp のコードを教えていただけますか? そうすることで、問題の原因をよりよく理解できるようになります。

managed-beans.xml の場合、エンドポイントと環境の構成をファイルに入力する必要があります。参考として、com.ibm.sbt.sample.web アプリケーションで使用されるサンプル ファイルを参照できます。SDK ビルドの sbtsdk\samples\war\sbt.sample.web\WEB-INF に移動します。sbt.sample.web アプリケーションを展開する必要があります。「connections」エンドポイントの変数 %{connections.url} は、独自の接続インスタンスへの URL に置き換えるか、ファイル sbt.properties の変数 connections.url の値を変更できることに注意してください。

また、ここには managed-beans.xml に関する詳細情報を提供するリンクがあり ます http://www-10.lotus.com/ldd/appdevwiki.nsf/xpDocViewer.xsp?lookupName=IBM+Social+Business+Toolkit+SDK+documentation# action=openDocument&res_title=Connecting_to_other_systems_SDK1.0&content=pdcontent

これで問題が解決することを願っています

于 2013-06-24T06:27:35.137 に答える