You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Jacek Laskowski <ja...@laskowski.net.pl> on 2008/12/13 13:55:57 UTC

Re: openEJB & OSGi on Mac OS X

On Mon, Nov 24, 2008 at 11:43 PM, Chad Skinner
<cs...@topeka.k12.ks.us> wrote:
> Has anyone had any luck deploying OpenEJB on the Felix OSGi runtime on MacOS
> X? I have been trying to get this to run, but have been getting an error
> when deploying the openejb-loader-3.1.jar file as it has a dependency on the
> sun.misc package? Does anyone know a work around for this?

Dunno if it could work, but what about declaring sun.misc as optional
(just change MANIFEST.MF and add ;optional)? It would get it deployed,
but at runtime funny things might pop up. If sun.misc package is
required it would make openejb unusable on other platforms where Sun
JDK is not available. I don't think it's the case and (without having
looked at the code) I think optional should let it go.

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl

Re: openEJB & OSGi on Mac OS X

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Tue, Dec 16, 2008 at 5:10 PM, Chad Skinner <cs...@topeka.k12.ks.us> wrote:
> I did something wrong originally, typo or something, as sun.misc does exist
> and it does appear to work. The problem now that it appears that OpenEJB
> relies on the Geronimo connector jar which is not an OSGi bundle.

Use pax-runner to load it as osgi bundle on the fly and give it a
whirl again. Any jar can be very easily osgi-fied with pax-runner
without any code changes.

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl

Re: openEJB & OSGi on Mac OS X

Posted by Chad Skinner <cs...@topeka.k12.ks.us>.
I did something wrong originally, typo or something, as sun.misc does  
exist and it does appear to work. The problem now that it appears that  
OpenEJB relies on the Geronimo connector jar which is not an OSGi  
bundle.

-- Chad

On Dec 13, 2008, at 6:55 AM, Jacek Laskowski wrote:

> On Mon, Nov 24, 2008 at 11:43 PM, Chad Skinner
> <cs...@topeka.k12.ks.us> wrote:
>> Has anyone had any luck deploying OpenEJB on the Felix OSGi runtime  
>> on MacOS
>> X? I have been trying to get this to run, but have been getting an  
>> error
>> when deploying the openejb-loader-3.1.jar file as it has a  
>> dependency on the
>> sun.misc package? Does anyone know a work around for this?
>
> Dunno if it could work, but what about declaring sun.misc as optional
> (just change MANIFEST.MF and add ;optional)? It would get it deployed,
> but at runtime funny things might pop up. If sun.misc package is
> required it would make openejb unusable on other platforms where Sun
> JDK is not available. I don't think it's the case and (without having
> looked at the code) I think optional should let it go.
>
> Jacek
>
> -- 
> Jacek Laskowski
> Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl