class loading exception in 1.1 RC1 OSGi on Felix

View: New views
3 Messages — Rating Filter:   Alert me  

class loading exception in 1.1 RC1 OSGi on Felix

by ingo-23 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm currently testing EasyBeans on the current Apache Felix, and do get class
loading exceptions on the Agent start:

(only the relevant excerpt)

ERROR: Error starting obr://org.ow2.easybeans.agent/1243265793390
(org.osgi.framework.BundleException: Activator start error in bundle
org.ow2.easybeans.agent [28].)
org.ow2.util.xmlconfig.XMLConfigurationException: Cannot build an instance of
class 'org.ow2.easybeans.component.jotm.JOTMComponent' using classloader
'15.0'.        at
org.ow2.util.xmlconfig.XMLConfiguration.newInstance(XMLConfiguration.java:507)
....
Caused by: java.lang.ClassNotFoundException: javax.transaction.SystemException
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)

Package "javax.transaction" is marked for export in EasyBeans Core, but not for
import in the EasyBeans Agent (as least thats what felix reports on "exports"
and "imports"). Am I missing something, or are the current bundles really not
functional?

Other question: I did not find any OSGi build targets, can you give me any
pointer where to look and build the OSGi bundles myself?

Regards,
Ingo

Re: class loading exception in 1.1 RC1 OSGi on Felix

by gembin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi Ingo,
 
  for build, i think you can use  Bnd(http://www.aqute.biz/Code/Bnd
) tools which is developed by Peter.Kriens@... .
 
BR,
Gembin
2009/5/26 <ingo@...>
Hi,

I'm currently testing EasyBeans on the current Apache Felix, and do get class
loading exceptions on the Agent start:

(only the relevant excerpt)

ERROR: Error starting obr://org.ow2.easybeans.agent/1243265793390
(org.osgi.framework.BundleException: Activator start error in bundle
org.ow2.easybeans.agent [28].)
org.ow2.util.xmlconfig.XMLConfigurationException: Cannot build an instance of
class 'org.ow2.easybeans.component.jotm.JOTMComponent' using classloader
'15.0'.        at
org.ow2.util.xmlconfig.XMLConfiguration.newInstance(XMLConfiguration.java:507)
....
Caused by: java.lang.ClassNotFoundException: javax.transaction.SystemException
       at java.net.URLClassLoader$1.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(Unknown Source)

Package "javax.transaction" is marked for export in EasyBeans Core, but not for
import in the EasyBeans Agent (as least thats what felix reports on "exports"
and "imports"). Am I missing something, or are the current bundles really not
functional?

Other question: I did not find any OSGi build targets, can you give me any
pointer where to look and build the OSGi bundles myself?

Regards,
Ingo



--
Gembin
My Blog: http://www.blogjava.net/gembin


Re: class loading exception in 1.1 RC1 OSGi on Felix

by Florent BENOIT-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    Hi,

Check that in your Apache Felix configuration file, the
javax.transaction package is not listed as a system packages
(org.osgi.framework.system.packages) else it will use the package from
the JDK and this package doesn't contains all the JTA classes. (there
are configuration files for Felix/Equinox/etc provided in the
EasyBeans/OSGi assembly)

> Other question: I did not find any OSGi build targets, can you give me any
> pointer where to look and build the OSGi bundles myself?

On EasyBeans/OSGi source code, run the "mvn clean install" command and
it will produce the EasyBeans OSGi bundles.

Regards,

Florent

ingo@... wrote:

> Hi,
>
> I'm currently testing EasyBeans on the current Apache Felix, and do get class
> loading exceptions on the Agent start:
>
> (only the relevant excerpt)
>
> ERROR: Error starting obr://org.ow2.easybeans.agent/1243265793390
> (org.osgi.framework.BundleException: Activator start error in bundle
> org.ow2.easybeans.agent [28].)
> org.ow2.util.xmlconfig.XMLConfigurationException: Cannot build an instance of
> class 'org.ow2.easybeans.component.jotm.JOTMComponent' using classloader
> '15.0'.        at
> org.ow2.util.xmlconfig.XMLConfiguration.newInstance(XMLConfiguration.java:507)
> ....
> Caused by: java.lang.ClassNotFoundException: javax.transaction.SystemException
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
>
> Package "javax.transaction" is marked for export in EasyBeans Core, but not for
> import in the EasyBeans Agent (as least thats what felix reports on "exports"
> and "imports"). Am I missing something, or are the current bundles really not
> functional?
>
> Other question: I did not find any OSGi build targets, can you give me any
> pointer where to look and build the OSGi bundles myself?
>
> Regards,
> Ingo
>
>
>