Installing an application on Karaf

2010-05-05 Thread Bengt Rodehav
I'm building an integration platform using Camel deployed in Karaf. The platform will be used for different kinds of applications (mainly integration oriented of course). I'm not entirely sure how I best construct an installation program for these applications. Basically I need to: a) Install Kara

How to get OpenJPA validation working in felix?

2010-05-05 Thread Jim Talbut
Hi, I'm trying to move some JPA using code from Tomcat to Felix and I'm having trouble getting OpenJPA to work. OpenJPA complains about validation, and it's not at all clear to me what bundles I should use to get validation working. Please can someone who has OpenJPA working with validation in f

Re: Installing an application on Karaf

2010-05-05 Thread Guillaume Nodet
We actually have a maven plugin that helps in doing that. Take a look at how we package ServiceMix NMR or the full ServiceMix distribution. It's based on Karaf, but includes some changes and additional bundles configured using features. It sounds exactly like what you want. http://svn.apache.o

Re: Installing an application on Karaf

2010-05-05 Thread Bengt Rodehav
Thanks a lot Guillaume - I will definitely take a look at the plugin you mentioned. /Bengt 2010/5/5 Guillaume Nodet : > We actually have a maven plugin that helps in doing that. > Take a look at how we package ServiceMix NMR or the full ServiceMix > distribution. > It's based on Karaf, but includ

Re: How to get OpenJPA validation working in felix?

2010-05-05 Thread RĂ©mon . Sinnema
Check out http://lsd.luminis.nl/jpa-persistence-in-osgi-with-openjpa/ and http://lsd.luminis.nl/persistence-in-osgi-with-openjpa-part-2/ - Original Message From: Jim Talbut To: "users@felix.apache.org" Sent: Wed, May 5, 2010 11:20:41 AM Subject: How to get OpenJPA validation working

unresolve constraint with bundle packages !!!

2010-05-05 Thread Charles Moulliard
Hi, I try to deploy a bundle under ServiceMix 4.2 running Felix 2.0.4 and get an unresolved constraint. The bundle is created using Felix maven-bundle-plugin 2.0.1 org.apache.felix maven-bundle-plugin

Re: unresolve constraint with bundle packages !!!

2010-05-05 Thread Guillaume Nodet
What's the exact error ? On Wed, May 5, 2010 at 14:47, Charles Moulliard wrote: > Hi, > > I try to deploy a bundle under ServiceMix 4.2 running Felix 2.0.4 and > get an unresolved constraint. The bundle is created using Felix > maven-bundle-plugin 2.0.1 > > >

Re: unresolve constraint with bundle packages !!!

2010-05-05 Thread Charles Moulliard
org.osgi.framework.BundleException: Unable to resolve due to constraint violation. at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3302) at org.apache.felix.framework.Felix.startBundle(Felix.java:1653) at org.apache.felix.framework.BundleImpl.start(BundleImpl.ja

Re: unresolve constraint with bundle packages !!!

2010-05-05 Thread Richard S. Hall
Try setting the framework log level to DEBUG to see if you get more info... -> richard On 5/5/10 9:11, Charles Moulliard wrote: org.osgi.framework.BundleException: Unable to resolve due to constraint violation. at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3302) a

Re: unresolve constraint with bundle packages !!!

2010-05-05 Thread Charles Moulliard
no more info is provided by felix in DEBUG mode. I have found a workaround. I have removed from Import-Package ,the * and now the maven plugin has well exported in the MANIFEST the Private-Package Really strange problem Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Came

Dependencies in features when using obr protocol

2010-05-05 Thread Chris Blunck
Hello- I'm working on provisioning my application and the use of features and OBR seems like a very natural way to approach the problem. I have used the maven-bundle-plugin to create bundles for each of my subprojects and I have generated an obr.xml file that describes the capabilities and requir

Re: Dependencies in features when using obr protocol

2010-05-05 Thread Guillaume Nodet
Yes, that would not work. If you want to use OBR to provision your applications, you can do so using the obr commands, but that's not currently supported by the features provisioning system. In any case, if we were to support such a thing, i would not use a element, as this is really supposed t

Re: Dependencies in features when using obr protocol

2010-05-05 Thread Chris Blunck
I think that would be a very elegant solution to the issue of starting dependencies from a feature. On another note ... is it possible to generate a feature.xml from maven-bundle-plugin? If that's the case then perhaps maven-bundle-plugin could embed multiple lines that reference all of the bund

Repository Admin, OBR, Features...

2010-05-05 Thread Chris Blunck
Hello- I've been looking around the web for references on how to solve a particular problem I have with provisioning my app. I think part of my problem is that terms like "repository", "admin", and "features" are so generic that I receive a lot of false positives in my results. I understand that

Re: Dependencies in features when using obr protocol

2010-05-05 Thread Guillaume Nodet
On Wed, May 5, 2010 at 21:47, Chris Blunck wrote: > I think that would be a very elegant solution to the issue of starting > dependencies from a feature. > > Well, in my mind, it would install dependencies, not only start them. > On another note ... is it possible to generate a feature.xml from

Re: Repository Admin, OBR, Features...

2010-05-05 Thread Guillaume Nodet
On Wed, May 5, 2010 at 21:53, Chris Blunck wrote: > Hello- > > I've been looking around the web for references on how to solve a > particular > problem I have with provisioning my app. I think part of my problem is > that > terms like "repository", "admin", and "features" are so generic that I >

openjpa/karaf

2010-05-05 Thread Jason Reilly
Hi all, I am trying to get a project that uses OpenJPA deployed as a Service in the Apache Karaf OSGi container. I am getting an exception when I do an osgi:install of my project. The exception message is: javax.persistence.PersistenceException: No persistence providers for "rsp" after trying

Re: openjpa/karaf

2010-05-05 Thread Guillaume Nodet
The OSGi Enterprise Expert Group has released a specification around using JPA in OSGi. You may want to have a look at the Aries project ( http://incubator.apache.org/aries/) which provides an implementation of this spec. You should be able to find some examples along with the implementation. On W

Re: Installing an application on Karaf

2010-05-05 Thread Bengt Rodehav
It seems like the features-maven-plugin is exactly what I'm looking for. However I do run into one problem. I'm using a repository manager (Nexus) but the features-maven-plugin seems to only look in the locak repository (which doesn't contain everything). I get the following error message: [INFO]

Re: Installing an application on Karaf

2010-05-05 Thread Guillaume Nodet
Not sure to fully understand, but if those are dependencies of your maven project, they should be in your local repo, shouldn't they ? On Wed, May 5, 2010 at 23:02, Bengt Rodehav wrote: > It seems like the features-maven-plugin is exactly what I'm looking > for. However I do run into one problem