You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Rick McGuire <ri...@gmail.com> on 2009/09/29 15:30:19 UTC

Re: BundleClassLoader in osgi-ified prototype.

David Jencks wrote:
>
> On Sep 28, 2009, at 10:40 AM, Rick McGuire wrote:
>
>> David,
>>
>> I was digging through your sandbox code and found the 
>> BundleClassLoader implementation.  In order for this to be generally 
>> useful, it's going to need to handle resources as well as classes.  
>> Is there some reason why this is not implemented here?
>
> Lack of time only.  If you would extend it to handle resources that 
> would be really great!

This turned out to be a fairly trivial amount of code, but I'm going 
crazy trying to get your sandbox code to compile.  I've been through a 
fairly long chain of missing dependencies, but I finally hit one I can't 
locate.  Here's the error I get.  Is org.apache.servicemix.bundles 
something you've built on your local machine?

Missing:
----------
1) 
org.apache.servicemix.bundles:org.apache.servicemix.bundles.jaxb-impl:jar:2.1
.6_2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.servicemix.bundles 
-Dartifac
tId=org.apache.servicemix.bundles.jaxb-impl -Dversion=2.1.6_2-SNAPSHOT 
-Dpackagi
ng=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file 
there:

      mvn deploy:deploy-file -DgroupId=org.apache.servicemix.bundles 
-DartifactI
d=org.apache.servicemix.bundles.jaxb-impl -Dversion=2.1.6_2-SNAPSHOT 
-Dpackaging
=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.apache.geronimo.bundles:sxc-jaxb:bundle:0.7.2_1-SNAPSHOT
        2) 
org.apache.servicemix.bundles:org.apache.servicemix.bundles.jaxb-impl
:jar:2.1.6_2-SNAPSHOT

----------

>
> thanks
> david jencks
>
>>  If it's just something that's on your todo list, I wouldn't mind 
>> adding that piece.  I'm going to need a class loader like this for 
>> doing an RFC 66 implementation, so it's either fix this one to be 
>> complete or write another version.
>> Rick
>
>


Re: BundleClassLoader in osgi-ified prototype.

Posted by Guillaume Nodet <gn...@gmail.com>.
You should be able to use the released 2.1.6_1 version without too
many problems I think.
I think the snapshot fixes some OSGi metadata problems but those do
not prevent the bundle from working in simple scenarios.

On Tue, Sep 29, 2009 at 15:30, Rick McGuire <ri...@gmail.com> wrote:
> David Jencks wrote:
>>
>> On Sep 28, 2009, at 10:40 AM, Rick McGuire wrote:
>>
>>> David,
>>>
>>> I was digging through your sandbox code and found the BundleClassLoader
>>> implementation.  In order for this to be generally useful, it's going to
>>> need to handle resources as well as classes.  Is there some reason why this
>>> is not implemented here?
>>
>> Lack of time only.  If you would extend it to handle resources that would
>> be really great!
>
> This turned out to be a fairly trivial amount of code, but I'm going crazy
> trying to get your sandbox code to compile.  I've been through a fairly long
> chain of missing dependencies, but I finally hit one I can't locate.  Here's
> the error I get.  Is org.apache.servicemix.bundles something you've built on
> your local machine?
>
> Missing:
> ----------
> 1)
> org.apache.servicemix.bundles:org.apache.servicemix.bundles.jaxb-impl:jar:2.1
> .6_2-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>     mvn install:install-file -DgroupId=org.apache.servicemix.bundles
> -Dartifac
> tId=org.apache.servicemix.bundles.jaxb-impl -Dversion=2.1.6_2-SNAPSHOT
> -Dpackagi
> ng=jar -Dfile=/path/to/file
>
>  Alternatively, if you host your own repository you can deploy the file
> there:
>
>     mvn deploy:deploy-file -DgroupId=org.apache.servicemix.bundles
> -DartifactI
> d=org.apache.servicemix.bundles.jaxb-impl -Dversion=2.1.6_2-SNAPSHOT
> -Dpackaging
> =jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
>  Path to dependency:
>       1) org.apache.geronimo.bundles:sxc-jaxb:bundle:0.7.2_1-SNAPSHOT
>       2)
> org.apache.servicemix.bundles:org.apache.servicemix.bundles.jaxb-impl
> :jar:2.1.6_2-SNAPSHOT
>
> ----------
>
>>
>> thanks
>> david jencks
>>
>>>  If it's just something that's on your todo list, I wouldn't mind adding
>>> that piece.  I'm going to need a class loader like this for doing an RFC 66
>>> implementation, so it's either fix this one to be complete or write another
>>> version.
>>> Rick
>>
>>
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com