2014-07-11 2 views
2

Im Essayer d'exécuter le serveur Terracotta et Ci-dessous le fichier de configuration.Erreur de configuration

<?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> 

Puis j'ai eu une erreur suivante.

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 

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

Can Anyone S'il vous plaît aidez-moi avec ceci.

+0

Je pense que vous devriez mieux poser cette question sur http://serverfault.com/ – Zangdak

+0

Oui. mais ils ont tout de même un tag tomcat. Aucune étiquette en terre cuite. – ambarox

Répondre

3

Vous exécutez Terracotta 3.7, mais votre fichier de configuration est configuré pour Terracotta 4.x. Mettez à niveau Terracotta ou mettez à jour votre fichier tc-config.xml.

Jetez un coup d'œil au documentation for configuring Terracotta 3.x. En particulier:

  • tsa-port doit être DSO port
  • tsa-groupe-port doit être L2- groupe port
  • DataStorage devrait être sous dso-> persistance

Il Il existe plusieurs autres différences subtiles dans l'ancienne version de Terracotta, alors familiarisez-vous avec la structure appropriée pour votre version afin de vous assurer qu'elle est configurée exactement comme vous le souhaitez.

+0

Thaks man Maintenant, j'ai un autre problème. http://stackoverflow.com/questions/24772952/tomcat-clustering-with-terracotta – ambarox

+0

Désolé, je ne connais rien à Vaadin. – Cameron