Home » Eclipse Projects » e(fx)clipse » Exporting an OSGi Application Project
Exporting an OSGi Application Project [message #1105844] |
Tue, 10 September 2013 06:55  |
Eclipse User |
|
|
|
Hi,
just tried to export my very rudimentary application and was a bit surprised not to find a native launcher (in my case an .exe file) within the exported zip file.
I exported it from the product file editor (although the feature didn't work, but I don't care for the moment and used the plugin-based export).
The .ini files are there, so I guess I', missing something.
Any hints?
Thanks in advance,
Daniel
|
|
| | | | | | | |
Re: Exporting an OSGi Application Project [message #1114893 is a reply to message #1107521] |
Mon, 23 September 2013 07:16   |
Eclipse User |
|
|
|
Hi Tom,
Today I started to dig into the problem of the export again. I don't know, why it didn't occur to me earlier, but I checked the zip file with the logs today and was surprised by the errors I read there
ERROR in C:\Users\dzimmermann\git\standalone_container\my.platform.service\src\my\platform\interfaces\UITabComponent.java (at line 3)
import javafx.scene.control.Tab;
^^^^^^
The import javafx cannot be resolved
Other errors (in other bundles, but most likly a consequnece of this one are for example)
1. ERROR in C:\Users\dzimmermann\git\standalone_container\my.platform.app\src\my\platform\app\util\Utils.java (at line 0)
package my.platform.app.util;
^
The type javafx.stage.Stage cannot be resolved. It is indirectly referenced from required .class files
or
ERROR in C:\Users\dzimmermann\git\standalone_container\my.devhandler\src\my\devhandler\ui\DevicesController.java (at line 53)
public class DevicesController implements Initializable {
^^^^^^^^^^^^^
Initializable cannot be resolved to a type
And so on and so forth...
Tom: Do you know, what the problem could be? And to ask the question you might have: No, I'm still not using Maven for the export...
Regards,
Daniel
PS: Without knowing to much about Maven, I tried to update all the bundles pom files (added the parent-element that points to the releng-pom, added all bundles to the releng's modules list) and re-run it which caused the following error (which I'm absolutly uncertain about how to solve it):
[INFO] {osgi.ws=noenv, osgi.os=noenv, osgi.arch=noenv, org.eclipse.update.install.features=true}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: my.platform.app.product 1.0.0
[ERROR] Missing requirement: my.platform.app.product 1.0.0 requires 'org.eclipse.equinox.executable.feature.group 0.0.0' but it could not be found
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from my.platform.app.product 0.0.1 to org.eclipse.equinox.executable.feature.group 0.0.0.", "Unable to satisfy dependency from my.platform.app.product 1.0.0 to org.eclipse.equinox.executable.feature.group 0.0.0.", "No solution found because the problem is unsatisfiable."] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from my.platform.app.product 0.0.1 to org.eclipse.equinox.executable.feature.group 0.0.0.", "Unable to satisfy dependency from my.platform.app.product 1.0.0 to org.eclipse.equinox.executable.feature.group 0.0.0.", "No solution found because the problem is unsatisfiable."]
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from my.platform.app.product 0.0.1 to org.eclipse.equinox.executable.feature.group 0.0.0.", "Unable to satisfy dependency from my.platform.app.product 1.0.0 to org.eclipse.equinox.executable.feature.group 0.0.0.", "No solution found because the problem is unsatisfiable."]
at org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:98)
at org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
at org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:126)
at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:81)
at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:374)
at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:350)
at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
... 11 more
|
|
|
Re: Exporting an OSGi Application Project [message #1114936 is a reply to message #1114893] |
Mon, 23 September 2013 08:39   |
Eclipse User |
|
|
|
Hi,
So are you compiling against Java7? The problem there is naturally that
the jfxrt.jar IS NOT on the classpath hence compilation fails:
2 solutions:
* you temporarily copy the guy to your ext dir
* you install jfxrt.jar into your local maven repo and then your
reconfigure your tycho-compiler-plugin to hold an
<extraClasspathElements>
Something like this:
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-compiler-plugin</artifactId>
> <version>${tycho-version}</version>
> <configuration>
> <encoding>UTF-8</encoding>
> <!-- mvn install:install-file -Dfile=/Users/tomschindl/Applications/javafx-sdk2.2.0-beta/rt/lib/jfxrt.jar -DgroupId=javafx -DartifactId=javafx.mvn -Dversion=2.2.0-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -->
> <extraClasspathElements>
> <extraClasspathElement>
> <groupId>javafx</groupId>
> <artifactId>javafx.mvn</artifactId>
> <version>2.2.0-SNAPSHOT</version>
> </extraClasspathElement>
> </extraClasspathElements>
> </configuration>
> </plugin>
You see how to install jfxrt.jar into your .m2 repo on the comment but
your maven-aware friends could explain this to you as well - I'm a maven
dummy doing monkey see monkey do.
Tom
Tom
On 23.09.13 13:16, Daniel Zimmermann wrote:
> Hi Tom,
>
> Today I started to dig into the problem of the export again. I don't
> know, why it didn't occur to me earlier, but I checked the zip file with
> the logs today and was surprised by the errors I read there
>
>
> ERROR in
> C:\Users\dzimmermann\git\standalone_container\my.platform.service\src\my\platform\interfaces\UITabComponent.java
> (at line 3)
> import javafx.scene.control.Tab;
> ^^^^^^
> The import javafx cannot be resolved
>
>
> Other errors (in other bundles, but most likly a consequnece of this one
> are for example)
>
> 1. ERROR in
> C:\Users\dzimmermann\git\standalone_container\my.platform.app\src\my\platform\app\util\Utils.java
> (at line 0)
> package my.platform.app.util;
> ^
> The type javafx.stage.Stage cannot be resolved. It is indirectly
> referenced from required .class files
>
> or
>
> ERROR in
> C:\Users\dzimmermann\git\standalone_container\my.devhandler\src\my\devhandler\ui\DevicesController.java
> (at line 53)
> public class DevicesController implements Initializable {
> ^^^^^^^^^^^^^
> Initializable cannot be resolved to a type
>
>
> And so on and so forth...
>
> Tom: Do you know, what the problem could be? And to ask the question you
> might have: No, I'm still not using Maven for the export...
>
> Regards,
> Daniel
>
> PS: Without knowing to much about Maven, I tried to update all the
> bundles pom files (added the parent-element that points to the
> releng-pom, added all bundles to the releng's modules list) and re-run
> it which caused the following error (which I'm absolutly uncertain about
> how to solve it):
>
> [INFO] {osgi.ws=noenv, osgi.os=noenv, osgi.arch=noenv,
> org.eclipse.update.install.features=true}
> [ERROR] Cannot resolve project dependencies:
> [ERROR] Software being installed: my.platform.app.product 1.0.0
> [ERROR] Missing requirement: my.platform.app.product 1.0.0 requires
> 'org.eclipse.equinox.executable.feature.group 0.0.0' but it could not be
> found
> [ERROR] [ERROR] Internal error: java.lang.RuntimeException: "No solution
> found because the problem is unsatisfiable.": ["Unable to satisfy
> dependency from my.platform.app.product 0.0.1 to
> org.eclipse.equinox.executable.feature.group 0.0.0.", "Unable to satisfy
> dependency from my.platform.app.product 1.0.0 to
> org.eclipse.equinox.executable.feature.group 0.0.0.", "No solution found
> because the problem is unsatisfiable."] -> [Help 1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: "No solution found because the problem is
> unsatisfiable.": ["Unable to satisfy dependency from
> my.platform.app.product 0.0.1 to
> org.eclipse.equinox.executable.feature.group 0.0.0.", "Unable to satisfy
> dependency from my.platform.app.product 1.0.0 to
> org.eclipse.equinox.executable.feature.group 0.0.0.", "No solution found
> because the problem is unsatisfiable."]
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: java.lang.RuntimeException: "No solution found because the
> problem is unsatisfiable.": ["Unable to satisfy dependency from
> my.platform.app.product 0.0.1 to
> org.eclipse.equinox.executable.feature.group 0.0.0.", "Unable to satisfy
> dependency from my.platform.app.product 1.0.0 to
> org.eclipse.equinox.executable.feature.group 0.0.0.", "No solution found
> because the problem is unsatisfiable."]
> at
> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:98)
>
> at
> org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
>
> at
> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
>
> at
> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:126)
>
> at
> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:81)
>
> at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:374)
>
> at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:350)
>
> at
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
>
> at
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> ... 11 more
>
|
|
|
Re: Exporting an OSGi Application Project [message #1114937 is a reply to message #1114936] |
Mon, 23 September 2013 08:40   |
Eclipse User |
|
|
|
Oh just saw we already generate the extraClasspathElements stuff so all
you need is to execute the mvn install:intall-file.
Tom
On 23.09.13 14:39, Tom Schindl wrote:
> Hi,
>
> So are you compiling against Java7? The problem there is naturally that
> the jfxrt.jar IS NOT on the classpath hence compilation fails:
>
> 2 solutions:
> * you temporarily copy the guy to your ext dir
> * you install jfxrt.jar into your local maven repo and then your
> reconfigure your tycho-compiler-plugin to hold an
> <extraClasspathElements>
>
> Something like this:
>> <plugin>
>> <groupId>org.eclipse.tycho</groupId>
>> <artifactId>tycho-compiler-plugin</artifactId>
>> <version>${tycho-version}</version>
>> <configuration>
>> <encoding>UTF-8</encoding>
>> <!-- mvn install:install-file -Dfile=/Users/tomschindl/Applications/javafx-sdk2.2.0-beta/rt/lib/jfxrt.jar -DgroupId=javafx -DartifactId=javafx.mvn -Dversion=2.2.0-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -->
>> <extraClasspathElements>
>> <extraClasspathElement>
>> <groupId>javafx</groupId>
>> <artifactId>javafx.mvn</artifactId>
>> <version>2.2.0-SNAPSHOT</version>
>> </extraClasspathElement>
>> </extraClasspathElements>
>> </configuration>
>> </plugin>
>
> You see how to install jfxrt.jar into your .m2 repo on the comment but
> your maven-aware friends could explain this to you as well - I'm a maven
> dummy doing monkey see monkey do.
>
> Tom
>
>
> Tom
>
> On 23.09.13 13:16, Daniel Zimmermann wrote:
>> Hi Tom,
>>
>> Today I started to dig into the problem of the export again. I don't
>> know, why it didn't occur to me earlier, but I checked the zip file with
>> the logs today and was surprised by the errors I read there
>>
>>
>> ERROR in
>> C:\Users\dzimmermann\git\standalone_container\my.platform.service\src\my\platform\interfaces\UITabComponent.java
>> (at line 3)
>> import javafx.scene.control.Tab;
>> ^^^^^^
>> The import javafx cannot be resolved
>>
>>
>> Other errors (in other bundles, but most likly a consequnece of this one
>> are for example)
>>
>> 1. ERROR in
>> C:\Users\dzimmermann\git\standalone_container\my.platform.app\src\my\platform\app\util\Utils.java
>> (at line 0)
>> package my.platform.app.util;
>> ^
>> The type javafx.stage.Stage cannot be resolved. It is indirectly
>> referenced from required .class files
>>
>> or
>>
>> ERROR in
>> C:\Users\dzimmermann\git\standalone_container\my.devhandler\src\my\devhandler\ui\DevicesController.java
>> (at line 53)
>> public class DevicesController implements Initializable {
>> ^^^^^^^^^^^^^
>> Initializable cannot be resolved to a type
>>
>>
>> And so on and so forth...
>>
>> Tom: Do you know, what the problem could be? And to ask the question you
>> might have: No, I'm still not using Maven for the export...
>>
>> Regards,
>> Daniel
>>
>> PS: Without knowing to much about Maven, I tried to update all the
>> bundles pom files (added the parent-element that points to the
>> releng-pom, added all bundles to the releng's modules list) and re-run
>> it which caused the following error (which I'm absolutly uncertain about
>> how to solve it):
>>
>> [INFO] {osgi.ws=noenv, osgi.os=noenv, osgi.arch=noenv,
>> org.eclipse.update.install.features=true}
>> [ERROR] Cannot resolve project dependencies:
>> [ERROR] Software being installed: my.platform.app.product 1.0.0
>> [ERROR] Missing requirement: my.platform.app.product 1.0.0 requires
>> 'org.eclipse.equinox.executable.feature.group 0.0.0' but it could not be
>> found
>> [ERROR] [ERROR] Internal error: java.lang.RuntimeException: "No solution
>> found because the problem is unsatisfiable.": ["Unable to satisfy
>> dependency from my.platform.app.product 0.0.1 to
>> org.eclipse.equinox.executable.feature.group 0.0.0.", "Unable to satisfy
>> dependency from my.platform.app.product 1.0.0 to
>> org.eclipse.equinox.executable.feature.group 0.0.0.", "No solution found
>> because the problem is unsatisfiable."] -> [Help 1]
>> org.apache.maven.InternalErrorException: Internal error:
>> java.lang.RuntimeException: "No solution found because the problem is
>> unsatisfiable.": ["Unable to satisfy dependency from
>> my.platform.app.product 0.0.1 to
>> org.eclipse.equinox.executable.feature.group 0.0.0.", "Unable to satisfy
>> dependency from my.platform.app.product 1.0.0 to
>> org.eclipse.equinox.executable.feature.group 0.0.0.", "No solution found
>> because the problem is unsatisfiable."]
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: java.lang.RuntimeException: "No solution found because the
>> problem is unsatisfiable.": ["Unable to satisfy dependency from
>> my.platform.app.product 0.0.1 to
>> org.eclipse.equinox.executable.feature.group 0.0.0.", "Unable to satisfy
>> dependency from my.platform.app.product 1.0.0 to
>> org.eclipse.equinox.executable.feature.group 0.0.0.", "No solution found
>> because the problem is unsatisfiable."]
>> at
>> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:98)
>>
>> at
>> org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
>>
>> at
>> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
>>
>> at
>> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:126)
>>
>> at
>> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:81)
>>
>> at
>> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:374)
>>
>> at
>> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:350)
>>
>> at
>> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
>>
>> at
>> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
>>
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>> ... 11 more
>>
>
|
|
| | | | | | | | | | | | |
Re: Exporting an OSGi Application Project [message #1115602 is a reply to message #1115598] |
Tue, 24 September 2013 06:10  |
Eclipse User |
|
|
|
Tycho is a lot more picky than the eclipse product export!
Tom
On 24.09.13 12:05, Tom Schindl wrote:
> so this means that we need to get this going, what looks supisicous is
> that it tells:
>
> ch.cnlab.swag.platform.app.product 1.0.0
> ch.cnlab.swag.platform.app.product 0.0.1
>
> So maybe your versioning does NOT match.
>
> Tom
>
> On 24.09.13 10:34, Daniel Zimmermann wrote:
>> I tried both. Both using jdk7.
>>
>> 1) Maven - w/ or w/o the system dependecy I always get the error I
>> described above
>>
>>
>> [ERROR] Cannot resolve project dependencies:
>> [ERROR] Software being installed: ch.cnlab.swag.platform.app.product
>> 1.0.0
>> [ERROR] Missing requirement: ch.cnlab.swag.platform.app.product 1.0.0
>> requires 'org.eclipse.equinox.executable.feature.group 0.0.0' but it
>> could not be found
>> [ERROR] [ERROR] Internal error: java.lang.RuntimeException: "No solution
>> found because the problem is unsatisfiable.": ["Unable to satisfy
>> dependency from ch.cnlab.swag.platform.app.product 0.0.1 to
>> org.eclipse.equinox.executable.feature.group 0.0.0.", "Unable to satisfy
>> dependency from ch.cnlab.swag.platform.app.product 1.0.0 to
>> org.eclipse.equinox.executable.feature.group 0.0.0.", "No solution found
>> because the problem is unsatisfiable."] -> [Help 1]
>>
>>
>> 2) Product build - no class files (doesn't matter if I add the jfxrt.jar
>> to the ext dir or not)
>
|
|
|
Goto Forum:
Current Time: Wed May 07 08:31:35 EDT 2025
Powered by FUDForum. Page generated in 0.09255 seconds
|