Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT not working in exports
XWT not working in exports [message #576142] Sat, 15 May 2010 19:24 Go to next message
Parvez Ahmad Ahmad is currently offline Parvez Ahmad AhmadFriend
Messages: 31
Registered: May 2010
Member
I have below code
label = (Label) XWT.load(parent, XWTLoader.class
getResource("org/cord/client/dms/mainapp/ui/detailsViewer/ " + labelName ));


Now what happens, the getResource works fine in development environment, but when i try to export the project as product, getResource returns null

Can some body offer help
I too tired modifying build properties

Parvez Ahmad Hakim
Srinagar
Re: XWT not working in exports [message #576166 is a reply to message #576142] Tue, 18 May 2010 09:41 Go to previous messageGo to next message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
It is a class loader issue. You should use your class instead of XWT to get
the resource: XWTLoader.class.getResource().

Please find relative tropics about getResource() in Java.

Best regards
Yves YANG
"Parvez Ahmad Hakim" <parvez12@gmail.com> wrote in message
news:hsmse1$jp0$1@build.eclipse.org...
>I have below code
> label = (Label) XWT.load(parent, XWTLoader.class
> getResource("org/cord/client/dms/mainapp/ui/detailsViewer/ " +
> labelName ));
>
>
> Now what happens, the getResource works fine in development environment,
> but when i try to export the project as product, getResource returns null
>
> Can some body offer help
> I too tired modifying build properties
>
> Parvez Ahmad Hakim
> Srinagar
Re: XWT not working in exports [message #728874 is a reply to message #576166] Sat, 24 September 2011 06:35 Go to previous messageGo to next message
Parvez Ahmad Ahmad is currently offline Parvez Ahmad AhmadFriend
Messages: 31
Registered: May 2010
Member
how to export E4 project . I see some errors in running the exported product
Parvez Ahmad Hakim
Srinagar www.abobjects.com
!SESSION 2011-09-23 11:07:40.531 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.equinox.app 0 0 2011-09-23 11:07:50.609
!MESSAGE Product org.cord.client.dms.mainapp.e4.product could not be found.

!ENTRY org.eclipse.osgi 4 0 2011-09-23 11:07:50.625
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:126)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Re: XWT not working in exports [message #729140 is a reply to message #728874] Sun, 25 September 2011 07:32 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Most likely you are missing the plugin.xml, e4xmi,... in your
build.properties

Tom

Am 24.09.11 08:35, schrieb Parvez Ahmad Hakim:
> how to export E4 project . I see some errors in running the exported
> product
> Parvez Ahmad Hakim
> Srinagar www.abobjects.com
> !SESSION 2011-09-23 11:07:40.531
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_11
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86
>
> !ENTRY org.eclipse.equinox.app 0 0 2011-09-23 11:07:50.609
> !MESSAGE Product org.cord.client.dms.mainapp.e4.product could not be found.
>
> !ENTRY org.eclipse.osgi 4 0 2011-09-23 11:07:50.625
> !MESSAGE Application error
> !STACK 1
> java.lang.NullPointerException
> at
> org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:126)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
>
Re: XWT not working in exports [message #729259 is a reply to message #729140] Sun, 25 September 2011 16:26 Go to previous message
Parvez Ahmad Ahmad is currently offline Parvez Ahmad AhmadFriend
Messages: 31
Registered: May 2010
Member
Yes that is true. Add the XYZ.e4xmi( i.e e4xmi file that you have) and plugin.xml file to your build path


Parvez Ahmad Hakim
Srinagar
www.abobjects.com

This solved by below problems in exported product:

!SESSION 2011-09-24 21:23:45.506 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.equinox.registry 2 0 2011-09-24 21:23:55.871
!MESSAGE The extensions and extension-points from the bundle "org.eclipse.emf.validation.source" are ignored. The bundle is not marked as singleton.

!ENTRY org.eclipse.equinox.registry 2 0 2011-09-24 21:23:55.872
!MESSAGE The extensions and extension-points from the bundle "org.eclipse.emf.validation.ui.ide.source" are ignored. The bundle is not marked as singleton.

!ENTRY org.eclipse.equinox.registry 2 0 2011-09-24 21:23:55.875
!MESSAGE The extensions and extension-points from the bundle "org.eclipse.emf.validation.ui.source" are ignored. The bundle is not marked as singleton.

!ENTRY org.eclipse.equinox.registry 2 0 2011-09-24 21:23:55.936
!MESSAGE The extensions and extension-points from the bundle "org.eclipse.gef.examples.flow.source" are ignored. The bundle is not marked as singleton.

!ENTRY org.eclipse.equinox.registry 2 0 2011-09-24 21:23:55.938
!MESSAGE The extensions and extension-points from the bundle "org.eclipse.gef.examples.logic.source" are ignored. The bundle is not marked as singleton.

!ENTRY org.eclipse.equinox.registry 2 0 2011-09-24 21:23:55.942
!MESSAGE The extensions and extension-points from the bundle "org.eclipse.gef.examples.shapes.source" are ignored. The bundle is not marked as singleton.

!ENTRY org.eclipse.equinox.registry 2 0 2011-09-24 21:23:55.945
!MESSAGE The extensions and extension-points from the bundle "org.eclipse.gef.examples.text.source" are ignored. The bundle is not marked as singleton.

!ENTRY org.eclipse.equinox.app 0 0 2011-09-24 21:23:56.617
!MESSAGE Product org.cord.client.dms.mainapp.e4.product could not be found.

!ENTRY org.eclipse.osgi 2 0 2011-09-24 21:23:56.701
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-09-24 21:23:56.701
!MESSAGE Bundle org.eclipse.emf.common_2.7.0.v20110605-0747 [56] was not resolved.
!SUBENTRY 2 org.eclipse.emf.common 2 0 2011-09-24 21:23:56.701
!MESSAGE Another singleton version selected: org.eclipse.emf.common_2.7.0.v20110905-0902
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-09-24 21:23:56.701
!MESSAGE Bundle org.eclipse.emf.ecore.change_2.7.0.v20110408-2116 [58] was not resolved.
!SUBENTRY 2 org.eclipse.emf.ecore.change 2 0 2011-09-24 21:23:56.701
!MESSAGE Another singleton version selected: org.eclipse.emf.ecore.change_2.7.1.v20110829-1916
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-09-24 21:23:56.701
!MESSAGE Bundle org.eclipse.emf.ecore_2.7.0.v20110605-0747 [60] was not resolved.
!SUBENTRY 2 org.eclipse.emf.ecore 2 0 2011-09-24 21:23:56.701
!MESSAGE Another singleton version selected: org.eclipse.emf.ecore_2.7.0.v20110905-0902
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-09-24 21:23:56.701
!MESSAGE Bundle org.eclipse.ui.workbench.compatibility_3.2.100.I20110413-1600 [108] was not resolved.
!SUBENTRY 2 org.eclipse.ui.workbench.compatibility 2 0 2011-09-24 21:23:56.701
!MESSAGE Constraints from the fragment conflict with the host: Require-Bundle: org.eclipse.core.resources; bundle-version="[3.2.0,4.0.0)"
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-09-24 21:23:56.701
!MESSAGE Bundle org.eclipse.emf.common.ui_2.7.0.v20110606-0949 [309] was not resolved.
!SUBENTRY 2 org.eclipse.emf.common.ui 2 0 2011-09-24 21:23:56.701
!MESSAGE Another singleton version selected: org.eclipse.emf.common.ui_2.7.0.v20110905-0916
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-09-24 21:23:56.701
!MESSAGE Bundle org.eclipse.emf.ecore.edit_2.7.0.v20110606-0949 [342] was not resolved.
!SUBENTRY 2 org.eclipse.emf.ecore.edit 2 0 2011-09-24 21:23:56.701
!MESSAGE Another singleton version selected: org.eclipse.emf.ecore.edit_2.7.0.v20110905-0916
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-09-24 21:23:56.701
!MESSAGE Bundle org.eclipse.emf.edit.ui_2.7.0.v20110606-0949 [362] was not resolved.
!SUBENTRY 2 org.eclipse.emf.edit.ui 2 0 2011-09-24 21:23:56.701
!MESSAGE Another singleton version selected: org.eclipse.emf.edit.ui_2.7.0.v20110905-0916
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-09-24 21:23:56.701
!MESSAGE Bundle org.eclipse.emf.edit_2.7.0.v20110606-0949 [364] was not resolved.
!SUBENTRY 2 org.eclipse.emf.edit 2 0 2011-09-24 21:23:56.701
!MESSAGE Another singleton version selected: org.eclipse.emf.edit_2.7.0.v20110905-0916
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-09-24 21:23:56.702
!MESSAGE Bundle org.eclipse.gef_3.7.0.v20110407-2050 [569] was not resolved.
!SUBENTRY 2 org.eclipse.gef 2 0 2011-09-24 21:23:56.702
!MESSAGE Another singleton version selected: org.eclipse.gef_3.7.1.v20110830-1143

!ENTRY org.eclipse.osgi 4 0 2011-09-24 21:23:56.702
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:126)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Previous Topic:Exporting e4 app product - exit code 13
Next Topic:how to show XP style components
Goto Forum:
  


Current Time: Wed Apr 24 16:25:15 GMT 2024

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

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

Back to the top