Re: Cellar tcpIpEnabled does not work

2012-05-04 Thread gasius
Hi,

so maybe I use incorrect bundle synch configuration or problem is because of
ServiceMix v 4.4.1? Because I install Cellar into ServiceMix v 4.4.1 (tried
various assemblies - default, full, minimal). Also I tried various Cellar
versions 2.2.3, 2.2.4-SNAPSHOT, 3.0.0-SNAPSHOT but with all got error:

/java.lang.ClassNotFoundException:
org.apache.karaf.cellar.bundle.BundleState/

I changed default synch configuration from:

/default.bundle.whitelist.inbound=none
default.bundle.whitelist.outbound=none
default.bundle.sync=false/

To

/default.bundle.whitelist.inbound=*
default.bundle.whitelist.outbound=*
default.bundle.sync=true/ 

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Cellar-tcpIpEnabled-does-not-work-tp3877611p3961406.html
Sent from the Karaf - User mailing list archive at Nabble.com.


classpath resources in generated bundle

2012-05-04 Thread maaruks

I generated bundle from a jar file.

There is some some spring code that needs to access classpath resources from
*conf* directory.
Of course it doesn't work:

Caused by: java.io.FileNotFoundException: class path resource
[conf/core-defaults.properties] cannot be opened because it does not exist
at
org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)

How can I grant access to *conf* ?

--
View this message in context: 
http://karaf.922171.n3.nabble.com/classpath-resources-in-generated-bundle-tp3961913.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: classpath resources in generated bundle

2012-05-04 Thread Achim Nierbeck
You need to export it as a Package, therefore the Export-Package
definition in the manifest has to contain your conf directory.

regards, Achim

2012/5/4 maaruks maris.orbid...@gmail.com:

 I generated bundle from a jar file.

 There is some some spring code that needs to access classpath resources from
 *conf* directory.
 Of course it doesn't work:

 Caused by: java.io.FileNotFoundException: class path resource
 [conf/core-defaults.properties] cannot be opened because it does not exist
        at
 org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)

 How can I grant access to *conf* ?

 --
 View this message in context: 
 http://karaf.922171.n3.nabble.com/classpath-resources-in-generated-bundle-tp3961913.html
 Sent from the Karaf - User mailing list archive at Nabble.com.



-- 

Apache Karaf http://karaf.apache.org/ Committer  PMC
OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/
Committer  Project Lead
OPS4J Pax for Vaadin
http://team.ops4j.org/wiki/display/PAXVAADIN/Home Commiter  Project
Lead
blog http://notizblog.nierbeck.de/


Re: log4j

2012-05-04 Thread Guillaume Nodet
That's really the best thing to do in karaf, as the log configuration is
handled in an osgi way, so no code should try to directly configure the
logging framework.

On Fri, May 4, 2012 at 1:01 PM, maaruks maris.orbid...@gmail.com wrote:


 Achim Nierbeck wrote
 
  I'm not sure what you are trying to do, but log4j as slf4j and a
  couple more logging framworks are supported by Karaf.
 

 I am migrating some code to karaf.It turns out Pax Logging doesn't
 allow
 to access all log4j classes.
 I removed code that is trying to access Appender.  Problem solved.


 --
 View this message in context:
 http://karaf.922171.n3.nabble.com/log4j-tp3958839p3961902.html
 Sent from the Karaf - User mailing list archive at Nabble.com.




-- 

Guillaume Nodet

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

FuseSource, Integration everywhere
http://fusesource.com


Re: using cave with features

2012-05-04 Thread Jean-Baptiste Onofré

Hi Rick,

First, Cave was a kind of proto and I started to work on Apache Archiva 
to provide OBR and Karaf features support.


However, regarding the requests/questions that we got on Cave, it could 
make sense to have a thin kind autonomous of OBR/feature repository 
manager. And a first Cave preview could be interesting.


Regards
JB

On 05/04/2012 03:16 PM, Vestal, Rick wrote:

Ok...thanks for the info.

Is there a published plan for cave so I could get a rough idea of a
what's coming?  We are trying to decide on OBR's vs. features vs.
something else for our new project...I know, join the club ;-)

Thanks

On Thu, May 3, 2012 at 11:55 PM, Jean-Baptiste Onofré j...@nanthrax.net
mailto:j...@nanthrax.net wrote:

Hi Rick,

it's planned but not yet possible on the latest SNAPSHOT.

Regards
JB


On 05/04/2012 05:18 AM, Vestal, Rick wrote:

Hi all,

I started looking at cave today and have a question on its
integration
with features.

I'd like to be able to do a feature:addurl and have it find a
features
xml file in the obr repository.  Is this possible?

Thanks,

-- Rick


--
Jean-Baptiste Onofré
jbono...@apache.org mailto:jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com




--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Installing war support in Karaf 2.2.7

2012-05-04 Thread Fernando Avalos García

Hi all,


I am trying to enable the Web support following the instruction in the page 
Installing war support in Karaf 2.2.7.


However, when I try to execute the command features:list the 
list is empty. I tried to get the repositories list and it is empty too.
 Am I missing something?


Thanks in advance,


Fernando Avalos.