Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1520

patched references to missing field DEFAULT_PARTITION in org.jboss.metadata.ClusterConfigMetaData

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • None
    • None
    • Clustering
    • None

      This is the first time I submit anything here.. so please be patient to me

      Module jboss-head failed to compile as in 1.7.6.1 version of org.jboss.metadata.ClusterConfigMetaData constant:
      public final static String DEFAULT_PARTITION = "DefaultPartition";
      was replaced with default partition logic in org.jboss.system.server.ServerConfigUtil cvs version 1.3 with method:
      public static String getDefaultPartitionName()

      However, there are still references to DEFAULT_PARTITION in files:

      1. org.jboss.ha.hasessionstate.server.HASessionStateImpl cvs version 1.15 at line 54:
      protected final String DEFAULT_PARTITION_JNDI_NAME = org.jboss.metadata.ClusterConfigMetaData.DEFAULT_PARTITION;
      ^^^^^^^^^^^^^^^^^^^^^^
      I suggest changing to:

      protected final String DEFAULT_PARTITION_JNDI_NAME = org.jboss.system.server.ServerConfigUtil.getDefaultPartitionName();

      2. org.jboss.ha.framework.server.ClusterPartition cvs version 1.36 at line 54:
      protected String partitionName = org.jboss.metadata.ClusterConfigMetaData.DEFAULT_PARTITION;
      ^^^^^^^^^^^^^^^^^^^^^^
      I suggest changing to:

      protected String partitionName = org.jboss.system.server.ServerConfigUtil.getDefaultPartitionName();

      Below are build errors:

      D:\jboss\jboss-head\cluster\src\main\org\jboss\ha\framework\server\ClusterPartition.java:54: cannot find symbol
      symbol : variable DEFAULT_PARTITION
      location: class org.jboss.metadata.ClusterConfigMetaData
      protected String partitionName = org.jboss.metadata.ClusterConfigMetaData.DEFAULT_PARTITION;
      ^
      D:\jboss\jboss-head\cluster\src\main\org\jboss\ha\hasessionstate\server\HASessionStateImpl.java:54: cannot find symbol
      symbol : variable DEFAULT_PARTITION
      location: class org.jboss.metadata.ClusterConfigMetaData
      protected final String DEFAULT_PARTITION_JNDI_NAME = org.jboss.metadata.ClusterConfigMetaData.DEFAULT_PARTITION;
      ^

      I hope it may be useful and the format of my message is readable and this is the right place to post this piece of information.

      Best regards,

      Marcin Mieszek

            adrian.brock Adrian Brock (Inactive)
            mmieszek_jira Marcin Mieszek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: