|
Re: Stupid question regarding multiple plugins within a single RAP application [message #1074574 is a reply to message #1074379] |
Sat, 27 July 2013 05:39 |
Rick Flower Messages: 4 Registered: July 2013 |
Junior Member |
|
|
ok.. here's the log.. All I did was add 1 dependency to the standard RAP-Hello World example and I get this :
2013-07-26 21:55:32.119:INFO:oejs.Server:jetty-8.1.10.v20130312
2013-07-26 21:55:32.152:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:61910
!SESSION 2013-07-26 21:55:31.420 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_51
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Command-line arguments: -dev file:/Users/nrf/Documents/workspace/.metadata/.plugins/org.eclipse.pde.core/com.bank.tracker.ui/dev.properties -os macosx -ws cocoa -arch x86_64 -console -consolelog -data /Users/nrf/Documents/workspace/.metadata/.plugins/org.eclipse.rap.tools.launch/com.bank.tracker.ui
!ENTRY com.bank.tracker.ui 4 0 2013-07-26 21:55:32.197
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "com.bank.tracker.ui_1.0.0.qualifier [21]" could not be resolved. Reason: Missing Constraint: Require-Bundle: com.bank.tracker.core; bundle-version="1.0.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
!ENTRY org.eclipse.osgi 4 0 2013-07-26 21:55:32.199
!MESSAGE Bundle initial@reference:file:../../../../com.bank.tracker.ui/ was not resolved.
!ENTRY org.eclipse.osgi 2 0 2013-07-26 21:55:32.216
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-07-26 21:55:32.216
!MESSAGE Bundle initial@reference:file:../../../../com.bank.tracker.ui/ was not resolved.
!SUBENTRY 2 com.bank.tracker.ui 2 0 2013-07-26 21:55:32.216
!MESSAGE Missing required bundle com.bank.tracker.core_1.0.0.
!ENTRY org.eclipse.osgi 2 0 2013-07-26 21:55:32.218
!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 2013-07-26 21:55:32.218
!MESSAGE Bundle com.bank.tracker.ui_1.0.0.qualifier [21] was not resolved.
!SUBENTRY 2 com.bank.tracker.ui 2 0 2013-07-26 21:55:32.218
!MESSAGE Missing required bundle com.bank.tracker.core_1.0.0.
osgi>
Here's the manifest from the UI plugin (com.bank.tracker.ui):
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Ui
Bundle-SymbolicName: com.bank.tracker.ui
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: com.bank.tracker.ui.Activator
Bundle-Vendor: BIGBANK
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.rap.rwt;bundle-version="[2.0.0,3.0.0)",
com.bank.tracker.core;bundle-version="1.0.0"
Import-Package: org.osgi.framework
Service-Component: OSGI-INF/contribution.xml
Here's the manifest from the com.bank.tracker.core plugin that is causing the problem :
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Core
Bundle-SymbolicName: com.bank.tracker.core
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: com.bank.tracker.core.Activator
Bundle-Vendor: BIGBANK
Require-Bundle: org.eclipse.core.runtime,
org.apache.commons.io;bundle-version="2.4.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Export-Package: com.bank.tracker.core.model
Here's the output from the OSGi console :
osgi> ss
"Framework is launched."
id State Bundle
0 ACTIVE org.eclipse.osgi_3.9.0.v20130529-1710
1 ACTIVE org.eclipse.jetty.io_8.1.10.v20130312
2 ACTIVE org.eclipse.jetty.server_8.1.10.v20130312
3 ACTIVE org.apache.felix.gogo.command_0.10.0.v201209301215
4 ACTIVE org.eclipse.jetty.continuation_8.1.10.v20130312
5 ACTIVE javax.servlet_3.0.0.v201112011016
6 ACTIVE org.eclipse.jetty.http_8.1.10.v20130312
7 ACTIVE org.apache.felix.gogo.shell_0.10.0.v201212101605
8 ACTIVE org.eclipse.jetty.util_8.1.10.v20130312
9 ACTIVE org.eclipse.rap.rwt.osgi_2.1.0.20130506-1748
10 ACTIVE org.eclipse.rap.rwt_2.1.0.20130611-2139
11 ACTIVE org.eclipse.equinox.http.jetty_3.0.100.v20130327-1442
12 ACTIVE org.eclipse.jetty.servlet_8.1.10.v20130312
14 ACTIVE org.eclipse.osgi.services_3.3.100.v20130513-1956
15 ACTIVE org.eclipse.equinox.util_1.0.500.v20130404-1337
16 ACTIVE org.apache.felix.gogo.runtime_0.10.0.v201209301036
17 ACTIVE org.eclipse.equinox.ds_1.4.100.v20130515-2026
18 ACTIVE org.eclipse.equinox.console_1.0.100.v20130429-0953
19 ACTIVE org.eclipse.jetty.security_8.1.10.v20130312
20 ACTIVE org.eclipse.equinox.http.servlet_1.1.400.v20130418-1354
21 INSTALLED com.bank.tracker.ui_1.0.0.qualifier
osgi> diag 21
initial@reference:file:../../../../com.bank.tracker.ui/ [21]
Direct constraints which are unresolved:
Missing required bundle com.bank.tracker.core_1.0.0.
osgi> bundle 21
com.bank.tracker.ui_1.0.0.qualifier [21]
Id=21, Status=INSTALLED Data Root=/Users/nrf/Documents/workspace/.metadata/.plugins/org.eclipse.pde.core/com.bank.tracker.ui/org.eclipse.osgi/bundles/21/data
"No registered services."
No services in use.
No exported packages
No imported packages
No fragment bundles
No named class spaces
No required bundles
osgi>
Any ideas on what I messed up? I gather I could probably put the missing bundle in the target config but that doesn't seem right.. Do I need to setup a product configuration project and put all of the overall dependencies in there for use with Maven Tycho? Sorry for the newbie questions.. I'm just not sure the best approach here..
[Updated on: Sat, 27 July 2013 05:43] Report message to a moderator
|
|
|
|
|
Re: Stupid question regarding multiple plugins within a single RAP application [message #1075122 is a reply to message #1075113] |
Sun, 28 July 2013 20:31 |
|
Rick,
Specifying the dependency in the bundle's maninfest only declares that your bundle needs another bundle to start. That is why your bundle is failing to start, because the dependency is missing. You also have to specify which bundles are installed in the running osgi environment. If you are starting from Eclipse, that is done via the Run->"Run Configurations" dialog. Make sure the bundles you require are checked on the "Bundles" tab of the configuration you use to launch your RAP Application. I am not familiar with the exact configuration for Maven/Tycho, but you will need to ensure all required bundles are included there as well. This includes not only the bundles you develop, but also 3rd party dependencies such as the org.apache.commons.io dependency required by your core bundle.
Hope that helps,
Cole Markham
|
|
|
|
Powered by
FUDForum. Page generated in 0.02815 seconds