This is quite interesting. Could you please create a JIRA for this
problem? I'm not completely sure y this happens but it could be some
problems with windows Paths e.g. or some miss-configurations in your
environment. Maybe we could workaround this by providing an "own"
settings.xml with Karaf. Still this requires more research.

Thanks and kind regards,
Andreas

On Tue, Apr 12, 2011 at 6:04 PM, Hervé BARRAULT
<[email protected]> wrote:
> Hi,
>
> I have found a workaround for my case :
> MavenSettingsImpl constructor tries to read a maven settings.xml file to
> pre-configure it (at different locations :
>    System.getProperty( "user.home" ) + "/.m2/settings.xml"
>    System.getProperty( "maven.home" ) + "/conf/settings.xml"
>    System.getenv( "M2_HOME" ) + "/conf/settings.xml" .
>
> So, in the bat launcher i set the M2_HOME and i put a well configured
> settings.xml in the defined directory it solves the issue.
>
> Anyone has reproduced the behavior ?
>
> Thanks
> Herve
>
>
>
> 2011/3/30 Hervé BARRAULT <[email protected]>
>
>> Hi, i'm doing similar test with karaf 2.2.0 to see if it also happens.
>>
>> I have put a breakpoint at this point :
>> org.apache.felix.cm.impl.UpdaterThread ( line 67) : begin of the loop to
>> read the queue.
>>
>> I start karaf with the default configuration and attach the debugger.
>>
>> I have the following errors (only in console)
>>
>> karaf@root> [Thread-6] ERROR
>> org.apache.karaf.features.internal.FeaturesServiceImpl - Error installing
>> boot feature config: feature not found
>> [Thread-6] ERROR org.apache.karaf.features.internal.FeaturesServiceImpl -
>> Error installing boot feature ssh: feature not found
>> [Thread-6] ERROR org.apache.karaf.features.internal.FeaturesServiceImpl -
>> Error installing boot feature management: feature not found
>>
>> All the bundles in startup.properties are loaded and started correctly
>> (probably using directly the system directory without using mvn) but
>> features are using maven and fail to load.
>>
>> And with some commands i have the following answers (even after removing
>> breakpoint and running the thread):
>>     karaf@root> features:listrepositories
>>     No repositories available.
>>     karaf@root> features:listurl
>>      Loaded   URI
>>     No repository URLs are set.
>>     karaf@root> features:list
>>     No features available.
>>
>> In the normal case, i have the following :
>> karaf@root> features:listrepositories
>> Repository
>> karaf-enterprise-2.2.0
>> karaf-2.2.0
>> karaf@root> features:listUrl
>>  Loaded   URI
>>   true
>> mvn:org.apache.karaf.assemblies.features/enterprise/2.2.0/xml/features
>>   true
>> mvn:org.apache.karaf.assemblies.features/standard/2.2.0/xml/features
>> karaf@root> features:list
>> State         Version           Name
>> Repository             Description
>> [uninstalled] [0.3            ] transaction
>> karaf-enterprise-2.2.0 OSGi Transaction Manager
>> [uninstalled] [0.3            ] jpa
>> karaf-enterprise-2.2.0 OSGi Persistence Container
>> [uninstalled] [0.3            ] jndi
>> karaf-enterprise-2.2.0 OSGi Service Registry JNDI access
>> [uninstalled] [0.3            ] application-without-isolation
>> karaf-enterprise-2.2.0
>> [uninstalled] [2.5.6.SEC02    ] spring                        karaf-2.2.0
>> [uninstalled] [2.5.6.SEC02    ] spring-web                    karaf-2.2.0
>> [uninstalled] [3.0.5.RELEASE  ] spring                        karaf-2.2.0
>> [uninstalled] [3.0.5.RELEASE  ] spring-web                    karaf-2.2.0
>> [uninstalled] [1.2.1          ] spring-dm                     karaf-2.2.0
>> [uninstalled] [1.2.1          ] spring-dm-web                 karaf-2.2.0
>> [uninstalled] [2.2.0          ] wrapper                       karaf-2.2.0
>> [uninstalled] [2.2.0          ] obr                           karaf-2.2.0
>> [installed  ] [2.2.0          ] config                        karaf-2.2.0
>> [uninstalled] [7.2.2.v20101205] jetty                         karaf-2.2.0
>> [uninstalled] [7.2.2.v20101205] jetty-jaas                    karaf-2.2.0
>> [uninstalled] [2.2.0          ] http                          karaf-2.2.0
>> [uninstalled] [2.2.0          ] war                           karaf-2.2.0
>> [uninstalled] [2.2.0          ] kar                           karaf-2.2.0
>> [uninstalled] [2.2.0          ] webconsole-base               karaf-2.2.0
>> [uninstalled] [2.2.0          ] webconsole                    karaf-2.2.0
>> [installed  ] [2.2.0          ] ssh                           karaf-2.2.0
>> [installed  ] [2.2.0          ] management                    karaf-2.2.0
>> [uninstalled] [2.2.0          ] eventadmin                    karaf-2.2.0
>> [uninstalled] [2.2.0          ] jasypt-encryption             karaf-2.2.0
>>
>> I hope it can help you.
>>
>> Herve
>>
>>
>> PS :
>> I don't know if it is normal but i have noticed in Karaf 2.2.0 :
>>
>> the feature *management* is already "created" by the startup
>> standard-2.2.0-features.xml
>>     <feature name="management" version="2.2.0">
>>
>> <bundle>mvn:org.apache.karaf/org.apache.karaf.management/2.2.0</bundle>
>>         <bundle>mvn:org.apache.aries.jmx/org.apache.aries.jmx/0.3</bundle>
>>
>> <bundle>mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint/0.3</bundle>
>>     </feature>
>>
>> startup.properties ( lines : 63 - 65)
>>
>> org/apache/karaf/org.apache.karaf.management/2.2.0/org.apache.karaf.management-2.2.0.jar=30
>>
>> org/apache/aries/jmx/org.apache.aries.jmx/0.3/org.apache.aries.jmx-0.3.jar=30
>>
>> org/apache/aries/jmx/org.apache.aries.jmx.blueprint/0.3/org.apache.aries.jmx.blueprint-0.3.jar=30
>>
>>
>> and for the feature *ssh* the bundles are all already defined in
>> startup.properties (lines : 67-69)
>> org/apache/mina/mina-core/2.0.1/mina-core-2.0.1.jar=30
>> org/apache/sshd/sshd-core/0.5.0/sshd-core-0.5.0.jar=30
>>
>> org/apache/karaf/shell/org.apache.karaf.shell.ssh/2.2.0/org.apache.karaf.shell.ssh-2.2.0.jar=30
>>
>

Reply via email to