Eclipse, dropins, console mode, Axis2 and dropins not installed - eclipse

i'm new to the eclipse dev platform, i have a strange behaviour here while trying to install the following plugins :
org.apache.axis2.eclipse.codegen.plugin_1.6.2.jar
org.apache.axis2.eclipse.service.plugin_1.6.2.jar
i have downloaded them from Apache, extracted in a folder plugins inside dropins one so that i have :
D:\eclipse\dropins\plugins
org.apache.axis2.eclipse.codegen.plugin_1.6.2.jar
org.apache.axis2.eclipse.service.plugin_1.6.2.jar
and i can not still use/see them from the File / New / Other / Select a wizard
BTW after reading some posts about the kind of difficulties, i found that starting eclipse from command line with "eclipse -console" allow me to see them in the File / New / Other / select a wizard => Axis2 Code generator and Axis2 Service Archiver
so please, how is the right way to do ? and why adding -console do the trick while "normal" start do not ?
EDIT: forgot to write infos about Eclipse :
Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 2
Build id: 20120216-1857
EDIT : actually i have tested both dropping these jars inside a plugins subfolder of dropins or directly inside dropins, and none had worked. The only way to have the Axis2 service Archiver is to start with eclipse -console and having them in a plugins... i surely have missed something or have a dependency fail but i do not know how to check/correct that. This is why i have asked here.
EDIT : if this could help :
inside my bundles.info
org.apache.axis2.eclipse.codegen.plugin,1.6.2,dropins/plugins/org.apache.axis2.eclipse.codegen.plugin_1.6.2.jar,4,false
org.apache.axis2.eclipse.service.plugin,1.6.2,dropins/plugins/org.apache.axis2.eclipse.service.plugin_1.6.2.jar,4,false
inside console :
osgi> ss axis2
Framework is launched.
id State Bundle
24 <<LAZY>> org.apache.axis2.eclipse.codegen.plugin_1.6.2
25 ACTIVE org.apache.axis2.eclipse.service.plugin_1.6.2
461 <<LAZY>> org.eclipse.jst.ws.axis2.consumption.core_1.0.105.v201004211
805
462 <<LAZY>> org.eclipse.jst.ws.axis2.consumption.ui_1.0.103.v20100421180
5
463 <<LAZY>> org.eclipse.jst.ws.axis2.core_1.0.204.v201004211805
464 <<LAZY>> org.eclipse.jst.ws.axis2.creation.core_1.0.106.v201004211805
465 <<LAZY>> org.eclipse.jst.ws.axis2.creation.ui_1.0.104.v201004211805
466 <<LAZY>> org.eclipse.jst.ws.axis2.ui_1.0.303.v201003110431
467 RESOLVED org.eclipse.jst.ws.axis2.ui.doc.user_1.0.100.v201005192217
osgi> diag 25
reference:file:dropins/plugins/org.apache.axis2.eclipse.service.plugin_1.6.2.jar
[25]
No unresolved constraints.
osgi> diag 24
reference:file:dropins/plugins/org.apache.axis2.eclipse.codegen.plugin_1.6.2.jar
[24]
No unresolved constraints.
and i do not find a file .metadata\.plugins\org.eclipse.pde.core\org.eclipse.equinox.simpleconfigurator in my Eclipse Workspace
best regards

I've found the dropins catalog to not be that dependable to be honest. Sometimes it works perfectly, othertimes nothing you do will make it work. I've written a question regarding it, but no answer yet: Plugins in dropins-catalog are not found
What you can do is to check if the plugin is found at all, or if there are dependencies issue that will prevent it from starting. I usually recommend Dude, where's my bundle as a good starting point to understanding how the bundles work with their different states.
The osgi console can be a useful tool to see if your plugins are loaded at all. I wrote a more elaborate answer to a question where I described how it works: https://stackoverflow.com/a/9885646/207764

As explained in the Axis2 documentation, you need to "extract the content of the plugins folder in the ZIP archive into the dropins folder (i.e. do not create a plugins folder under dropins)".

Related

Java failed to bootstrap path, eclipse, jdk-13

I’m trying to update my JavaFX project to be compatible with JRE 13 (until now it was set up to use JRE 1.8). I’m developing with Eclipse 2020-03, using a Mac.
The first big issue I’ve had to deal with is the migration from the included JavaFX libraries in JDK 1.8 to having to import JavaFX (14) as an external package for JDK 13.
The second issue is migration from using the classpath to using the modulepath. I’m new to the module path, so what I say about it may not make sense, but my current setup now is this:
modulepath:
<list of other .jar files>
JRE System Library [Java SE 13 [13.0.2]]
JavaFX 14
<list of .jar files I downloaded, including javafx-swt, javafx.base, javafx.controls, javafx.fxml, javafx.graphics, javafx.media, javafx.swing, javafx.web>
<I created a User Library from the above listed .jar’s>
Finally, all the compiler errors are now gone (I had to recompile some of the external .jar files I downloaded so there weren’t any split packages), but when I build and run the application class nothing happens.
Checking the Mac system console, the below output seems to reference why the app is not starting, but I checked he JDK path and the referenced java executable does exist.
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.java.40558): Failed to bootstrap path: path = /Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/bin/java, error = 2: No such file or directory
What is happening here? If you need more info about my project config, comment and I can add details.

MagicDraw 18.3 developing plugins using Eclipse 4.5.2.M

I am having trouble configurating Eclipse for MD 18.3 plugin development.
I have thoroughly followed the "MagicDraw 18.3 Developer Guide / Development in Eclipse" tutorial you can find inside MagicDraw\openapi section to set up Eclipse.
When launching MagicDraw with all plugins run configuration, it throws the following error and terminates:
!ENTRY org.eclipse.core.variables 4 120 2016-07-20 10:39:12.159
!MESSAGE Reference to undefined variable file_uri
caused by this line of the run configuration
-Dosgi.framework.extensions=reference:${file_uri:${workspace_loc:/MagicDraw/MAGIC_DRAW_INSTALL_DIRECTORY/lib/bundles}}/com.nomagic.magicdraw.osgi.fragment
However, \lib\bundles\com.nomagic.magicdraw.osgi.fragment_1.0.0.201601271815.jar
is existing
I'm running the demo license, but that shouldn't influence the configuration. Any suggestions?
UPDATE
Solved this issue, by replacing reference:${file_uri:${workspace_loc:/MagicDraw/MAGIC_DRAW_INSTALL_DIRECTORY/lib/bundles}}/com.nomagic.magicdraw.osgi.fragment with the actual path and enabling com.nomagic.magicdraw.platform.feature in the bundles tab of the run configuration.
Next Problem: The provided example plugins won't load, throwing
java.lang.NullPointerException at com.nomagic.magicdraw.plugins.XMLPluginDescriptorLoader.loadPluginDescriptorData(XMLPluginDescriptorLoader.java:172)
and therefore
ERROR PLUGINS - Failed to create plugin: My Plug-in 2
java.lang.ClassNotFoundException: myplugin2.MyPlugin2
Same message for both, the example plugins and my own plugin. I have checked the plugin.xml files and also experimentally enabled the run configurations > bundles > workspace checkbox.
Try to edit this line:
- Dosgi.framework.extensions=com.nomagic.magicdraw.osgi.fragment
Setting up a new clean Eclipse installation solved everything.

org/eclipse/e4/ui/model/application/ui/MUIElement Class Not Found , Java Eclipse Juno

I am doing a CIMTool project, for a handle of WorkbenchWindow
Code Snippet
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
//(both these Classes are present in Libraries)
IWorkbenchWindow window=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
Issues
Following Error is slapped
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/e4/ui/model/application/ui/MUIElement
at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:90)
Environment
Eclipse : Eclipse Java EE IDE for Web Developers, Version: Juno Service Release 2
OS : MS Windows 7 Professional, X86
Java Version : java version "1.7.0_25"
Questions
I tried searching for org/eclipse/e4/ui/model/*, I could not find in
Archives. Where I can find ?
Is there any otherway to get IWorkbenchWindow Instance ? (want to
avoid this issue)
This problem I found that, doesnt appear in Java Indigo. But my project has to be developed in Eclipse , so I cant migrate.
thanks
I also was confronted with this error when executing code from within a project that was created as "SWT/JFace Java Project" using Eclipse Kepler (displaying a ListSelectionDialog).
The main problem is that the project set-up misses a JAR file that contains the MUIElement class. You can easily fix the project set-up by editing the build-path, adding the external jar which has a name similar to this one:
org.eclipse.e4.ui.model.workbench_1.0.1.v20131118-1956.jar.
You find that jar in the plugins directory of your Eclipse installation.

Problem with Eclipse IMP Plugin

I have just installed the IMP plugin for Eclipse but the IMP menus don't show up -for example, I can't see the IMP Perspective in the related area- I have followed the instructions at IMP website sharply -also used Eclipse SDK 3.3.2 as suggested in the EclipseCon 2009 tutorial presentation- and restarted Eclipse after installing the related IMP files but to no avail. The OS is Windows Vista, Any suggestions on how I can solve this ? Thanks.
Did you use the IMP update-site?
http://download.eclipse.org/technology/imp/updates
No messages in the log-file?
You could try to start the bundles by hand to see if there are any dependency problems.
Go to the "Console"-View and change it to "OSGi Host".
then enter something like "ss imp".
Then you will see the relevant plugins and there state.
You can analyze the plugins with diag like diag 57
Maybe this will throw messages about unresolved dependencies...

problem installing eclipse groovy plugin in galileo

I'm trying to install groovy plugin in eclipse 3.5 using this update site.
It does install but when it tries to restart I get an exception.
!SESSION Sat Aug 29 15:47:17 PDT 2009 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2009-08-29 15:47:17.287
!MESSAGE Exception launching the Eclipse Platform:
!STACK java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
I tried to start using -clean options,deleted workspace no luck
Did anyone get this too??
It looks like you're missing a class or a jar required by the plugin; I'm not sure which one though, since the stacktrace does not indicate any such plugin specific class. You could attempt the following:
Examine the .log file of the workspace to view any additional details of the exception.
Verify if all the Groovy Eclipse plugin jars are present in the plugins and features directory of the Eclipse installation.
Start Eclipse with the consolelog and debug switches, and pipe the output to a debug log file. Examine for anything indicative of the problem in the logfile; if needed post the log file. The command to start Eclipse in this mode would be $eclipse -consolelog -debug | tee debugfile.log
Install the plugin on a clean installation of Eclipse.
OK now finally i fixed it after 2 days of war with eclipse, so for some reason when groovy plugin was installed eclipse modified config.ini file inside configuration folder
so I have to modify config.ini file to replace osgi.bundles value with
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.100.v20090520-1905.jar#1\:start,reference\:file\:plugins/org.eclipse.jdt.core_3.5.0.xx-20090828-1900-e35.jar#4,reference\:file\:/Applications/galileo/plugins/org.apache.commons.collections_3.2.1.jar#4,reference\:file\:/Applications/galileo/plugins/org.apache.commons.lang_2.3.0.v200803061910.jar#4,reference\:file\:/Applications/galileo/plugins/org.codehaus.groovy_1.7.0.xx-20090828-1900-e35/#4,reference\:file\:/Applications/galileo/plugins/org.codehaus.groovy.eclipse.ant_2.0.0.xx-20090828-1900-e35/#4,reference\:file\:/Applications/galileo/plugins/org.codehaus.groovy.eclipse.codeassist.completion_2.0.0.xx-20090828-1900-e35.jar#4,reference\:file\:/Applications/galileo/plugins/org.codehaus.groovy.eclipse.codebrowsing_2.0.0.xx-20090828-1900-e35.jar#4,reference\:file\:/Applications/galileo/plugins/org.codehaus.groovy.eclipse.core_2.0.0.xx-20090828-1900-e35.jar#4,reference\:file\:/Applications/galileo/plugins/org.codehaus.groovy.eclipse.core.help_2.0.0.xx-20090828-1900-e35/#4,reference\:file\:/Applications/galileo/plugins/org.codehaus.groovy.eclipse.cstviewer_2.0.0.xx-20090828-1900-e35.jar#4,reference\:file\:/Applications/galileo/plugins/org.codehaus.groovy.eclipse.refactoring_2.0.0.xx-20090828-1900-e35.jar#4,reference\:file\:/Applications/galileo/plugins/org.codehaus.groovy.eclipse.ui_2.0.0.xx-20090828-1900-e35.jar#4,reference\:file\:/Applications/galileo/plugins/org.eclipse.jdt.groovy.core_1.0.0.xx-20090828-1900-e35.jar#4
By default osgi.bundles value is osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.100.v20090520-1905.jar#1\:start but as soon as I installed groovy plugin I had a modified value which caused eclipse fali to start.
now my eclipse starts and i see the groovy features too..
I had the same problem with installing the CVS plugin on a Eclipse Platform installation running TeXlipse. Turns out, after installing CVS, the installer had modified not the osgi.bundles, but the osgi.framework.
/Applications/TeXlipse/configuration/config.ini said:
osgi.framework=file\:/Applications/TeXlipse/Eclipse.app/Contents/MacOS/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
and it was supposed to say
osgi.framework=file\:/Applications/TeXlipse/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar