Where to find ManGen

2009-03-17 Thread Ivanhoe Abrahams
Hi everybody. I'm just starting out with osgi, so I'm still trying to find my way around. Currently I am trying to use OpenJPA with Felix, but I am getting a MissingResourceException from OpenJPA which I beleive is caused by some classloading code in OpenJPA. the code I think is wrong

Testing osgi performance

2009-03-17 Thread chihi asma
Hi, Can anyone tell me how to test osgi performance (memory, startup time ..) I knew that there is some tests suites but I didnt know how to use them. Please help me. Thanks in advance. Asma

Re: Where to find ManGen

2009-03-17 Thread Rob Walker
There's still a version available via the original Oscar OBR site: http://oscar-osgi.sourceforge.net/mangen/ There is a version in the Felix SVN - but it needs some work as the Felix Manifest parsing classes it used have change, so I think the build may be broken at present. - Rob Ivanhoe

Re: Where to find ManGen

2009-03-17 Thread Craig Walls
That makes me want to ask: Is there anything of value left among the bundles at http://oscar-osgi.sourceforge.net? Or are those just historical artifacts? Obviously some of them have transitioned in under the Felix project...but is there anything else that that is worth keeping/using? Rob

Re: Where to find ManGen

2009-03-17 Thread Ivanhoe Abrahams
Hi Thanks for the reply I went to download the sourceforge version but it is from 2005 ...version 0.1.2, whereas the docs on the Felix site talk about version 1.0.1 This does seem like a big difference in versions. So now I am curious to find out if it is ok to use the 2005 version as it does

Re: Where to find ManGen

2009-03-17 Thread Rob Walker
Just looked at my SVN log here - there were a few changes in this gap, most were to more recent BCEL and ASM versions, and also to Felix packages instead of Oscar. Didn't look like many functional changes were made. -- Rob Ivanhoe Abrahams wrote: Hi Thanks for the reply I went to download

Re: Testing osgi performance

2009-03-17 Thread Alin Dreghiciu
Public results? On Tue, Mar 17, 2009 at 5:44 PM, Krishnaveni Krishnarajah krishnaveni.krishnara...@gmail.com wrote: Hello Asma, I have done similar performance analysis. Stuart helped me immensely. You can find the communication at

context.getDataFile(/) on Linux

2009-03-17 Thread BJBg
Dear all, Have you experienced the OSGi command context.getDataFile(/) on Linux with Felix ? The result seems quite different if you are on Windows or Linux. - On Windows, the beahaviour is OK. - On Linux, the method returns null. Any idea ? B.

Re: context.getDataFile(/) on Linux

2009-03-17 Thread Richard S. Hall
The spec says the path should be relative. Felix returns null for non-relative paths. On Windows, you probably get different behavior because it looks for File.separatorChar, which is \\ on Windows, not /, so / is non-relative under Windows. - richard On 3/17/09 2:17 PM, BJBg wrote: Dear

Re: context.getDataFile(/) on Linux

2009-03-17 Thread Richard S. Hall
On 3/17/09 2:33 PM, Richard S. Hall wrote: The spec says the path should be relative. Felix returns null for non-relative paths. On Windows, you probably get different behavior because it looks for File.separatorChar, which is \\ on Windows, not /, so / is non-relative under Windows. That

Re: context.getDataFile(/) on Linux

2009-03-17 Thread Richard S. Hall
I should also add, if you want to get the root of your bundle's private area, you should use an empty string per the spec. - richard On 3/17/09 2:34 PM, Richard S. Hall wrote: On 3/17/09 2:33 PM, Richard S. Hall wrote: The spec says the path should be relative. Felix returns null for

Re: context.getDataFile(/) on Linux

2009-03-17 Thread BJBg
On Linux, context.getDataFile() returns null as well. So what is an empty string ? -- Bruno Richard S. Hall a écrit : I should also add, if you want to get the root of your bundle's private area, you should use an empty string per the spec. - richard On 3/17/09 2:34 PM, Richard S. Hall

Re: context.getDataFile(/) on Linux

2009-03-17 Thread Stuart McCulloch
2009/3/18 Richard S. Hall he...@ungoverned.org It doesn't under the Mac...let me check on Linux... perhaps also check that the framework storage area is writable, this is another common difference between Windows and Linux especially when running Felix from a system area read-only storage

Re: context.getDataFile(/) on Linux

2009-03-17 Thread Richard S. Hall
It works for me under Linux (Fedora 10). Which version of Felix are you using? - richard On 3/17/09 2:44 PM, BJBg wrote: On Linux, context.getDataFile() returns null as well. So what is an empty string ? -- Bruno Richard S. Hall a écrit : I should also add, if you want to get the root

Re: context.getDataFile(/) on Linux

2009-03-17 Thread BJBg
We are using Felix 1.4.1 under Debian. To answer Stuart's comments on the protected area, this is not the problem as the getDataFile(/) shall return the root of the bundle's private area which is by default the felix-cache, which is of course, R/W zone -- Bruno Richard S. Hall a écrit :

Re: Isolation of OSGI resources and lock problems

2009-03-17 Thread Richard S. Hall
On 3/17/09 3:59 PM, João Ferreira wrote: Hello again I managed to do the isolation i pretended. The lock that was acquired was a BundleImpl lock that was associated with the thread that owned the lock. I just swaped that thread reference with my thread, waited for my thread to stop and

Re: OBR usage

2009-03-17 Thread Richard S. Hall
I am not sure how much documentation is available. You can search for the original RFC 112, which Peter Kriens made available from one of his blogs. There is our web page on our impl: http://felix.apache.org/site/apache-felix-osgi-bundle-repository.html The approach is fairly simple. You

maven-scr-plugin 1.0.10 gives Illegal escape character

2009-03-17 Thread Mark Derricutt
I noticed the other day 1.0.10 of the maven-scr-plugin was released, since using this plugin we're seeing illegal escape character problems when compiling our bundles. [ERROR] FATAL ERROR [INFO] [INFO] Illegal escape

Re: OBR usage

2009-03-17 Thread Damon Jacobsen
Richard, Using that page as a reference, I tried this: Felix felix = new Felix(configMap); felix.start(); BundleContext bundleContext = felix.getBundleContext(); RepositoryAdmin admin = new RepositoryAdminImpl(bundleContext,null); Resolver resolver = admin.resolver(); for (Resource

maven-bundle-plugin and dependancy of javax packages

2009-03-17 Thread Damon Jacobsen
I am using the maven-bundle-plugin to build my bundle. I am having a problem where the javax.imageio package is not being treated correctly. Everytime I try to run my bundle I get: org.osgi.framework.BundleException: Unresolved constraint in bundle 1: package; (package=javax.imageio) Is there

Re: maven-bundle-plugin and dependancy of javax packages

2009-03-17 Thread Damon Jacobsen
Please disregard. I found my answer. If it is helpful for others, when using embedded frameworks you must add FRAMEWORK_SYSTEMPACKAGES for packages you are providing. Damon On Tue, Mar 17, 2009 at 5:11 PM, Damon Jacobsen damon.jacob...@codedragon.us wrote: I am using the maven-bundle-plugin

Re: maven-bundle-plugin and dependancy of javax packages

2009-03-17 Thread Richard S. Hall
You set org.osgi.framework.system.packages if you want to override the default value, which is every package from the underlying Java platform. You set org.osgi.framework.system.packages.extras if you want to append some packages to the default. - richard On 3/17/09 8:41 PM, Damon Jacobsen