Hi Stuart,
Thanks for the clarification, that helps. I still have a problem
however in that I'd like to use peaberry in an application that also
unfortunately requires the bad Orbit bundle of Guice. The Orbit
dependency is coming from Xtext, which I need. Peaberry will not work
with the Orbit bundle so I stuck the official Guice bundle in my
target platform as well. So now I have in my target platform the
peaberry bundle, the official Guice bundle AND the Orbit Guice
bundle.
My problem is that I cannot seem to find a way to get peaberry to work
when both Guice bundles are present. Is there a way to get both to
work in the same container? Or will I have to choose between using
Xtext or using peaberry?
Details of my test application are below. It is a simple RCP sample
application where I'm trying to use peaberry to inject a dependency in
the perspective using the peaberry eclipse functionality:
plugin.xml:
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="RCP Perspective"
class="org.ops4j.peaberry.eclipse.GuiceExtensionFactory:foo.Perspective"
id="foo.perspective">
</perspective>
</extension>
<extension point="org.ops4j.peaberry.eclipse.modules">
<module class="foo.Module"/>
</extension>
Perspective.java:
public class Perspective implements IPerspectiveFactory {
@Inject
private Dependency dependency;
public void createInitialLayout(IPageLayout layout) {
System.out.println("dependency: " + dependency.go());
}
}
Module.java:
public class Module extends AbstractModule {
@Override
protected void configure() {
bind(Dependency.class).to(DependencyImpl.class);
}
}
I've tried a bunch of different permutations of bringing in
dependencies in the MANIFEST.MF (require bundle, package imports,
specifying explicit version ranges) but whenever I run the application
I keep getting errors.
Here's one version of the manifest using package imports and the error
I get when running the app:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Foo
Bundle-SymbolicName: foo; singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: foo.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: com.google.inject;version="[1.2.0,2.0.0)",
com.google.inject.binder;version="[1.2.0,2.0.0)",
com.google.inject.matcher;version="[1.2.0,2.0.0)",
com.google.inject.name;version="[1.2.0,2.0.0)",
org.ops4j.peaberry.eclipse;version="1.0.0"
Console output:
!SESSION 2010-06-15 10:19:49.924
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -application foo.application
Command-line arguments: -application foo.application -data C:\Code
\workspaces\codex-git/../runtime-foo.application -dev file:C:/Code/
workspaces/codex-git/.metadata/.plugins/org.eclipse.pde.core/
foo.application/dev.properties -os win32 -ws win32 -arch x86 -
consoleLog
!ENTRY org.eclipse.osgi 2 0 2010-06-15 10:19:50.893
!MESSAGE One or more bundles are not resolved because the following
root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:19:50.893
!MESSAGE Bundle initial@reference:file:peaberry.eclipse-1.1.1.jar/ was
not resolved.
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:19:50.893
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:19:50.893
!MESSAGE Bundle initial@reference:file:peaberry-1.1.1.jar/ was not
resolved.
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.893
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.893
!MESSAGE Missing imported package
com.google.inject.util_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.893
!MESSAGE Missing imported package
com.google.inject.name_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.893
!MESSAGE Missing imported package
com.google.inject.matcher_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.893
!MESSAGE Missing imported package
com.google.inject.binder_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:19:50.893
!MESSAGE Bundle initial@reference:file:../../../foo/ was not resolved.
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:50.893
!MESSAGE Missing imported package com.google.inject_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:50.893
!MESSAGE Missing imported package
com.google.inject.binder_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:50.893
!MESSAGE Missing imported package
com.google.inject.matcher_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:50.893
!MESSAGE Missing imported package
com.google.inject.name_[1.2.0,2.0.0).
!ENTRY org.eclipse.osgi 2 0 2010-06-15 10:19:50.908
!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 2010-06-15 10:19:50.908
!MESSAGE Bundle org.ops4j.peaberry_1.1.1.v698 [34] was not resolved.
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package
com.google.inject.binder_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package
com.google.inject.matcher_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package
com.google.inject.name_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package
com.google.inject.util_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package org.ops4j.peaberry_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package
org.ops4j.peaberry.builders_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package
org.ops4j.peaberry.util_[1.1.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:19:50.908
!MESSAGE Bundle org.ops4j.peaberry.eclipse_1.1.1.v698 [35] was not
resolved.
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package org.ops4j.peaberry_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package
org.ops4j.peaberry.eclipse_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:19:50.908
!MESSAGE Bundle foo_1.0.0.qualifier [57] was not resolved.
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package com.google.inject_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package
com.google.inject.binder_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package
com.google.inject.matcher_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package
com.google.inject.name_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:50.908
!MESSAGE Missing imported package org.ops4j.peaberry.eclipse_1.0.0.
!ENTRY org.eclipse.osgi 2 0 2010-06-15 10:19:50.924
!MESSAGE One or more bundles are not resolved because the following
root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:19:50.924
!MESSAGE Bundle initial@reference:file:peaberry.eclipse-1.1.1.jar/ was
not resolved.
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:19:50.924
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:19:51.002
!MESSAGE Bundle initial@reference:file:peaberry-1.1.1.jar/ was not
resolved.
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package
com.google.inject.util_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package
com.google.inject.name_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package
com.google.inject.matcher_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package
com.google.inject.binder_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:19:51.002
!MESSAGE Bundle initial@reference:file:../../../foo/ was not resolved.
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package com.google.inject_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package
com.google.inject.binder_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package
com.google.inject.matcher_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package
com.google.inject.name_[1.2.0,2.0.0).
!ENTRY org.eclipse.osgi 2 0 2010-06-15 10:19:51.002
!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 2010-06-15 10:19:51.002
!MESSAGE Bundle org.ops4j.peaberry_1.1.1.v698 [34] was not resolved.
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package
com.google.inject.binder_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package
com.google.inject.matcher_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package
com.google.inject.name_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.002
!MESSAGE Missing imported package
com.google.inject.util_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.018
!MESSAGE Missing imported package org.ops4j.peaberry_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.018
!MESSAGE Missing imported package
org.ops4j.peaberry.builders_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:19:51.018
!MESSAGE Missing imported package
org.ops4j.peaberry.util_[1.1.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:19:51.018
!MESSAGE Bundle org.ops4j.peaberry.eclipse_1.1.1.v698 [35] was not
resolved.
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:19:51.018
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:19:51.018
!MESSAGE Missing imported package org.ops4j.peaberry_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:19:51.018
!MESSAGE Missing imported package
org.ops4j.peaberry.eclipse_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:19:51.018
!MESSAGE Bundle foo_1.0.0.qualifier [57] was not resolved.
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:51.018
!MESSAGE Missing imported package com.google.inject_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:51.018
!MESSAGE Missing imported package
com.google.inject.binder_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:51.018
!MESSAGE Missing imported package
com.google.inject.matcher_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:51.018
!MESSAGE Missing imported package
com.google.inject.name_[1.2.0,2.0.0).
!SUBENTRY 2 foo 2 0 2010-06-15 10:19:51.018
!MESSAGE Missing imported package org.ops4j.peaberry.eclipse_1.0.0.
!ENTRY org.eclipse.osgi 4 0 2010-06-15 10:19:51.033
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "foo.application" could not be
found in the registry. The applications available are:
org.eclipse.equinox.app.error.
at
org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:
248)
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:
369)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
And here's a version of the manifest that uses Require-Bundle and the
error it produces:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Foo
Bundle-SymbolicName: foo; singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: foo.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.ops4j.peaberry;bundle-version="1.1.1",
org.ops4j.peaberry.eclipse;bundle-version="1.1.1",
com.google.inject;bundle-version="[2.0.0,2.0.0]"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Console output:
!SESSION 2010-06-15 10:27:32.577
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -application foo.application
Command-line arguments: -application foo.application -data C:\Code
\workspaces\codex-git/../runtime-foo.application -dev file:C:/Code/
workspaces/codex-git/.metadata/.plugins/org.eclipse.pde.core/
foo.application/dev.properties -os win32 -ws win32 -arch x86 -
consoleLog
!ENTRY org.eclipse.osgi 2 0 2010-06-15 10:27:33.545
!MESSAGE One or more bundles are not resolved because the following
root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:27:33.545
!MESSAGE Bundle initial@reference:file:peaberry.eclipse-1.1.1.jar/ was
not resolved.
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:27:33.545
!MESSAGE Bundle initial@reference:file:../../../foo/ was not resolved.
!SUBENTRY 2 foo 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing required bundle com.google.inject_[2.0.0,2.0.0].
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:27:33.545
!MESSAGE Bundle initial@reference:file:peaberry-1.1.1.jar/ was not
resolved.
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package
com.google.inject.binder_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package
com.google.inject.matcher_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package
com.google.inject.name_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package
com.google.inject.util_[1.0.0,2.0.0).
!ENTRY org.eclipse.osgi 2 0 2010-06-15 10:27:33.545
!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 2010-06-15 10:27:33.545
!MESSAGE Bundle org.ops4j.peaberry_1.1.1.v698 [34] was not resolved.
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package
com.google.inject.binder_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package
com.google.inject.matcher_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package
com.google.inject.name_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package
com.google.inject.util_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package org.ops4j.peaberry_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package
org.ops4j.peaberry.builders_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package
org.ops4j.peaberry.util_[1.1.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:27:33.545
!MESSAGE Bundle org.ops4j.peaberry.eclipse_1.1.1.v698 [35] was not
resolved.
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package org.ops4j.peaberry_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing imported package
org.ops4j.peaberry.eclipse_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:27:33.545
!MESSAGE Bundle foo_1.0.0.qualifier [60] was not resolved.
!SUBENTRY 2 foo 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing required bundle org.ops4j.peaberry_1.1.1.
!SUBENTRY 2 foo 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing required bundle org.ops4j.peaberry.eclipse_1.1.1.
!SUBENTRY 2 foo 2 0 2010-06-15 10:27:33.545
!MESSAGE Missing required bundle com.google.inject_[2.0.0,2.0.0].
!ENTRY org.eclipse.osgi 2 0 2010-06-15 10:27:33.561
!MESSAGE One or more bundles are not resolved because the following
root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:27:33.561
!MESSAGE Bundle initial@reference:file:peaberry.eclipse-1.1.1.jar/ was
not resolved.
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:27:33.561
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:27:33.561
!MESSAGE Bundle initial@reference:file:../../../foo/ was not resolved.
!SUBENTRY 2 foo 2 0 2010-06-15 10:27:33.561
!MESSAGE Missing required bundle com.google.inject_[2.0.0,2.0.0].
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:27:33.561
!MESSAGE Bundle initial@reference:file:peaberry-1.1.1.jar/ was not
resolved.
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.561
!MESSAGE Missing imported package
com.google.inject.binder_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.561
!MESSAGE Missing imported package
com.google.inject.matcher_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.561
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.561
!MESSAGE Missing imported package
com.google.inject.name_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.561
!MESSAGE Missing imported package
com.google.inject.util_[1.0.0,2.0.0).
!ENTRY org.eclipse.osgi 2 0 2010-06-15 10:27:33.577
!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 2010-06-15 10:27:33.577
!MESSAGE Bundle org.ops4j.peaberry_1.1.1.v698 [34] was not resolved.
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing imported package
com.google.inject.binder_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing imported package
com.google.inject.matcher_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing imported package
com.google.inject.name_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing imported package
com.google.inject.util_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing imported package org.ops4j.peaberry_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing imported package
org.ops4j.peaberry.builders_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing imported package
org.ops4j.peaberry.util_[1.1.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:27:33.577
!MESSAGE Bundle org.ops4j.peaberry.eclipse_1.1.1.v698 [35] was not
resolved.
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing imported package com.google.inject_[1.0.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing imported package org.ops4j.peaberry_[1.1.0,2.0.0).
!SUBENTRY 2 org.ops4j.peaberry.eclipse 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing imported package
org.ops4j.peaberry.eclipse_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-15 10:27:33.577
!MESSAGE Bundle foo_1.0.0.qualifier [60] was not resolved.
!SUBENTRY 2 foo 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing required bundle org.ops4j.peaberry_1.1.1.
!SUBENTRY 2 foo 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing required bundle org.ops4j.peaberry.eclipse_1.1.1.
!SUBENTRY 2 foo 2 0 2010-06-15 10:27:33.577
!MESSAGE Missing required bundle com.google.inject_[2.0.0,2.0.0].
!ENTRY org.eclipse.osgi 4 0 2010-06-15 10:27:33.577
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "foo.application" could not be
found in the registry. The applications available are:
org.eclipse.equinox.app.error.
at
org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:
248)
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:
369)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)