2013-03-07 59 views
0

我無法在CentOS服務器上公開http端點/地址。最容易混淆的部分是我們能夠將其他端點公開爲ajax等,這些都在mule安裝的示例包中。我無法公開這個簡單的回聲流程。我甚至嘗試了明確定義端點引用的http連接器的替代方法..仍然無效。我真的很無法理解什麼錯......這個帖子9002甚至沒有顯示出來在netstat的當我部署的應用程序成功騾子服務器...公開mule http入站端點

下面的代碼:

<mule xmlns="http://www.mulesoft.org/schema/mule/core" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:http="http://www.mulesoft.org/schema/mule/http" 
xsi:schemalocation=" 
    http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd 
    http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.2/mule-http.xsd"> 

<description> 
    Sample Flows 
</description> 

<flow name="echo-flow"> 
    <http:inbound-endpoint address="http://0.0.0.0:9002/echo" /> 
    <echo-component /> 
</flow> 

並且正在使用下面的pom.xml,雖然這個示例應用程序並不要求所有的傳輸和模塊都在我的原始應用程序中使用它們,所以使用相同的內容。

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
    <modelVersion>4.0.0</modelVersion> 

    <groupId>mule.user</groupId> 
    <artifactId>valexIntegration-esb</artifactId> 
    <version>1.0.0-SNAPSHOT</version> 
    <packaging>mule</packaging> 

    <name>Self-Contained Standalone Mule Hello World</name> 
    <description>The sources for this application were copied from Mule distributable</description> 

    <properties> 
    <mule.version>3.3.0</mule.version> 
    </properties> 

    <build> 
    <plugins> 
      <plugin> 
       <groupId>org.mule.tools</groupId> 
       <artifactId>maven-mule-plugin</artifactId> 
       <version>1.7</version> 
       <extensions>true</extensions> 
      </plugin> 
    </plugins> 
    <resources> 
     <resource> 
     <directory>src/main/app</directory> 
     </resource> 
     <resource> 
     <directory>src/main/resources</directory> 
     </resource> 
    </resources> 
    </build> 

    <dependencies> 
    <dependency> 
     <groupId>org.codehaus.groovy</groupId> 
     <artifactId>groovy-all</artifactId> 
     <version>1.8.1</version> 
    </dependency> 

    <dependency> 
     <groupId>org.mule</groupId> 
     <artifactId>mule-core</artifactId> 
     <version>${mule.version}</version> 
    </dependency> 

    <dependency> 
     <groupId>org.mule</groupId> 
     <artifactId>mule-core</artifactId> 
     <version>${mule.version}</version> 
     <scope>test</scope> 
     <type>test-jar</type> 
    </dependency> 

    <dependency> 
     <groupId>org.mule.modules</groupId> 
     <artifactId>mule-module-builders</artifactId> 
     <version>${mule.version}</version> 
    </dependency> 

    <dependency> 
     <groupId>org.mule.modules</groupId> 
     <artifactId>mule-module-scripting</artifactId> 
     <version>${mule.version}</version> 
    </dependency> 

    <dependency> 
     <groupId>org.mule.transports</groupId> 
     <artifactId>mule-transport-vm</artifactId> 
     <version>${mule.version}</version> 
    </dependency> 

    <dependency> 
     <groupId>org.mule.transports</groupId> 
     <artifactId>mule-transport-http</artifactId> 
     <version>${mule.version}</version> 
    </dependency> 

    <dependency> 
     <groupId>org.mule.transports</groupId> 
     <artifactId>mule-transport-servlet</artifactId> 
     <version>${mule.version}</version> 
    </dependency> 

    <dependency> 
     <groupId>org.mule.transports</groupId> 
     <artifactId>mule-transport-stdio</artifactId> 
     <version>${mule.version}</version> 
    </dependency> 

    <dependency> 
    <groupId>mysql</groupId> 
    <artifactId>mysql-connector-java</artifactId> 
    <version>5.1.9</version> 
    </dependency> 
    </dependencies> 

    <repositories> 
    <repository> 
     <id>mule-deps</id> 
     <name>Mule Dependencies</name> 
     <url>http://dist.codehaus.org/mule/dependencies/maven2</url> 
    </repository> 
    </repositories> 
</project> 
+0

這不是隻適用於CentOS服務器,但在我的Windows 8上正常工作...其他騾應用程序有ajax和碼頭入站(入口點)端點工作..不知道什麼時候出錯...任何幫助是高度讚賞.. – Jeniffer 2013-03-07 16:07:17

回答

0

看來問題不在於流量配置或者甚至在騾子本身。 我建議你看在操作系統領域的線索,例如:

  1. 是端口9002中的所有服務器的網絡接口可用?由於您試圖將其綁定到0.0.0.0地址,因此它會嘗試將它們綁定到所有接口。

  2. 騾子啓動日誌中是否存在一些錯誤?或者它開始好嗎?

  3. 如果沒有錯誤,您可以從服務器內部訪問地址嗎?不僅是127.0.0.1:9002,還有所有其他可能的網絡接口(以及它們各自的IP地址)。

  4. 如果您可以從機器內部訪問,但不能從外部訪問(或者即使無法從內部訪問),您是否檢查過是否存在某些防火牆規則或某些端口阻止或某些其他安全性在這臺服務器上執行的措施?不僅要考慮內核和內部規則,還要考慮路由器或防火牆中的網絡規則。

請給我們提供騾子啓動日誌,以便我們可以得到更多關於可以發生的事情的線索。