2013-02-13 3 views
1

뮬 스튜디오에서 약간의 개발을하고 있습니다. 2 개의 다른 프로젝트에 2 개의 REST 서비스가 있고 내 환경에서 둘 다 실행하려고합니다. 독립적으로 실행하면 정상적으로 실행됩니다. 포트 8081에뮬 스튜디오 복수 프로젝트 실행 연결이 거부되었습니다

서비스 A는 I 포트 8083

을에 서비스 B에 대해 같은 포트 8081에 대한 서비스 A를위한 뮬 응용 프로그램으로 실행하고 할 8083

포트에서 서비스 B (계정)를 호출입니다

BI가 서비스 콜 아웃으로 바뀌면 아래 오류가 발생합니다.

도움 주셔서 감사합니다.

`ERROR 2013-02-13 16:03:05,213 [[OpportunityAccountByOpportunityId].connector.http.mule.default.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy: 
******************************************************************************** 
Message    : Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=http://`localhost`:8083/Account/1_0/AccountReadById?id=0013000000HQY30AAH, connector=HttpConnector 
{ 
    name=connector.http.mule.default 
    lifecycle=start 
    this=6c22e349 
    numberOfConcurrentTransactedReceivers=4 
    createMultipleTransactedReceivers=true 
    connected=true 
    supportedProtocols=[http] 
    serviceOverrides=<none> 
} 
, name='endpoint.http.`localhost`.8083.Account.1.0.AccountReadById.id.0013000000HQY30AAH', mep=REQUEST_RESPONSE, properties={id=0013000000HQY30AAH, http.method=GET}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8, disableTransportTransformer=false}. Message payload is of type: GetMethod 
Code     : MULE_ERROR--2 
-------------------------------------------------------------------------------- 
Exception stack is: 
1. Connection refused: connect (java.net.ConnectException) 
    java.net.PlainSocketImpl:-2 (null) 
2. Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=http://`localhost`:8083/Account/1_0/AccountReadById?id=0013000000HQY30AAH, connector=HttpConnector 
{ 
    name=connector.http.mule.default 
    lifecycle=start 
    this=6c22e349 
    numberOfConcurrentTransactedReceivers=4 
    createMultipleTransactedReceivers=true 
    connected=true 
    supportedProtocols=[http] 
    serviceOverrides=<none> 
} 
, name='endpoint.http.`localhost`.8083.Account.1.0.AccountReadById.id.0013000000HQY30AAH', mep=REQUEST_RESPONSE, properties={id=0013000000HQY30AAH, http.method=GET}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8, disableTransportTransformer=false}. Message payload is of type: GetMethod (org.mule.api.transport.DispatchException) 
    org.mule.transport.http.HttpClientMessageDispatcher:155 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transport/DispatchException.html) 
-------------------------------------------------------------------------------- 
Root Exception stack trace: 
java.net.ConnectException: Connection refused: connect 
     at java.net.PlainSocketImpl.socketConnect(Native Method) 
     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) 
     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) 
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) 
********************************************************************************` 
+0

마치 애플리케이션 A가 중지 된 것처럼 보입니다. 여전히 실행 중인지 확인하십시오. –

+0

팀이 결정한 것은 코드 관리 관점에서 다른 프로젝트의 다른 서비스를 유지하면서 모든 프로젝트를 하나로 통합하여 개발 서버에 배포하는 것입니다. 답변 해 주셔서 감사합니다. – warpdriv

답변

1

현재 당신이 jira에서 볼 수있는 동시에 여러 응용 프로그램을 실행할 수 없습니다.

당신이이 옵션이이 문제를 해결하려면 다음

  1. 두 노새 응용 프로그램에 따라 다릅니다 toghether 중 하나 Functional testcase
  2. 를 사용하여 내 org.mule.MuleServer 메인 클래스를 모든 흐름을 실행하는 별도의 통합 테스트 프로젝트를 만듭니다 로드하려는 모든 설정 파일을 전달하십시오.