Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to setup a proper equinox installation
    text
    copied!<p>I googled this for hours but I couldn't find anything useful. I have developed some OSGi bundles and now I want to run them outside of the Eclipse IDE in the equinox container, but it always throws an exception:</p> <pre><code>!SESSION 2011-01-03 14:26:58.958 ----------------------------------------------- eclipse.buildId=unknown java.version=1.6.0_20 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_CH Framework arguments: -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -console; Command-line arguments: -consoleLog -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -console; !ENTRY org.eclipse.osgi 4 0 2011-01-03 14:26:59.567 !MESSAGE Error starting bundle: initial@reference:file:javax.transaction_1.1.1.v201006150915.jar/ !STACK 0 org.osgi.framework.BundleException: A fragment bundle cannot be started: javax.transaction_1.1.1.v201006150915 [49] at org.eclipse.osgi.framework.internal.core.BundleFragment.startWorker(BundleFragment.java:228) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284) at org.eclipse.core.runtime.adaptor.EclipseStarter.startBundle(EclipseStarter.java:1133) at org.eclipse.core.runtime.adaptor.EclipseStarter.startBundles(EclipseStarter.java:1126) at org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(EclipseStarter.java:646) at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:301) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175) at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:150) init dd core... !ENTRY org.eclipse.osgi 4 0 2011-01-03 14:26:59.773 !MESSAGE Bundle javax.transaction_1.1.1.v201006150915 [49] is not active. </code></pre> <p>(the "init dd core..." text comes properly from my project.)</p> <p>I have the following file structure:</p> <pre><code>+configuration +config.ini +ch.thobens.dd.commands_1.0.0.jar +ch.thobens.dd.common.items_1.0.0.jar +ch.thobens.dd.core_1.0.0.jar +ch.thobens.dd.game_1.0.0.jar +javax.transaction_1.1.1.v201006150915.jar +org.eclipse.core.contenttype_3.4.100.v20100505-1235.jar +org.eclipse.core.jobs_3.5.0.v20100515.jar +org.eclipse.core.runtime.compatibility.auth_3.2.200.v20100517.jar +org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100520/runtime_registry_compatibility.jar +org.eclipse.core.runtime_3.6.0.v20100505.jar +org.eclipse.equinox.app_1.3.0.v20100512.jar +org.eclipse.equinox.common_3.6.0.v20100503.jar +org.eclipse.equinox.preferences_3.3.0.v20100503.jar +org.eclipse.equinox.registry_3.5.0.v20100503.jar +org.eclipse.osgi.services_3.2.100.v20100503.jar +org.eclipse.osgi_3.6.0.v20100517.jar </code></pre> <p>and my config.ini file has the following contents:</p> <pre><code>osgi.bundles=javax.transaction_1.1.1.v201006150915.jar@start, org.eclipse.core.contenttype_3.4.100.v20100505-1235.jar@start, org.eclipse.core.jobs_3.5.0.v20100515.jar@start, org.eclipse.core.runtime.compatibility.auth_3.2.200.v20100517.jar@start,org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100520/runtime_registry_compatibility.jar@start, org.eclipse.core.runtime_3.6.0.v20100505.jar@start, org.eclipse.equinox.app_1.3.0.v20100512.jar@start, org.eclipse.equinox.common_3.6.0.v20100503.jar@2:start, org.eclipse.equinox.preferences_3.3.0.v20100503.jar@start, org.eclipse.equinox.registry_3.5.0.v20100503.jar@start, org.eclipse.osgi.services_3.2.100.v20100503.jar@start, ch.thobens.dd.commands_1.0.0.jar@start, ch.thobens.dd.common.items_1.0.0.jar@start, ch.thobens.dd.core_1.0.0.jar@start, ch.thobens.dd.game_1.0.0.jar@1:start eclipse.ignoreApp=true osgi.noShutdown=true </code></pre> <p>The bundles that are listed here are the same bundles that are selected if I select "Add required Plug-ins" in the run configuration. If I run these bundles from the Eclipse PDE, it works fine.</p> <p>Additionally, there is no difference between running the command</p> <pre><code>java -jar org.eclipse.osgi_3.6.0.v20100517.jar -consoleLog -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true </code></pre> <p>and when I use the equinox launcher (via eclipse.exe).</p> <p>Thanks for any help</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload