Skip to main content

integrate APACHE FELIX and JXTA

3 replies [Last post]
monster28
Offline
Joined: 2008-11-16

Hi all.
I've some problem to integrate both JXTA and OSGi(FELIX).
I made JXTA bundle for FELIX, and started it.
but it didn't work well.
I show you debug message below.
Does anyone help me?

1.
-----------------FELIX + JXTA SHELL---------------

Jxta is now taking off. Please fasten your seat belts and extinguish all smoking materials.
2009. 7. 8 오후 2:36:49 net.jxta.impl.protocol.RelayConfigAdv
경고: Unhandled Element: net.jxta.impl.document.LiteXMLElement@bcda2d / isOff = <>
2009. 7. 8 오후 2:36:50 net.jxta.impl.membership.pse.PSEUtils
ì •ë³´: Loaded Security Providers into system class loader
java.lang.NoClassDefFoundError: javax/security/auth/x500/X500Principal
at net.jxta.impl.membership.pse.PSEUtils.genCert(PSEUtils.java:236)
at net.jxta.impl.peergroup.ConfigDialog.saveValues(ConfigDialog.java:1988)
at net.jxta.impl.peergroup.ConfigDialog.access$700(ConfigDialog.java:123)
at net.jxta.impl.peergroup.ConfigDialog$3.actionPerformed(ConfigDialog.java:1572)
at java.awt.Button.processActionEvent(Button.java:392)
at java.awt.Button.processEvent(Button.java:360)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Uncaught Throwable caught by 'main':
net.jxta.exception.JxtaError: Canceled during configuration
at net.jxta.impl.peergroup.ConfigDialog.untilDone(ConfigDialog.java:1632)
at net.jxta.impl.peergroup.DefaultConfigurator.getPlatformConfig(DefaultConfigurator.java:222)
at net.jxta.impl.peergroup.NullConfigurator.getConfigParams(NullConfigurator.java:162)
at net.jxta.peergroup.WorldPeerGroupFactory.(WorldPeerGroupFactory.java:149)
at net.jxta.peergroup.NetPeerGroupFactory.(NetPeerGroupFactory.java:126)
at JxtaShellSample.Activator.start(Activator.java:45)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1671)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1588)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:382)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:363)
at org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:82)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
at java.lang.Thread.run(Thread.java:619)
------------------------------------------------------------------------

2.
-----------------FELIX + JXME CDC proxyless---------------

org.osgi.framework.BundleException: Activator start error in bundle JxmeProxylessSample [6].
at org.apache.felix.framework.Felix._startBundle(Felix.java:1718)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1588)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:382)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:363)
at org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:82)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.VerifyError: (class: net/jxta/platform/ConfigurationFactory, method: signature: ()V) Incompatible argument to function
at JxmeProxylessSample.GroupDemo.startJxta(GroupDemo.java:200)
at JxmeProxylessSample.GroupDemo.(GroupDemo.java:118)
at JxmeProxylessSample.Activator.start(Activator.java:17)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1671)
... 7 more
java.lang.VerifyError: (class: net/jxta/platform/ConfigurationFactory, method: signature: ()V) Incompatible argument to function
-------------------------------------------------------------------------------

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
heavy
Offline
Joined: 2003-07-24

How are you starting Felix and which version are you using? You might want to bring the question to the Felix users mailing list.

keesp
Offline
Joined: 2007-05-22

If you are making your own Equinox plugin, then please read this thread as well!

http://forums.java.net/jive/thread.jspa?threadID=39415

Cheers

Kees

boylejohnr
Offline
Joined: 2008-10-27

Hi

I think is related to the OSGi spec being based on JDK1.3 therefore javax security is not in the boot path. I use equinox and had similar issue you need to instruct your bundle to import these classes from the bootclass loaded and shuold work. This is not JXTA specific just if you try to use those classes not in 1.3 this happens.

You can work through a simple test case activator that imports the class and get this working to remove you from the JXTA as a dependacy until you understand how to package.