2014-07-11 172 views
2

Im試圖運行Terracotta服務器,並且下面是配置文件。配置錯誤

<?xml version="1.0" encoding="UTF-8" ?> 
    <tc:tc-config xmlns:tc="http://www.terracotta.org/config" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-9.xsd"> 
     <servers> 
     <server host="localhost" name="master"> 
      <!-- Specify the path where the server should store its data. --> 
      <data>/x01/terracotta/masterServerData</data> 
      <!-- Specify the port where the server should listen for client 
      traffic. --> 
      <tsa-port>9510</tsa-port> 
      <jmx-port>9520</jmx-port> 
      <tsa-group-port>9530</tsa-group-port> 
      <!-- Enable BigMemory on the server. --> 
      <dataStorage size="4g"> 
       <offheap size="2g"/> 
       <!-- Hybrid storage is optional. --> 
       <hybrid/> 
      </dataStorage> 
     </server> 
     <!-- Add the restartable element for Fast Restartability (optional). --> 
     <restartable enabled="true"/> 
     </servers> 
     <clients> 
     <logs>logs-%i</logs> 
     </clients> 
    </tc:tc-config> 

然後我得到以下錯誤。

Fatal Terracotta startup exception: 

******************************************************************************* 
The configuration data in the base configuration from file at '/x01/terracotta/terracotta-3.7.7/tc-config.xml' does not obey the Terracotta schema: 
    [0]: Line 11, column 12: Expected elements 'authentication http-authentication index logs data-backup statistics dso-port jmx-port l2-group-port dso security' instead of 'tsa-port' here in element server 
    [1]: Line 13, column 12: Expected elements 'authentication http-authentication index logs data-backup statistics dso-port l2-group-port dso security' instead of 'tsa-group-port' here in element server 
    [2]: Line 15, column 12: Expected elements 'authentication http-authentication index logs data-backup statistics dso-port l2-group-port dso security' instead of 'dataStorage' here in element server 
    [3]: Line 22, column 9: Expected elements 'server mirror-groups ha update-check' instead of 'restartable' here in element servers 

******************************************************************************* 

任何人請幫我這個。

+0

我想你應該更好地問這個問題http://serverfault.com/ – Zangdak

+0

是的。但他們仍然只有tomcat標籤。沒有兵馬俑標籤。 – ambarox

回答

3

您正在運行Terracotta 3.7,但您的配置文件是爲Terracotta 4.x設置的。要麼升級兵馬俑,要麼更新你的tc-config.xml。

看看documentation for configuring Terracotta 3.x。特別是:

  • TSA-端口應DSO端口
  • TSA-組端口應是L2基團的端口
  • 數據存儲應該下dso->持久

有在舊版本的Terracotta中還有其他幾個細微差別,所以請熟悉您的版本的適當結構以確保您完全按照您的需要進行配置。

+0

泰克斯人現在我有一些其他的問題。 http://stackoverflow.com/questions/24772952/tomcat-clustering-with-terracotta – ambarox

+0

對不起,我對Vaadin一無所知。 – Cameron