Re: Karaf 2.2.0 Startup with no internet Access

2011-03-31 Thread Hervé BARRAULT
Hi,
for my startup case, putting the 2 features files in the right directories
solved the problem.

system\org\apache\karaf\assemblies\features\enterprise\2.2.0\enterprise-2.2.0-features.xml

system\org\apache\karaf\assemblies\features\standard\2.2.0\standard-2.2.0-features.xml


Regards
Hervé


Re: Karaf 2.2.0 Startup with no internet Access

2011-03-31 Thread Jean-Baptiste Onofré

Agree. I made the test this morning.

I'm gonna fix that for Karaf 2.2.1 release (and also on the trunk).

Thanks
Regards
JB

On 03/31/2011 09:31 AM, Hervé BARRAULT wrote:

Hi,
for my startup case, putting the 2 features files in the right
directories solved the problem.

system\org\apache\karaf\assemblies\features\enterprise\2.2.0\enterprise-2.2.0-features.xml

system\org\apache\karaf\assemblies\features\standard\2.2.0\standard-2.2.0-features.xml


Regards
Hervé


Re: Karaf 2.2.0 Startup with no internet Access

2011-03-31 Thread Jean-Baptiste Onofré

You have the features descriptor if you take the Karaf tar.gz (for Unix).

If you download the zip (for Windows), the features files are not 
present in the system repo (there is not assemblies folder).


The issue is on the zip assembly.

Regards
JB



On 03/31/2011 09:58 AM, Andreas Pieber wrote:

ok, now I'm confused... The feature descriptors are already included
in the system repo:

pieber@coprime [09:57:31]
[~/projects/karaf/assemblies/apache-karaf/target] [karaf-2.2.x]
-  % tree 
apache-karaf-2.2.1-SNAPSHOT/system/org/apache/karaf/assemblies/features



apache-karaf-2.2.1-SNAPSHOT/system/org/apache/karaf/assemblies/features
├── enterprise
│   └── 2.2.1-SNAPSHOT
│   └── enterprise-2.2.1-SNAPSHOT-features.xml
└── standard
 └── 2.2.1-SNAPSHOT
 └── standard-2.2.1-SNAPSHOT-features.xml

4 directories, 2 files

Kind regards,
Andreas

On Thu, Mar 31, 2011 at 9:32 AM, Jean-Baptiste Onofréj...@nanthrax.net  wrote:

Agree. I made the test this morning.

I'm gonna fix that for Karaf 2.2.1 release (and also on the trunk).

Thanks
Regards
JB

On 03/31/2011 09:31 AM, Hervé BARRAULT wrote:


Hi,
for my startup case, putting the 2 features files in the right
directories solved the problem.


system\org\apache\karaf\assemblies\features\enterprise\2.2.0\enterprise-2.2.0-features.xml


system\org\apache\karaf\assemblies\features\standard\2.2.0\standard-2.2.0-features.xml


Regards
Hervé




Re: Karaf 2.2.0 Startup with no internet Access

2011-03-31 Thread Andreas Pieber
Yeah, windows :) Mhm, this seams to be a bug in the features plugin.
In the assembly pom it includes:

includeMvnBasedDescriptorstrue/includeMvnBasedDescriptors

This should include them (in theory). So you have to search in the
maven-features-plugin for the problem.

Kind regards,
Andreas

On Thu, Mar 31, 2011 at 10:03 AM, Jean-Baptiste Onofré j...@nanthrax.net 
wrote:
 You have the features descriptor if you take the Karaf tar.gz (for Unix).

 If you download the zip (for Windows), the features files are not present in
 the system repo (there is not assemblies folder).

 The issue is on the zip assembly.

 Regards
 JB



 On 03/31/2011 09:58 AM, Andreas Pieber wrote:

 ok, now I'm confused... The feature descriptors are already included
 in the system repo:

 pieber@coprime [09:57:31]
 [~/projects/karaf/assemblies/apache-karaf/target] [karaf-2.2.x]
 -  % tree
 apache-karaf-2.2.1-SNAPSHOT/system/org/apache/karaf/assemblies/features


            
 apache-karaf-2.2.1-SNAPSHOT/system/org/apache/karaf/assemblies/features
 ├── enterprise
 │   └── 2.2.1-SNAPSHOT
 │       └── enterprise-2.2.1-SNAPSHOT-features.xml
 └── standard
     └── 2.2.1-SNAPSHOT
         └── standard-2.2.1-SNAPSHOT-features.xml

 4 directories, 2 files

 Kind regards,
 Andreas

 On Thu, Mar 31, 2011 at 9:32 AM, Jean-Baptiste Onofréj...@nanthrax.net
  wrote:

 Agree. I made the test this morning.

 I'm gonna fix that for Karaf 2.2.1 release (and also on the trunk).

 Thanks
 Regards
 JB

 On 03/31/2011 09:31 AM, Hervé BARRAULT wrote:

 Hi,
 for my startup case, putting the 2 features files in the right
 directories solved the problem.



 system\org\apache\karaf\assemblies\features\enterprise\2.2.0\enterprise-2.2.0-features.xml



 system\org\apache\karaf\assemblies\features\standard\2.2.0\standard-2.2.0-features.xml


 Regards
 Hervé




Re: Karaf 2.2.0 Startup with no internet Access

2011-03-31 Thread Jean-Baptiste Onofré
Anyway, we have a workaround by copying the fileSet for the features 
descriptor :)


On 03/31/2011 10:28 AM, Andreas Pieber wrote:

Yeah, windows :) Mhm, this seams to be a bug in the features plugin.
In the assembly pom it includes:

includeMvnBasedDescriptorstrue/includeMvnBasedDescriptors

This should include them (in theory). So you have to search in the
maven-features-plugin for the problem.

Kind regards,
Andreas

On Thu, Mar 31, 2011 at 10:03 AM, Jean-Baptiste Onofréj...@nanthrax.net  
wrote:

You have the features descriptor if you take the Karaf tar.gz (for Unix).

If you download the zip (for Windows), the features files are not present in
the system repo (there is not assemblies folder).

The issue is on the zip assembly.

Regards
JB



On 03/31/2011 09:58 AM, Andreas Pieber wrote:


ok, now I'm confused... The feature descriptors are already included
in the system repo:

pieber@coprime [09:57:31]
[~/projects/karaf/assemblies/apache-karaf/target] [karaf-2.2.x]
-% tree
apache-karaf-2.2.1-SNAPSHOT/system/org/apache/karaf/assemblies/features



apache-karaf-2.2.1-SNAPSHOT/system/org/apache/karaf/assemblies/features
├── enterprise
│   └── 2.2.1-SNAPSHOT
│   └── enterprise-2.2.1-SNAPSHOT-features.xml
└── standard
 └── 2.2.1-SNAPSHOT
 └── standard-2.2.1-SNAPSHOT-features.xml

4 directories, 2 files

Kind regards,
Andreas

On Thu, Mar 31, 2011 at 9:32 AM, Jean-Baptiste Onofréj...@nanthrax.net
  wrote:


Agree. I made the test this morning.

I'm gonna fix that for Karaf 2.2.1 release (and also on the trunk).

Thanks
Regards
JB

On 03/31/2011 09:31 AM, Hervé BARRAULT wrote:


Hi,
for my startup case, putting the 2 features files in the right
directories solved the problem.



system\org\apache\karaf\assemblies\features\enterprise\2.2.0\enterprise-2.2.0-features.xml



system\org\apache\karaf\assemblies\features\standard\2.2.0\standard-2.2.0-features.xml


Regards
Hervé






Re: Karaf 2.2.0 Startup with no internet Access

2011-03-31 Thread Nicolas Jouanin
Hi,

I don't know if it's related, but here i'm behind an HTTP proxy, and when I
copy in deploy/ the following two features files, only test2 appears in
features list. It seems that when the XSD path is provided an internet
connection is not available (or not direct) the feature is ignored (see
test1).

test1.xml :
features xmlns=http://karaf.apache.org/xmlns/features/v1.0.0;

repositorymvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.0.0/xml/features/repository
  feature name=test1
featurehttp/feature
  /feature
/features

test2.xml:
features

repositorymvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.0.0/xml/features/repository
  feature name=test2
featurehttp/feature
  /feature
/features

features:list gives:
karaf@root features:list
State Version   Name
Repository Description
*[installed  ] [0.0.0  ] test2 repo-0**
[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] [1.0.0  ] namingrepo-0
[uninstalled] [1.0.0  ] transaction   repo-0
[uninstalled] [1.0.0  ] nmr   repo-0
[uninstalled] [1.0.0  ] nmr-audit repo-0
[uninstalled] [1.0.0  ] jbi   repo-0
[uninstalled] [1.0.0  ] jbi-cluster   repo-0
[uninstalled] [1.0.0  ] examples-nmr  repo-0
[uninstalled] [2.5.6.SEC02] springkaraf-2.2.0
[uninstalled] [2.5.6.SEC02] spring-webkaraf-2.2.0
[uninstalled] [3.0.5.RELEASE  ] springkaraf-2.2.0
[uninstalled] [3.0.5.RELEASE  ] spring-webkaraf-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  ] configkaraf-2.2.0
[installed  ] [7.2.2.v20101205] jetty karaf-2.2.0
[uninstalled] [7.2.2.v20101205] jetty-jaaskaraf-2.2.0
[installed  ] [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  ] webconsolekaraf-2.2.0
[installed  ] [2.2.0  ] ssh   karaf-2.2.0
[installed  ] [2.2.0  ] managementkaraf-2.2.0
[uninstalled] [2.2.0  ] eventadminkaraf-2.2.0
[uninstalled] [2.2.0  ] jasypt-encryption karaf-2.2.0
* Installed via deploy directory



2011/3/31 Jean-Baptiste Onofré j...@nanthrax.net

 Anyway, we have a workaround by copying the fileSet for the features
 descriptor :)


 On 03/31/2011 10:28 AM, Andreas Pieber wrote:

 Yeah, windows :) Mhm, this seams to be a bug in the features plugin.
 In the assembly pom it includes:

 includeMvnBasedDescriptorstrue/includeMvnBasedDescriptors

 This should include them (in theory). So you have to search in the
 maven-features-plugin for the problem.

 Kind regards,
 Andreas

 On Thu, Mar 31, 2011 at 10:03 AM, Jean-Baptiste Onofréj...@nanthrax.net
  wrote:

 You have the features descriptor if you take the Karaf tar.gz (for Unix).

 If you download the zip (for Windows), the features files are not present
 in
 the system repo (there is not assemblies folder).

 The issue is on the zip assembly.

 Regards
 JB



 On 03/31/2011 09:58 AM, Andreas Pieber wrote:


 ok, now I'm confused... The feature descriptors are already included
 in the system repo:

 pieber@coprime [09:57:31]
 [~/projects/karaf/assemblies/apache-karaf/target] [karaf-2.2.x]
 -% tree
 apache-karaf-2.2.1-SNAPSHOT/system/org/apache/karaf/assemblies/features



 apache-karaf-2.2.1-SNAPSHOT/system/org/apache/karaf/assemblies/features
 ├── enterprise
 │   └── 2.2.1-SNAPSHOT
 │   └── enterprise-2.2.1-SNAPSHOT-features.xml
 └── standard
 └── 2.2.1-SNAPSHOT
 └── standard-2.2.1-SNAPSHOT-features.xml

 4 directories, 2 files

 Kind regards,
 Andreas

 On Thu, Mar 31, 2011 at 9:32 AM, Jean-Baptiste Onofréj...@nanthrax.net
  wrote:


 Agree. I made the test this morning.

 I'm gonna fix that for Karaf 2.2.1 release (and also on the trunk).

 Thanks
 Regards
 JB

 On 03/31/2011 09:31 AM, Hervé BARRAULT wrote:


 Hi,
 

Re: Karaf 2.2.0 Startup with no internet Access

2011-03-31 Thread Achim Nierbeck
Hmm, interesting, this might be related to
https://issues.apache.org/jira/browse/KARAF-518

regards, Achim

2011/3/31 Nicolas Jouanin nicolas.joua...@gmail.com:
 Hi,

 I don't know if it's related, but here i'm behind an HTTP proxy, and when I
 copy in deploy/ the following two features files, only test2 appears in
 features list. It seems that when the XSD path is provided an internet
 connection is not available (or not direct) the feature is ignored (see
 test1).

 test1.xml :
 features xmlns=http://karaf.apache.org/xmlns/features/v1.0.0;

 repositorymvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.0.0/xml/features/repository
   feature name=test1
     featurehttp/feature
   /feature
 /features

 test2.xml:
 features

 repositorymvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.0.0/xml/features/repository
   feature name=test2
     featurehttp/feature
   /feature
 /features

 features:list gives:
 karaf@root features:list
 State Version   Name
 Repository Description
 [installed  ] [0.0.0  ] test2 repo-0*
 [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] [1.0.0  ] naming    repo-0
 [uninstalled] [1.0.0  ] transaction   repo-0
 [uninstalled] [1.0.0  ] nmr   repo-0
 [uninstalled] [1.0.0  ] nmr-audit repo-0
 [uninstalled] [1.0.0  ] jbi   repo-0
 [uninstalled] [1.0.0  ] jbi-cluster   repo-0
 [uninstalled] [1.0.0  ] examples-nmr  repo-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
 [installed  ] [7.2.2.v20101205] jetty karaf-2.2.0
 [uninstalled] [7.2.2.v20101205] jetty-jaas    karaf-2.2.0
 [installed  ] [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
 * Installed via deploy directory



 2011/3/31 Jean-Baptiste Onofré j...@nanthrax.net

 Anyway, we have a workaround by copying the fileSet for the features
 descriptor :)

 On 03/31/2011 10:28 AM, Andreas Pieber wrote:

 Yeah, windows :) Mhm, this seams to be a bug in the features plugin.
 In the assembly pom it includes:

 includeMvnBasedDescriptorstrue/includeMvnBasedDescriptors

 This should include them (in theory). So you have to search in the
 maven-features-plugin for the problem.

 Kind regards,
 Andreas

 On Thu, Mar 31, 2011 at 10:03 AM, Jean-Baptiste Onofréj...@nanthrax.net
  wrote:

 You have the features descriptor if you take the Karaf tar.gz (for
 Unix).

 If you download the zip (for Windows), the features files are not
 present in
 the system repo (there is not assemblies folder).

 The issue is on the zip assembly.

 Regards
 JB



 On 03/31/2011 09:58 AM, Andreas Pieber wrote:

 ok, now I'm confused... The feature descriptors are already included
 in the system repo:

 pieber@coprime [09:57:31]
 [~/projects/karaf/assemblies/apache-karaf/target] [karaf-2.2.x]
 -    % tree
 apache-karaf-2.2.1-SNAPSHOT/system/org/apache/karaf/assemblies/features


            
 apache-karaf-2.2.1-SNAPSHOT/system/org/apache/karaf/assemblies/features
 ├── enterprise
 │   └── 2.2.1-SNAPSHOT
 │       └── enterprise-2.2.1-SNAPSHOT-features.xml
 └── standard
     └── 2.2.1-SNAPSHOT
         └── standard-2.2.1-SNAPSHOT-features.xml

 4 directories, 2 files

 Kind regards,
 Andreas

 On Thu, Mar 31, 2011 at 9:32 AM, Jean-Baptiste 

Re: Karaf 2.2.0 Startup with no internet Access

2011-03-30 Thread Guillaume Nodet
That's a bug imho, that file should either not be referenced or be included.
Could you please raise a JIRA issue for that ?

On Wed, Mar 30, 2011 at 16:43, Hervé BARRAULT herve.barra...@gmail.com wrote:
 HI,
 i have download the karaf 2.2.0 and i try to start it. (In my case karaf is
 installed in a clean machine without any maven installation nor internel
 access).

 It is impossible to start it because it seems that the features file is not
 in the delivery.

 16:04:43,527 | WARN  | rint Extender: 1 | FeaturesServiceImpl  |
 res.internal.FeaturesServiceImpl  911 | 23 - org.apache.karaf.features.core
 - 2.2.0 | Unable to add features repository
 mvn:org.apache.karaf.assemblies.features/enterprise/2.2.0/xml/features at
 startup
 java.lang.RuntimeException: URL
 [mvn:org.apache.karaf.assemblies.features/enterprise/2.2.0/xml/features]
 could not be resolved.
     at
 org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)
     at
 org.apache.karaf.features.internal.FeatureValidationUtil.validate(FeatureValidationUtil.java:49)
     at
 org.apache.karaf.features.internal.FeaturesServiceImpl.validateRepository(FeaturesServiceImpl.java:199)
     at
 org.apache.karaf.features.internal.FeaturesServiceImpl.internalAddRepository(FeaturesServiceImpl.java:210)
     at
 org.apache.karaf.features.internal.FeaturesServiceImpl.start(FeaturesServiceImpl.java:909)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)[:1.6.0_16]
     at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_16]
     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_16]
     at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_16]
     at
 org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:226)[10:org.apache.aries.blueprint:0.3.0]
     at
 org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:824)[10:org.apache.aries.blueprint:0.3.0]
     at
 org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:636)[10:org.apache.aries.blueprint:0.3.0]
     at
 org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:724)[10:org.apache.aries.blueprint:0.3.0]
     at
 org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.0]
     at
 org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.0]
     at
 org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)[10:org.apache.aries.blueprint:0.3.0]
     at
 org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:640)[10:org.apache.aries.blueprint:0.3.0]
     at
 org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:331)[10:org.apache.aries.blueprint:0.3.0]
     at
 org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.0]
     at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_16]
     at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_16]
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_16]
     at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_16]
     at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)[:1.6.0_16]
     at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_16]
     at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_16]
     at java.lang.Thread.run(Thread.java:619)[:1.6.0_16]

 I looked to the system directory and in org\apache\karaf, i have only the
 following directories :
 admin, deployer, diagnostic, features, jaas, org.apache.karaf.management,
 shell (no assemblies).
 I have also search for xml files and i didn't find one.

 (I will do some tests with this one :
 http://repo2.maven.org/maven2/org/apache/karaf/assemblies/features/enterprise/2.2.0/enterprise-2.2.0-features.xml)

 Am i wrong ?

 Thanks for answers
 Herve




-- 
Cheers,
Guillaume Nodet

Blog: http://gnodet.blogspot.com/

Open Source SOA
http://fusesource.com


Re: Karaf 2.2.0 Startup with no internet Access

2011-03-30 Thread Jean-Baptiste Onofré

Hi Hervé,

it's a bug in 2.2.0. The features should be in the system repo.

Could you raise a Jira ?

Thanks
Regards
JB

On 03/30/2011 04:43 PM, Hervé BARRAULT wrote:

HI,
i have download the karaf 2.2.0 and i try to start it. (In my case karaf
is installed in a clean machine without any maven installation nor
internel access).

It is impossible to start it because it seems that the features file is
not in the delivery.

16:04:43,527 | WARN  | rint Extender: 1 |
FeaturesServiceImpl  | res.internal.FeaturesServiceImpl  911
| 23 - org.apache.karaf.features.core - 2.2.0 | Unable to add features
repository
mvn:org.apache.karaf.assemblies.features/enterprise/2.2.0/xml/features
at startup
java.lang.RuntimeException: URL
[mvn:org.apache.karaf.assemblies.features/enterprise/2.2.0/xml/features]
could not be resolved.
 at
org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)
 at
org.apache.karaf.features.internal.FeatureValidationUtil.validate(FeatureValidationUtil.java:49)
 at
org.apache.karaf.features.internal.FeaturesServiceImpl.validateRepository(FeaturesServiceImpl.java:199)
 at
org.apache.karaf.features.internal.FeaturesServiceImpl.internalAddRepository(FeaturesServiceImpl.java:210)
 at
org.apache.karaf.features.internal.FeaturesServiceImpl.start(FeaturesServiceImpl.java:909)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.6.0_16]
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_16]
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_16]
 at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_16]
 at
org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:226)[10:org.apache.aries.blueprint:0.3.0]
 at
org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:824)[10:org.apache.aries.blueprint:0.3.0]
 at
org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:636)[10:org.apache.aries.blueprint:0.3.0]
 at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:724)[10:org.apache.aries.blueprint:0.3.0]
 at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.0]
 at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.0]
 at
org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)[10:org.apache.aries.blueprint:0.3.0]
 at
org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:640)[10:org.apache.aries.blueprint:0.3.0]
 at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:331)[10:org.apache.aries.blueprint:0.3.0]
 at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.0]
 at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_16]
 at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_16]
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_16]
 at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_16]
 at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)[:1.6.0_16]
 at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_16]
 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_16]
 at java.lang.Thread.run(Thread.java:619)[:1.6.0_16]

I looked to the system directory and in org\apache\karaf, i have only
the following directories :
admin, deployer, diagnostic, features, jaas,
org.apache.karaf.management, shell (no assemblies).
I have also search for xml files and i didn't find one.

(I will do some tests with this one :
http://repo2.maven.org/maven2/org/apache/karaf/assemblies/features/enterprise/2.2.0/enterprise-2.2.0-features.xml)

Am i wrong ?

Thanks for answers
Herve


Re: Karaf 2.2.0 Startup with no internet Access

2011-03-30 Thread Hervé BARRAULT
Ok i will do it.

2011/3/30 Jean-Baptiste Onofré j...@nanthrax.net

 Hi Hervé,

 it's a bug in 2.2.0. The features should be in the system repo.

 Could you raise a Jira ?

 Thanks
 Regards
 JB


 On 03/30/2011 04:43 PM, Hervé BARRAULT wrote:

 HI,
 i have download the karaf 2.2.0 and i try to start it. (In my case karaf
 is installed in a clean machine without any maven installation nor
 internel access).

 It is impossible to start it because it seems that the features file is
 not in the delivery.

 16:04:43,527 | WARN  | rint Extender: 1 |
 FeaturesServiceImpl  | res.internal.FeaturesServiceImpl  911
 | 23 - org.apache.karaf.features.core - 2.2.0 | Unable to add features
 repository
 mvn:org.apache.karaf.assemblies.features/enterprise/2.2.0/xml/features
 at startup
 java.lang.RuntimeException: URL
 [mvn:org.apache.karaf.assemblies.features/enterprise/2.2.0/xml/features]
 could not be resolved.
 at

 org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)
 at

 org.apache.karaf.features.internal.FeatureValidationUtil.validate(FeatureValidationUtil.java:49)
 at

 org.apache.karaf.features.internal.FeaturesServiceImpl.validateRepository(FeaturesServiceImpl.java:199)
 at

 org.apache.karaf.features.internal.FeaturesServiceImpl.internalAddRepository(FeaturesServiceImpl.java:210)
 at

 org.apache.karaf.features.internal.FeaturesServiceImpl.start(FeaturesServiceImpl.java:909)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)[:1.6.0_16]
 at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_16]
 at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_16]
 at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_16]
 at

 org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:226)[10:org.apache.aries.blueprint:0.3.0]
 at

 org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:824)[10:org.apache.aries.blueprint:0.3.0]
 at

 org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:636)[10:org.apache.aries.blueprint:0.3.0]
 at

 org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:724)[10:org.apache.aries.blueprint:0.3.0]
 at

 org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.0]
 at

 org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.0]
 at

 org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)[10:org.apache.aries.blueprint:0.3.0]
 at

 org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:640)[10:org.apache.aries.blueprint:0.3.0]
 at

 org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:331)[10:org.apache.aries.blueprint:0.3.0]
 at

 org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.0]
 at

 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_16]
 at

 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_16]
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_16]
 at

 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_16]
 at

 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)[:1.6.0_16]
 at

 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_16]
 at

 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_16]
 at java.lang.Thread.run(Thread.java:619)[:1.6.0_16]

 I looked to the system directory and in org\apache\karaf, i have only
 the following directories :
 admin, deployer, diagnostic, features, jaas,
 org.apache.karaf.management, shell (no assemblies).
 I have also search for xml files and i didn't find one.

 (I will do some tests with this one :

 http://repo2.maven.org/maven2/org/apache/karaf/assemblies/features/enterprise/2.2.0/enterprise-2.2.0-features.xml
 )

 Am i wrong ?

 Thanks for answers
 Herve