Does export failure clear the Run Configurations? A plugin is available in Run Configurations but not in Configurations tab of product. What am I messing in todo tutorial (OSGI chapter)

59 views
Skip to first unread message

Java Dev

unread,
Sep 2, 2012, 4:06:14 PM9/2/12
to vog...@googlegroups.com
Hi,

1) If it is possible to select a plugin from the product's Run Configuration (and select the start level from there as in p.258) but this plugin (specifically com.example.e4.rcp.todo.service) is not available in the list of the plugins in the todo.product-> Configurations tab what am I missing?
If I do the configuration as in p.258 the Todo tutorial works but I can not find the com.example.e4.rcp.todo.service as part of the Configurations tab of the todo.product. Why?

2) If I do export product (I have selected in the build.properties -Include in binary build-: classpath, .settings, Application.e4xmi, META-INF, bin, build.properties, icons, plugin.xml, todo.product) then the export fails with the following error:

 Cannot complete the install because one or more required items could not be found.
 Software being installed: to-do 0.0.0 (com.example.e4.rcp.todo.product 0.0.0)
 Missing requirement: Feature 1.0.0.201209022253 (com.example.e4.rcp.todo.feature.feature.group 1.0.0.201209022253) requires 'com.example.e4.rcp.todo.model 1.0.0' but it could not be found
 Cannot satisfy dependency:

I can not find why does this fail and com.example.e4.rcp.todo.model can not be found
After this export failure, the todo product does not run anymore from inside Eclipse. It is like the Run configurations were cleared. I get validation errors and I have to manually re-check/select again all the unchecked plugins in the Run Configurations so that the application works again.
I followed all the instructions in the tutorials but it seems I am messing something up. Any help please?





Lars Vogel

unread,
Sep 2, 2012, 4:10:12 PM9/2/12
to vog...@googlegroups.com
Hi,

1.) If you follow my book, than you use features based products. Add
the plug-in to your feature your product is using.
2.) Never manually adjust the Runtime Configuration. Add the missing
plug-in to your feature.

Best regards, Lars

2012/9/2 Java Dev <flying...@yahoo.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "vogella" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/vogella/-/dg1XZhEe1-EJ.
> To post to this group, send email to vog...@googlegroups.com.
> To unsubscribe from this group, send email to
> vogella+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/vogella?hl=en.

Java Dev

unread,
Sep 2, 2012, 4:41:43 PM9/2/12
to vog...@googlegroups.com

Hi, thank you for the prompt response. I have followed the book and I have used features. Everything is added to features but if I don't manually select the Run Configurations I get error running application (validation error)
See screenshots please:

Java Dev

unread,
Sep 2, 2012, 4:43:33 PM9/2/12
to vog...@googlegroups.com


Also the error and todo product:

Lars Vogel

unread,
Sep 2, 2012, 4:43:36 PM9/2/12
to vog...@googlegroups.com
Is this the correct screenshot? I don't see error message.

2012/9/2 Java Dev <flying...@yahoo.com>
To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/nyILLX21tnYJ.

Java Dev

unread,
Sep 2, 2012, 4:44:12 PM9/2/12
to vog...@googlegroups.com
Sorry I pressed submit before adding rest. Now added rest

Lars Vogel

unread,
Sep 2, 2012, 4:49:42 PM9/2/12
to vog...@googlegroups.com
Hi,

you have Eclipse 3.x plug-ins included as dependencies, first step would be to remove these. Check the book for the correct plug-ins to include.

Next step would be to delete your Runtime Configuration and restart the whole thing from the product. That will re-create a Runtime Config based on your product configuration file.

Best regards, Lars

2012/9/2 Java Dev <flying...@yahoo.com>

 
Warum sehe ich diese Anzeige?
Ratenkredite ohne Schufa - www.maxda.de/ratenkredit-schufafrei - Rückzahlungsraten ab 44 € mtl. Wir lehnen Sie nicht ab.
  
Does export failure clear the Run Configurations? A plugin is available in Run Configurations but not in Configurations tab of product. What am I messing in todo tutorial (OSGI chapter)
Posteingang

Java Dev
Hi, 1) If it is possible to select a plugin from the product's Run Configurat...
22:06 (vor 40 Minuten)

Java Dev flying...@yahoo.com
22:43 (vor 3 Minuten)

an vogella 
Englisch
Deutsch   Nachricht übersetzen
Deaktivieren für: Englisch








Also the error and todo product:



Τη Κυριακή, 2 Σεπτεμβρίου 2012 11:06:14 μ.μ. UTC+3, ο χρήστης Java Dev έγραψε:
Hi,

1) If it is possible to select a plugin from the product's Run Configuration (and select the start level from there as in p.258) but this plugin (specifically com.example.e4.rcp.todo.service) is not available in the list of the plugins in the todo.product-> Configurations tab what am I missing?
If I do the configuration as in p.258 the Todo tutorial works but I can not find the com.example.e4.rcp.todo.service as part of the Configurations tab of the todo.product. Why?

2) If I do export product (I have selected in the build.properties -Include in binary build-: classpath, .settings, Application.e4xmi, META-INF, bin, build.properties, icons, plugin.xml, todo.product) then the export fails with the following error:

 Cannot complete the install because one or more required items could not be found.
 Software being installed: to-do 0.0.0 (com.example.e4.rcp.todo.product 0.0.0)
 Missing requirement: Feature 1.0.0.201209022253 (com.example.e4.rcp.todo.feature.feature.group 1.0.0.201209022253) requires 'com.example.e4.rcp.todo.model 1.0.0' but it could not be found
 Cannot satisfy dependency:

I can not find why does this fail and com.example.e4.rcp.todo.model can not be found
After this export failure, the todo product does not run anymore from inside Eclipse. It is like the Run configurations were cleared. I get validation errors and I have to manually re-check/select again all the unchecked plugins in the Run Configurations so that the application works again.
I followed all the instructions in the tutorials but it seems I am messing something up. Any help please?







-- 
You received this message because you are subscribed to the Google Groups "vogella" group.
To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/ADW5dLut0WYJ.


Lars Vogel lars....@gmail.com
22:43 (vor 3 Minuten)

an vogella 
Is this the correct screenshot? I don't see error message.

Zum Antworten oder Weiterleiten hier klicken
18 % belegt
Belegt: 1,9 GB von 10 GB
© 2012 Google - Nutzungsbedingungen und Datenschutz
Letzte Kontoaktivität vor 4 Minuten
Details
Anzeigen – Warum sehe ich diese Anzeigen?
Free EMC Forums 2012 Pass
Discover How IT Can Transform Your Business. Free Ticket to EMC Forum
germany.emc.com/EMC-Forum-2012
Mikrodarlehen vom Bund
500 € - 20.000 € schnell & einfach für Existenzgründer & Unternehmen
www.mikrofinanzierung4u.de
Kredite bei CreditPlus
Benötigen Sie kurzfristig Geld? Günstige Sofortkredite gibt's hier.
www.CreditPlus.de
TabletPCs ab 59,90 EUR
Highend Android Tablets - GPS, FullHD - Wahnsinnspreise PEARL
www.pearl.de
Weitere Informationen zu
Install Eclipse Tools »
Eclipse »
Eclipse Configuration »
Eclipse Plug In »
To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/nyILLX21tnYJ.

Java Dev

unread,
Sep 2, 2012, 4:50:24 PM9/2/12
to vog...@googlegroups.com

Also overview of product

Java Dev

unread,
Sep 2, 2012, 5:16:22 PM9/2/12
to vog...@googlegroups.com
Added screenshots. Also the screenshot that shows that I am using feature based configuration. What am I messing up here?

Lars Vogel

unread,
Sep 2, 2012, 5:17:41 PM9/2/12
to vog...@googlegroups.com
See my earlier answer you are adding plug-ins you should not. Please check the book for details which plug-ins should be added. 

2012/9/2 Java Dev <flying...@yahoo.com>
To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/CwVsSEql15wJ.

Java Dev

unread,
Sep 2, 2012, 6:08:36 PM9/2/12
to vog...@googlegroups.com

I have now only what is in the book:

com.example.e4.rcp.todo.model
com.example.e4.rcp.todo.service


Added from page. 79:
javax.inject
org.eclipse.e4.core.di
org.eclipse.e4.ui.di
org.eclipse.e4.ui.workbench
org.eclipse.swt


org.eclipse.e4.ui.workbench added due to page 117 (example with exit handler)


org.eclipse.jface (page 181)

org.eclipse.core.runtime (e.g. page 259 to start in lowest level)

org.eclipse.equinox.ds (page 258)
org.eclipse.equinox.util (page 253)


>>Next step would be to delete your Runtime Configuration and restart the whole thing from the product
Not sure I understand you here but I did a delete of Runtime configuration, clicked on Synchronize and then clicked on Launch as Eclipse application.
I got errors. Also I selected to clear the configuration data on each launch. Now the application does not work at all!

Lars Vogel

unread,
Sep 2, 2012, 6:11:36 PM9/2/12
to vog...@googlegroups.com
Excellent, now you have the same situation after a product export in your IDE.

Start your program with the OSGi console and the noExit parameter and use the diag command to see why your plug-ins are missing or not starting. Maybe a Java version filter?

2012/9/3 Java Dev <flying...@yahoo.com>
To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/8n-ff71VdbAJ.

Java Dev

unread,
Sep 2, 2012, 6:28:03 PM9/2/12
to vog...@googlegroups.com

Hi, How am I supposed to do that?
If I don't add the plugins manually in the Run configuration the program does not launch (and the telnet client says it can not connect).
If I add the plugins manually I guess the telnet is not of value? I am not sure how to do what you describe.

Java Dev

unread,
Sep 2, 2012, 6:30:06 PM9/2/12
to vog...@googlegroups.com

If I add the plugins manually in the Run Configuration I can telnet but diag says no plugin specified

Lars Vogel

unread,
Sep 2, 2012, 6:31:40 PM9/2/12
to vog...@googlegroups.com

Chapter 34

To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/gBuxS7P0BgUJ.

Java Dev

unread,
Sep 2, 2012, 6:32:37 PM9/2/12
to vog...@googlegroups.com

Also tried (added manually in Run Configurations before) . Have no idea now!

Lars Vogel

unread,
Sep 2, 2012, 6:35:24 PM9/2/12
to vog...@googlegroups.com

Don't adjust manually the Runtime Config, use no exit. Chapter 9.1

To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/tBrBefBzRyEJ.

Java Dev

unread,
Sep 2, 2012, 6:41:46 PM9/2/12
to vog...@googlegroups.com
Hi I read 34. Page 165 to specify -console PORT. I did that. Then use telnet. I can connect but only if I add manually the missing plugins in the Run Configuration. Is this what you recommended? To add first manually in Run Configurations and then connect via telnet?

Java Dev

unread,
Sep 2, 2012, 6:48:47 PM9/2/12
to vog...@googlegroups.com

Oh! Did it. diag does not show the todo.model and todo.service
What can In understand now from this?

Java Dev

unread,
Sep 2, 2012, 6:50:19 PM9/2/12
to vog...@googlegroups.com

I am sorry! Wrong screenshot!!! Correct now! Sorry!!!

Java Dev

unread,
Sep 2, 2012, 6:53:35 PM9/2/12
to vog...@googlegroups.com

Could this mean something?

java.lang.RuntimeException: No application id has been found.
    at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
    at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
    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:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    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:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
An error has occurred. See the log file

Java Dev

unread,
Sep 2, 2012, 7:02:49 PM9/2/12
to vog...@googlegroups.com

Should I be adding the model and service both in Dependencies of Feature.xml and  as part of the packaged plugins?

Lars Vogel

unread,
Sep 2, 2012, 8:46:19 PM9/2/12
to vog...@googlegroups.com

Yes

To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/JZjUmsov-_EJ.

Java Dev

unread,
Sep 3, 2012, 11:49:09 AM9/3/12
to vog...@googlegroups.com
Hi! That was the problem. After I added the service and model as part of the plugins packaged by the feature it worked!
I missed this because in p. 172 it says: "In todo plugin define a dependency to the two bundles...Also add them to the feature"
I thought it meant as dependency also and not packaged (newbie on this)
One last question: Why do we need to add them both as depencency and as packaged by the feature? The rest of the depended plugins are resolved. Why not the ones we created? Why we need to declare them both as dependencies and packaged?

Lars Vogel

unread,
Sep 3, 2012, 11:51:29 AM9/3/12
to vog...@googlegroups.com

Great to hear. The feature defines what is included in the product. The Manifest.MF defines the API you use. Feature usually contains a superset.

To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/Qw49eAXZf6oJ.

Java Dev

unread,
Sep 3, 2012, 4:51:44 PM9/3/12
to vog...@googlegroups.com
But isn't a dependency added to the end product (application)? I assume yes otherwise it would not run. So why we must define our created plugins -service, model- as included explicitly? Won't they be included as part of the dependencies? The rest are included right?
Is this a question that perhaps I could not understand the answer due to lack of background?

Lars Vogel

unread,
Sep 3, 2012, 5:16:27 PM9/3/12
to vog...@googlegroups.com

That's how it is currently implemented. It could in theory read the dependencies from the manifest and include but unfortunately not implemented.

To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/NuzEI0lyUUgJ.

Java Dev

unread,
Sep 3, 2012, 5:30:48 PM9/3/12
to vog...@googlegroups.com
Ah! Ok. I am just trying to understand how it works. Thank you very much for your help!!!
Reply all
Reply to author
Forward
0 new messages