2011-07-05 11 views
0

私はこれを実行すると:Mule 2のURLだけを指定してhttpsサーバに接続する方法はありますか?

<?xml version="1.0" encoding="UTF-8"?> 
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.2" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:http="http://www.mulesource.org/schema/mule/http/2.2" 
    xmlns:https="http://www.mulesource.org/schema/mule/https/2.2" 
    xsi:schemaLocation=" 
     http://www.mulesource.org/schema/mule/http/2.2 http://www.mulesource.org/schema/mule/http/2.2/mule-http.xsd 
     http://www.mulesource.org/schema/mule/https/2.2 http://www.mulesource.org/schema/mule/https/2.2/mule-https.xsd 
     http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd"> 

    <model> 
     <service name="ConnectToHTTPS"> 
      <inbound> 
       <http:inbound-endpoint host="localhost" 
             port="9000" 
             synchronous="true"/> 
      </inbound> 
      <outbound> 
       <chaining-router> 
        <outbound-endpoint address="https://localhost" 
             synchronous="true"/> 
       </chaining-router> 
      </outbound> 
     </service> 
    </model> 
</mule> 

を、私はこれを取得:

... 
ERROR 2011-07-05 13:06:28,826 [main] org.mule.MuleServer: 
******************************************************************************** 
Message    : Failed to invoke lifecycle phase "initialise" on object: HttpsConnector{this=1efe475, started=false, initialised=false, name='connector.https.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=false, supportedProtocols=[https], serviceOverrides=null} 
Type     : org.mule.api.lifecycle.LifecycleException 
Code     : MULE_ERROR-70228 
JavaDoc    : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/LifecycleException.html 
******************************************************************************** 
Exception stack is: 
1. The Key password cannot be null (java.lang.IllegalArgumentException) 
    org.mule.api.security.tls.TlsConfiguration:290 (null) 
2. Failed to invoke lifecycle phase "initialise" on object: HttpsConnector{this=1efe475, started=false, initialised=false, name='connector.https.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=false, supportedProtocols=[https], serviceOverrides=null} (org.mule.api.lifecycle.LifecycleException) 
    org.mule.lifecycle.DefaultLifecyclePhase:277 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/LifecycleException.html) 
******************************************************************************** 
... 

答えて

2

あなたはアウトバウンドHTTPS呼び出しを行うことができるように明示的にクライアントキーストアとHTTPSコネクタを設定する必要があります。これはhereで説明されています(この文書を読むには無料登録が必要です)。本質的には

、それはこれに沸く:

<https:connector name="httpConnector"> 
    <https:tls-client path="clientKeystore" storePassword="mulepassword"/> 
</https:connector> 
+0

は(:// localhost' 'HTTPSから得)証明書の場所をPATH''ですか?もしそうなら、私は 'storePassword'をどのように知っていますか? – Tshepang

+1

いいえ、pathは、標準キーストアツールを使用して作成する必要があるJavaキーストアを示します。そうすると、パスワードをピックアップします。 –

+0

コメントはあまりにも限られている... http://stackoverflow.com/q/6623037 – Tshepang

関連する問題