karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bengt Rodehav (JIRA)" <j...@apache.org>
Subject [jira] Created: (KARAF-474) Problems with custom.properties
Date Sun, 20 Feb 2011 21:40:38 GMT
Problems with custom.properties
-------------------------------

                 Key: KARAF-474
                 URL: https://issues.apache.org/jira/browse/KARAF-474
             Project: Karaf
          Issue Type: Bug
          Components: runtime
    Affects Versions: 2.1.3
            Reporter: Bengt Rodehav


I have troubles getting custom.properties to work. Two questions:

1. Can I specify additional system properties somewhere? Or perhaps an additional location
(except for system.properties) where I can put my custom system.properties without having
to modify system.propereties?

2. I'm trying to add cglib as a bundle to start initially without modifying startup.properties.
I then created a custom.properties file where I put the following line:

karaf.auto.start.40=org/apache/servicemix/bundles/org.apache.servicemix.bundles.cglib/2.1_3_4/org.apache.servicemix.bundles.cglib-2.1_3_4.jar

But it doesn't work. On startup I get the following error message:

Error installing bundle  org/apache/servicemix/bundles/org.apache.servicemix.bun
dles.cglib/2.1_3_4/org.apache.servicemix.bundles.cglib-2.1_3_4.jar: java.lang.Ar
rayIndexOutOfBoundsException: 1

Also, the custom.properties that comes with Karaf is not empty. It contains the following
line:

karaf.systemBundlesStartLevel=50

If this is a default, then it shouldn't be in custom.properties. I think custom.properties
should be empty in the Karaf distribution. In fact one can argue that the file shouldn't be
included at all in the distribution and that it should be created if any customisation is
needed.

This was discussed in the following thread:

http://mail-archives.apache.org/mod_mbox/karaf-user/201102.mbox/browser

It started on the user list but continued on the dev list, here:

http://mail-archives.apache.org/mod_mbox/karaf-dev/201102.mbox/browser


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message