Chad Skinner wrote:
It appears that I did something wrong when I tried this previously. I
added sun.misc to the 1.6 section of the system packages and it is
working now. I must have had a typo or something when I originally
tried this.
Which version of Felix are you using? I'd recommend Felix 1.4.0, in
which case you should be adding it to the system.packages.extra property.
However, The OpenEJB core bundle will not load as it requires the
geronimo-connectors bundle and it appears that the jar distributed
with OpenEJB is not an OSGI bundle as it has no OSGi related MANIFEST
information. Does anyone know if there is a repository of the apache
projects that are packaged as OSGi bundles?
We have some POMs for packaging some projects, but not that one.
Geronimo has their own modularity solution, so I don't think OSGi is a
priority for them.
As a hack. You could add it to the class path and its packages to
system.packages.extra too. Just a thought.
But it seems odd that OpenEJB would package itself up as bundles unless
there was some way to use it that way.
-> richard
Thanks,
-- Chad
On Nov 26, 2008, at 10:36 AM, Karl Pauls wrote:
I do think that the sun.misc stuff is included in the MacOSX JVM --
hence, adding them to org.osgi.framework.system.packages.extra should
work. Even if not, it should be ok because my guess would be that
OpenEJB detects that case and still works but I might be wrong.
regards,
Karl
On Wed, Nov 26, 2008 at 5:05 PM, Richard S. Hall
<[EMAIL PROTECTED]> wrote:
Chad Skinner wrote:
I have been trying to get OpenEJB to load in Felix on MacOS X, but am
having problems. I am new to OSGi and have been trying to see if I
can get
some of the foundational frameworks for our applications to load in
an OSGi
container. I have setup felix with the fileinstall bundle and have
been
copying the OpenEJB bundles into the install directory. It appears
that most
of these work until you get to the openejb-loader-3.1.jar and the
bundles
that depend on it. When this Bundle loads I get an error:
Error while starting a newly installed bundle:
org.osgi.framework.BundleException: Unresolved constraint in bundle
633:
package; (package=sun.misc)
I am assuming this means that something in the openejb loader
bundle is
relying on something in the sun.misc package that does not exist in
the
MacOS X JVM or JDK?
Does anyone know if it is possible to get OpenEJB running in Felix
on a
Mac?
Well, if it really has a dependency on Sun implementation packages,
it would
seem like it isn't possible, unless the Apple VM somehow includes
Sun impl
packages. Doesn't sound right.
If OpenEJB normally runs on a Mac, then it should be possible to get it
working.
If you want to just get it running to see what happens, modify
"org.osgi.framework.system.packages.extra" in conf/config.properties to
include "sun.misc". This should get OpenEJB to run, but once it
requests a
class from sun.misc, then you will get an exception.
Otherwise, I'd suggest testing it under Linux. Get VirtualBox from
Sun and
then you can install a copy of Linux to do your testing.
-> richard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Karl Pauls
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]