3 Replies Latest reply on Jun 10, 2005 1:40 AM by Deepak Nohwal

    Problem while using system property in variable

    Deepak Nohwal Newbie

      Hi,

      We were planning to upgrade to JBoss 3.2.7 from 3.2.6. With this, we have to upgrade to JBoss Cache 1.2 as well. Earlier in 3.2.6, my configuration xml file for TreeCache contained the following entry:

      <attribute name="CacheLoaderConfig">${jboss.server.data.dir}/myCache</attribute>


      This was working fine. However in 1.2, this property is no longer a String but rather now expects a Properties value "location". I found the following link:

      http://sourceforge.net/project/shownotes.php?release_id=288672

      This says we should do the following:

      <attribute name="CacheLoaderConfig">
       location = ${jboss.server.data.dir}/myCache
      </attribute>


      But this creates problem now and I receive the error:

      FileNotFoundException: c:JBoss3.2.7serverdefaultdata/myCache

      As you can notice, the value of the variable "jboss.server.data.dir" is being received after its "/" getting truncated. I tried searching on the NET but of no use. If I provide a hard-coded path, it works fine. Can anyone tell me what am I doing wrong?

      Thanks,
      Deepak.