Maven TC plugin: There isn't away to specify which server to start if you have 
2 servers set up for HA
------------------------------------------------------------------------------------------------------

                 Key: CDV-511
                 URL: https://jira.terracotta.org/jira//browse/CDV-511
             Project: Community Development
          Issue Type: Bug
    Affects Versions: trunk-nightly
            Reporter: Hung Huynh
            Assignee: Issue Review Board


Currently the plugin assumes only 1 server is found in tc-config.xml. If you 
have two servers, it won't work since it doesn't know which one to start. There 
isn't a way to specify it in the pom.

com.tc.config.schema.setup.ConfigurationSetupException: 
*******************************************************************************
Multiple <server> elements are defined in the configuration file. As such, each 
server that you start needs to know which configuration it should use.

However, this server couldn't figure out which one it is -- it thinks it's 
called 'olympus' (which, by default, is the host name of this machine), but 
you've only created <server> elements in the config file called 'server1', and 
'server2'.

Please re-start the server with a '-n <name>' argument on the command line to 
tell this server which one it is, or change the 'name' attributes of the 
<server> elements in the config file as appropriate.
*******************************************************************************

tc-config:

  <servers>
    <server host="%i" name="server1">
      <dso-port>9510</dso-port>
      <jmx-port>9520</jmx-port>
      <data>target/terracotta/server1/server-data</data>
      <logs>target/terracotta/server1/server-log</logs>
      <dso>
        <persistence>
          <mode>permanent-store</mode>
        </persistence>
      </dso>
      <l2-group-port>9530</l2-group-port>
    </server>
    <server host="%i" name="server2">
      <dso-port>9511</dso-port>
      <jmx-port>9521</jmx-port>
      <data>target/terracotta/server2/server-data</data>
      <logs>target/terracotta/server2/server-logs</logs>
      <dso>
        <persistence>
          <mode>permanent-store</mode>
        </persistence>
      </dso>
      <l2-group-port>9531</l2-group-port>
    </server>
    <ha>
      <mode>networked-active-passive</mode>
      <networked-active-passive>
        <election-time>5</election-time>
      </networked-active-passive>
    </ha>
  </servers>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to