Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2791

OSGI configuration properties are pre-padded with blank chars each time configuration file is saved by JBoss

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 7.0.2.Final
    • Server
    • None
    • Hide

      Start server and change something on the admin console and stop the server.
      Look at the properties and they have moved to the right.

      Show
      Start server and change something on the admin console and stop the server. Look at the properties and they have moved to the right.
    • Hide

      As a workaround, I found that placing all properties on the same line prevents them from shifting.

      <property name="org.jboss.osgi.system.modules">
      org.apache.commons.logging,org.apache.log4j,org.jboss.as.osgi,org.slf4j,
      </property>
      ...
      <property name="org.osgi.framework.system.packages.extra">
      org.apache.commons.logging;version=1.1.1,org.apache.log4j;version=1.2,org.jboss.as.osgi.service;version=7.0,org.jboss.osgi.deployment.interceptor;version=1.0,org.jboss.osgi.spi.capability;version=1.0,org.jboss.osgi.spi.util;version=1.0,org.jboss.osgi.testing;version=1.0,org.jboss.osgi.vfs;version=1.0,org.slf4j;version=1.5.10,
      </property>

      Show
      As a workaround, I found that placing all properties on the same line prevents them from shifting. <property name="org.jboss.osgi.system.modules"> org.apache.commons.logging,org.apache.log4j,org.jboss.as.osgi,org.slf4j, </property> ... <property name="org.osgi.framework.system.packages.extra"> org.apache.commons.logging;version=1.1.1,org.apache.log4j;version=1.2,org.jboss.as.osgi.service;version=7.0,org.jboss.osgi.deployment.interceptor;version=1.0,org.jboss.osgi.spi.capability;version=1.0,org.jboss.osgi.spi.util;version=1.0,org.jboss.osgi.testing;version=1.0,org.jboss.osgi.vfs;version=1.0,org.slf4j;version=1.5.10, </property>

      Every time standalone-preview.xml is saved, OSGI properties (listed below) are pre-padded with 20 blank chars and are shifted to the right.

      <property name="org.jboss.osgi.system.modules">
      org.apache.commons.logging,
      org.apache.log4j,
      org.jboss.as.osgi,
      org.slf4j,
      </property>
      ...
      <property name="org.osgi.framework.system.packages.extra">
      org.apache.commons.logging;version=1.1.1,
      org.apache.log4j;version=1.2,
      org.jboss.as.osgi.service;version=7.0,
      org.jboss.osgi.deployment.interceptor;version=1.0,
      org.jboss.osgi.spi.capability;version=1.0,
      org.jboss.osgi.spi.util;version=1.0,
      org.jboss.osgi.testing;version=1.0,
      org.jboss.osgi.vfs;version=1.0,
      org.slf4j;version=1.5.10,
      </property>

      This is causing Arquillian to fail to deploy tests by the time the properties are shifted 8177 chars to the right.

      Please see: http://community.jboss.org/message/638105?tstart=0

            jgreene@redhat.com Jason Greene
            k11v22_jira Kayvan Mojarrad (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: