Re: java.lang.ClassNotFoundException when using reflection ?

2007-09-12 Thread Miguel Matos
Hello! Felix Meschberger wrote: Hi Miguel, From the stack trace, I assume you want to create an MBean using the JMX Server. For this to work, the JMX Server of course has to have some knowledge of the class loaders used. In plain old Java applications this is not so big of an issue. In

Re: maven-bundle-plugin: built bundle shows bundle could not be resolved

2007-09-12 Thread Stuart McCulloch
On 12/09/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi, am using maven-bundle-plugin 1.1.0-SNAPSHOT. building bundle works fine, but when installing and trying to start i get a BundleException: The bundle could not be resolved. Reason Missing Constraint. Import-Package: antlr; so it

Re: maven-bundle-plugin: built bundle shows bundle could not be resolved

2007-09-12 Thread [EMAIL PROTECTED]
Stuart McCulloch schrieb: On 12/09/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi, am using maven-bundle-plugin 1.1.0-SNAPSHOT. building bundle works fine, but when installing and trying to start i get a BundleException: The bundle could not be resolved. Reason Missing Constraint.

Re: maven-bundle-plugin: built bundle shows bundle could not be resolved

2007-09-12 Thread [EMAIL PROTECTED]
it is certainly possible, depending what part of the maven build phase the manifest goal executes (as it needs either classes or a jarfile to analyze). the manifest goal also doesn't do any embedding, etc. as it's meant to be used to generate OSGi metadata for existing (non-OSGi) maven

Re: How to check if an optional package is available?

2007-09-12 Thread Richard S. Hall
Bart Elen wrote: Hello, When a package is imported with 'resolution:=optional', we have to check if the package is available or not before we use it. But how do we do this? Someone has experience with this problem? Just try to load a class from that package and catch any exceptions...if

Re: OSGi Best Practices

2007-09-12 Thread Rodrigo Madera
Can you provide an example (very simple one) on UserAdmin? I have the specifications (and probably every other PDF and PPS Google knows of), and my doubt is in terms of checking the authorization. What kind of boilerplate code is normally done? Again, my intention is to do things the OSGi way.

Setting up an OBR Repository

2007-09-12 Thread David Leangen
Where can I find some doc that describes how to use Felix OBR to set up my own bundle repository? The doc explains how to link to existing repos, but not how to create my own. Thanks! - To unsubscribe, e-mail: [EMAIL

Re: useradmin example [was OSGi Best Practices]

2007-09-12 Thread Stuart McCulloch
Hi Rodrigo, You can find a simple example in Pax Wicket, which is an OSGi-based extension to the Wicket framework http://wiki.ops4j.org/confluence/display/ops4j/Pax+Wicket (in progress doc http://www.ops4j.org/projects/pax/wicket) the org.ops4j.pax.wicket.util.UserAdminAuthenticator maps