Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problem resolving dependencies with tycho-built RCP application

Sorry, that comment was wrong — the manifest file was not missing, and it is included for reference below along with the one from a PDE build.

I'm wondering if it has something to do with the fact that it's 2 plugins downstream that reexport the plugin that has the missing class, and they all use Require-Bundle instead of Import-Package.

For example:
Plugin A has the class I want
Plugin B includes and reexports plugin A
Plugin C is trying to find the class from plugin A, and it includes plugin B and cannot find the class in plugin A.

Could that setup be the cause of the issues?

Thanks
Tamar

From: Wim Jongman <wim.jongman@xxxxxxxxx>
Reply-To: Tycho user list <tycho-user@xxxxxxxxxxx>
Date: Tue, 5 Feb 2013 07:14:19 -0600
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: Re: [tycho-user] Problem resolving dependencies with tycho-built RCP application

The fact that the manifest.mf is missing from the META-INF directory is wrong. You should focus on that. check the build.properties.

Best regards,

Wim


On Tue, Feb 5, 2013 at 1:08 AM, Cohen, Tamar (ARC-TI)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] <tamar.e.cohen@xxxxxxxx> wrote:
Sorry strike the previous comment.

My MANIFEST.MF file for the plugin that is providing the missing class files looks like this:

Manifest-Version: 1.0
Export-Package: gov.nasa.rapid.v2,gov.nasa.rapid.v2.agent,gov.nasa.rap
 id.v2.exception,gov.nasa.rapid.v2.message,gov.nasa.rapid.v2.message.c
 ollector,gov.nasa.rapid.v2.message.command,gov.nasa.rapid.v2.message.
 helpers,gov.nasa.rapid.v2.message.holders,gov.nasa.rapid.v2.message.p
 ublisher,gov.nasa.rapid.v2.preferences,gov.nasa.rapid.v2.system,gov.n
 asa.rapid.v2.system.builtin,gov.nasa.rapid.v2.util
Bundle-ActivationPolicy: lazy
Built-By: tecohen
Bundle-Name: RAPID Java Bindings v2
Created-By: Apache Maven
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.eclipse.core.runtime,gov.nasa.dds.rti;visibility:=
 reexport,gov.nasa.rapid.idl.dds;visibility:=reexport,gov.nasa.util;vi
 sibility:=reexport
Build-Jdk: 1.6.0_33
Bundle-Version: 1.0.0.201302042334
Bundle-ManifestVersion: 2
Bundle-Activator: gov.nasa.rapid.v2.RapidV2Activator
Bundle-SymbolicName: gov.nasa.rapid.v2
Archiver-Version: Plexus Archiver

The PDE generated similar MANIFEST.MF file looks like this:
Manifest-Version: 1.0
Export-Package: gov.nasa.rapid.v2,gov.nasa.rapid.v2.agent,gov.nasa.rap
 id.v2.exception,gov.nasa.rapid.v2.message,gov.nasa.rapid.v2.message.c
 ollector,gov.nasa.rapid.v2.message.command,gov.nasa.rapid.v2.message.
 helpers,gov.nasa.rapid.v2.message.holders,gov.nasa.rapid.v2.message.p
 ublisher,gov.nasa.rapid.v2.preferences,gov.nasa.rapid.v2.system,gov.n
 asa.rapid.v2.system.builtin,gov.nasa.rapid.v2.util
Require-Bundle: org.eclipse.core.runtime,gov.nasa.dds.rti;visibility:=
 reexport,gov.nasa.rapid.idl.dds;visibility:=reexport,gov.nasa.util;vi
 sibility:=reexport
Bundle-ActivationPolicy: lazy
Bundle-Version: 1.0.0.201302041435
Bundle-Name: RAPID Java Bindings v2
Bundle-Activator: gov.nasa.rapid.v2.RapidV2Activator
Bundle-ManifestVersion: 2
Bundle-SymbolicName: gov.nasa.rapid.v2
Bundle-RequiredExecutionEnvironment: JavaSE-1.6

There may also be differences in the generated config.ini file.
Any more tips?
Thanks!
Tamar


From: Tamar Cohen <tamar.e.cohen@xxxxxxxx>

Reply-To: Tycho user list <tycho-user@xxxxxxxxxxx>
Date: Mon, 4 Feb 2013 17:32:07 -0600

To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: Re: [tycho-user] Problem resolving dependencies with tycho-built RCP application

Hi Wim
Thanks for the suggestion.  I have done so with the plugin that cannot seem to provide the required Java class, and indeed it contains the expected class files in the correct directory.
Interestingly enough I note there is a MANIFEST.MF file at the root, but in META-INF there is a maven directory and a maven.mf file.
Tamar

From: Wim Jongman <wim.jongman@xxxxxxxxx>
Reply-To: Tycho user list <tycho-user@xxxxxxxxxxx>
Date: Mon, 4 Feb 2013 17:28:16 -0600
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: Re: [tycho-user] Problem resolving dependencies with tycho-built RCP application

HI Tamar,

Check every exported jar. If the size is low (e.g. 1K) then open it to see if it has the expected content. If not then check your build.properties to see if you have exported everything. 

Regards,

Wim


On Tue, Feb 5, 2013 at 12:19 AM, Cohen, Tamar (ARC-TI)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] <tamar.e.cohen@xxxxxxxx> wrote:


Hi all

I'm new to Tycho and Maven and trying to set up a build for our RCP application, for various platforms.
It APPEARS to have worked; I have followed Lars Vogella's tutorials and I have as a result some lovely jar files and platform specific RCP applications.

HOWEVER.
When I try to run these, some of the dependencies that are reexported from plugin to plugin are not found by the downstream plugins.  When I run with the osgi console, it does show the plugin that has the classes that are not found as being active.

When I do a comparison export via PDE, everything runs perfectly.

My MANIFEST.MF files are still using Require-Bundle and Export-Package; within the Require-Bundle are some visibility=reexport.
For example the line in the MANIFEST might look like:
my.plugin.basename;visibility=reexport

This line IS included in the output MANIFEST.MF file.

My master pom.xml file uses tycho-maven-plugin and target-platform-configuration.

Any insight would be HUGELY appreciated.
Thanks much

Tamar Cohen

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top