Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Extension org.eclipse.fx.osgi doesn't load wit "custom" target platform
Extension org.eclipse.fx.osgi doesn't load wit "custom" target platform [message #1359754] Fri, 16 May 2014 13:37 Go to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Hello

I want to integrate the org.eclipse.fx.* plugins into our target environment. We want to use efxclipse together with equinox, so I used the New -> Project -> JavaFX -> OSGi Application Project as a template.

This works great, when I use a simple target platform pointing to the "Target Platform Feature 0.9.0.xxx" from http://download.eclipse.org/efxclipse/runtime-released/0.9.0/site

Configuration location:
    file:/D:/GosaEntwicklung/WorkspaceJavaFX/.metadata/.plugins/org.eclipse.pde.core/de.emsw.gosa.fx.osgitest.app.product.product/
Configuration file:
    file:/D:/GosaEntwicklung/WorkspaceJavaFX/.metadata/.plugins/org.eclipse.pde.core/de.emsw.gosa.fx.osgitest.app.product.product/config.ini loaded
Install location:
    file:/D:/GosaEntwicklung/Export/fxtarget/
Framework located:
    file:/D:/GosaEntwicklung/Export/fxtarget/plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar
Loading extension: org.eclipse.fx.osgi
	eclipse.properties not found
Framework classpath:
    file:/D:/GosaEntwicklung/Export/fxtarget/plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar
    file:/D:/GosaEntwicklung/Export/fxtarget/plugins/
    file:/D:/GosaEntwicklung/Export/fxtarget/plugins/org.eclipse.fx.osgi_0.9.0.201401250701.jar
Debug options:
    file:/C:/Tools/eclipse-SDK-4.3.2-win32-efx-0.9.0/.options not found
Time to load bundles: 93
Starting application: 604
Application Started: 617


I then exported the plugins to manualy integrate them into our custom target platform. Although I took great care to update everything, I can't get the org.eclipse.fx.osgi extension to load on startup.

What could be the problem here? I don't see any errors in the "Target Platform State"-View. What are the requirements for org.eclipse.fx.osgi (except an existing host plug-in of course)?

(Side note: I didn't include fx.core.guice and it's dependencies, but that should matter ... or does it?)

Configuration location:
    file:/D:/GosaEntwicklung/WorkspaceJavaFX/.metadata/.plugins/org.eclipse.pde.core/de.emsw.gosa.fx.osgitest.app.product.product/
Configuration file:
    file:/D:/GosaEntwicklung/WorkspaceJavaFX/.metadata/.plugins/org.eclipse.pde.core/de.emsw.gosa.fx.osgitest.app.product.product/config.ini loaded
Install location:
    file:/D:/GitRepos/gosa/lib/Target/launcher/
Framework located:
    file:/D:/GitRepos/gosa/lib/Target/eclipse/org.eclipse.osgi_3.9.1.v20130814-1242.jar
Framework classpath:
    file:/D:/GitRepos/gosa/lib/Target/eclipse/org.eclipse.osgi_3.9.1.v20130814-1242.jar
Debug options:
    file:/C:/Tools/eclipse-SDK-4.3.2-win32-efx-0.9.0/.options not found
!SESSION 2014-05-16 15:17:58.610 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_05
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de
Framework arguments:  -product de.emsw.gosa.fx.osgitest.app.product
Command-line arguments:  -product de.emsw.gosa.fx.osgitest.app.product -data D:\GosaEntwicklung\WorkspaceJavaFX/../runtime-de.emsw.gosa.fx.osgitest.app.product -dev file:D:/GosaEntwicklung/WorkspaceJavaFX/.metadata/.plugins/org.eclipse.pde.core/de.emsw.gosa.fx.osgitest.app.product.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -debug

!ENTRY org.eclipse.osgi 4 0 2014-05-16 15:17:58.917
!MESSAGE Bundle org.eclipse.fx.osgi not found.
Time to load bundles: 94
Starting application: 579

!ENTRY org.eclipse.equinox.app 4 0 2014-05-16 15:17:59.195
!MESSAGE Plug-in "de.emsw.gosa.fx.osgitest.app" was unable to instantiate class "de.emsw.gosa.fx.osgitest.app.MainApplication".
!STACK 0
org.eclipse.core.runtime.CoreException: Plug-in "de.emsw.gosa.fx.osgitest.app" was unable to instantiate class "de.emsw.gosa.fx.osgitest.app.MainApplication".
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
	at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: javafx/scene/Parent
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2658)
	at java.lang.Class.getConstructor0(Class.java:2964)
	at java.lang.Class.newInstance(Class.java:403)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
	... 6 more
Caused by: java.lang.ClassNotFoundException: javafx.scene.Parent cannot be found by de.emsw.gosa.fx.osgitest.app_1.0.0.qualifier
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 11 more


Thanks for any pointers!
Re: Extension org.eclipse.fx.osgi doesn't load wit "custom" target platform [message #1359772 is a reply to message #1359754] Fri, 16 May 2014 13:47 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Is your target platform made up from p2 repos or is it a directory one.

If it is the latter IIRC you need to make sure that the
org.eclipse.fx.osgi fragment is PHYSICALLY located next to the
org.eclipse.osgi-jar!

Tom

On 16.05.14 15:37, Christoph Keimel wrote:
> Hello
>
> I want to integrate the org.eclipse.fx.* plugins into our target
> environment. We want to use efxclipse together with equinox, so I used
> the New -> Project -> JavaFX -> OSGi Application Project as a template.
> This works great, when I use a simple target platform pointing to the
> "Target Platform Feature 0.9.0.xxx" from
> http://download.eclipse.org/efxclipse/runtime-released/0.9.0/site
> Configuration location:
>
> file:/D:/GosaEntwicklung/WorkspaceJavaFX/.metadata/.plugins/org.eclipse.pde.core/de.emsw.gosa.fx.osgitest.app.product.product/
>
> Configuration file:
>
> file:/D:/GosaEntwicklung/WorkspaceJavaFX/.metadata/.plugins/org.eclipse.pde.core/de.emsw.gosa.fx.osgitest.app.product.product/config.ini
> loaded
> Install location:
> file:/D:/GosaEntwicklung/Export/fxtarget/
> Framework located:
>
> file:/D:/GosaEntwicklung/Export/fxtarget/plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar
>
> Loading extension: org.eclipse.fx.osgi
> eclipse.properties not found
> Framework classpath:
>
> file:/D:/GosaEntwicklung/Export/fxtarget/plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar
>
> file:/D:/GosaEntwicklung/Export/fxtarget/plugins/
>
> file:/D:/GosaEntwicklung/Export/fxtarget/plugins/org.eclipse.fx.osgi_0.9.0.201401250701.jar
>
> Debug options:
> file:/C:/Tools/eclipse-SDK-4.3.2-win32-efx-0.9.0/.options not found
> Time to load bundles: 93
> Starting application: 604
> Application Started: 617
>
> I then exported the plugins to manualy integrate them into our custom
> target platform. Although I took great care to update everything, I
> can't get the org.eclipse.fx.osgi extension to load on startup.
>
> What could be the problem here? I don't see any errors in the "Target
> Platform State"-View. What are the requirements for org.eclipse.fx.osgi
> (except an existing host plug-in of course)?
>
> (Side note: I didn't include fx.core.guice and it's dependencies, but
> that should matter ... or does it?)
>
> Configuration location:
>
> file:/D:/GosaEntwicklung/WorkspaceJavaFX/.metadata/.plugins/org.eclipse.pde.core/de.emsw.gosa.fx.osgitest.app.product.product/
>
> Configuration file:
>
> file:/D:/GosaEntwicklung/WorkspaceJavaFX/.metadata/.plugins/org.eclipse.pde.core/de.emsw.gosa.fx.osgitest.app.product.product/config.ini
> loaded
> Install location:
> file:/D:/GitRepos/gosa/lib/Target/launcher/
> Framework located:
>
> file:/D:/GitRepos/gosa/lib/Target/eclipse/org.eclipse.osgi_3.9.1.v20130814-1242.jar
>
> Framework classpath:
>
> file:/D:/GitRepos/gosa/lib/Target/eclipse/org.eclipse.osgi_3.9.1.v20130814-1242.jar
>
> Debug options:
> file:/C:/Tools/eclipse-SDK-4.3.2-win32-efx-0.9.0/.options not found
> !SESSION 2014-05-16 15:17:58.610
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.8.0_05
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de
> Framework arguments: -product de.emsw.gosa.fx.osgitest.app.product
> Command-line arguments: -product de.emsw.gosa.fx.osgitest.app.product
> -data
> D:\GosaEntwicklung\WorkspaceJavaFX/../runtime-de.emsw.gosa.fx.osgitest.app.product
> -dev
> file:D:/GosaEntwicklung/WorkspaceJavaFX/.metadata/.plugins/org.eclipse.pde.core/de.emsw.gosa.fx.osgitest.app.product.product/dev.properties
> -os win32 -ws win32 -arch x86 -consoleLog -debug
>
> !ENTRY org.eclipse.osgi 4 0 2014-05-16 15:17:58.917
> !MESSAGE Bundle org.eclipse.fx.osgi not found.
> Time to load bundles: 94
> Starting application: 579
>
> !ENTRY org.eclipse.equinox.app 4 0 2014-05-16 15:17:59.195
> !MESSAGE Plug-in "de.emsw.gosa.fx.osgitest.app" was unable to
> instantiate class "de.emsw.gosa.fx.osgitest.app.MainApplication".
> !STACK 0
> org.eclipse.core.runtime.CoreException: Plug-in
> "de.emsw.gosa.fx.osgitest.app" was unable to instantiate class
> "de.emsw.gosa.fx.osgitest.app.MainApplication".
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
>
> at
> org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
>
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoClassDefFoundError: javafx/scene/Parent
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2658)
> at java.lang.Class.getConstructor0(Class.java:2964)
> at java.lang.Class.newInstance(Class.java:403)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
>
> ... 6 more
> Caused by: java.lang.ClassNotFoundException: javafx.scene.Parent cannot
> be found by de.emsw.gosa.fx.osgitest.app_1.0.0.qualifier
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 11 more
>
>
> Thanks for any pointers!
Re: Extension org.eclipse.fx.osgi doesn't load wit "custom" target platform [message #1366286 is a reply to message #1359772] Mon, 19 May 2014 08:35 Go to previous messageGo to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Hi Tom!

Thanks! That was it Smile

Smile
Christoph

[quote title=Thomas Schindl wrote on Fri, 16 May 2014 15:47]Hi,

Is your target platform made up from p2 repos or is it a directory one.

If it is the latter IIRC you need to make sure that the
org.eclipse.fx.osgi fragment is PHYSICALLY located next to the
org.eclipse.osgi-jar!

Tom

Re: Extension org.eclipse.fx.osgi doesn't load wit "custom" target platform [message #1749652 is a reply to message #1359754] Fri, 09 December 2016 08:31 Go to previous messageGo to next message
Christin Kocher is currently offline Christin KocherFriend
Messages: 7
Registered: July 2016
Junior Member
I have the same problem, but my target definition consists of a mix of p2 repository (for eclipse RCP SDK and platform launcher executables) and some e(fx) features.

The repository data is downloaded into the bundle_pool, but the features remain in my eclipse installation and are not copied. In the end the bundle_pool contains org.eclipse.osgi, but not org.eclipse.fx.osgi.

Is there a way to solve this or am I doing something wrong?

When I export my target definition and work with the resulting directory everything is fine.

Thanks for your answer,
Christin
Re: Extension org.eclipse.fx.osgi doesn't load wit "custom" target platform [message #1749657 is a reply to message #1749652] Fri, 09 December 2016 09:05 Go to previous messageGo to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Hi Christin,

afaik org.eclipse.fx.osgi has been removed in the newer versions of efxclipse. Which version are you using?

Cheers,
Christoph
Re: Extension org.eclipse.fx.osgi doesn't load wit "custom" target platform [message #1749659 is a reply to message #1749657] Fri, 09 December 2016 09:13 Go to previous messageGo to next message
Christin Kocher is currently offline Christin KocherFriend
Messages: 7
Registered: July 2016
Junior Member
Hi Christoph,

the version is "e(fx)clipse - IDE - PDE 2.4.0.201605112122 org.eclipse.fx.ide.pde.feature.feature.group Eclipse.org"

Cheers,
Christin
Re: Extension org.eclipse.fx.osgi doesn't load wit "custom" target platform [message #1749660 is a reply to message #1749659] Fri, 09 December 2016 09:22 Go to previous messageGo to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Hi Christin,

that is the version of the IDE Integration. Important is the version of the runtime, but I assume they are in sync. So you should not need org.eclipse.fx.osgi (and also not org.eclipse.fx.javafx).

How do you start your application?

You should use -Dorg.osgi.framework.bundle.parent=ext
and not -Dosgi.framework.extensions=org.eclipse.fx.osgi

Cherrs,
Christoph
Re: Extension org.eclipse.fx.osgi doesn't load wit "custom" target platform [message #1749668 is a reply to message #1749660] Fri, 09 December 2016 10:45 Go to previous message
Christin Kocher is currently offline Christin KocherFriend
Messages: 7
Registered: July 2016
Junior Member
Hi Christoph,

thanks a lot.
You were right, I had the wrong start option.

Cheers,
Christin
Previous Topic:Javafx part on e4 RCP
Next Topic:Is it possible to drag a window/view out of workbench if the application is written in JavaFX?
Goto Forum:
  


Current Time: Fri Apr 26 12:16:42 GMT 2024

Powered by FUDForum. Page generated in 0.03558 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top