Issues building Kura from source in Eclipse [message #1567776] |
Fri, 16 January 2015 10:16  |
Eclipse User |
|
|
|
Hey guys,
I'm trying to build Kura from the source, following instructions here
wiki.eclipse.org/Kura/Getting_Started
I am seeing two problems
first, when I run the emulator, I am getting that kind of message, with classNotFound exception
!ENTRY org.eclipse.kura.deployment.customizer 4 0 2015-01-16 10:00:30.583
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The activator org.eclipse.kura.deployment.rp.sh.impl.Activator for bundle org.eclipse.kura.deployment.customizer is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:172)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
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)
Caused by: java.lang.ClassNotFoundException: org.eclipse.kura.deployment.rp.sh.impl.Activator
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:165)
... 12 more
Root exception:
java.lang.ClassNotFoundException: org.eclipse.kura.deployment.rp.sh.impl.Activator
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:165)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
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)
Something strange as well ... when I make changes to the Java code, it seems that the code does not get recompiled, even after Maven | udpate project.
I noticed that some of the projects have only the M(aven) icon, whereas others are both M(aven) and J(ava)...
Did somebody ran into those issues as well?
Thanks
Regis
PS
another detail - I had to restructure some of the packages under org.eclipse.soda.dk as the comm package was missing.
|
|
|
|
Re: Issues building Kura from source in Eclipse [message #1680368 is a reply to message #1567776] |
Mon, 16 March 2015 20:26   |
Eclipse User |
|
|
|
I am also having problems building in eclipse. Followed all steps in getting started and built the source with-out errors. But It will not build in eclipse.
I have attached a screenshot and a text file with the details. Any suggestions?
Build Environment:
Eclipse Version:Kepler Service Release 2
Ubuntu
LM17-VM ~ $ java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
LM17-VM ~ $ mvn --version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 06:51:28-0700)
Maven home: /usr/local/apache-maven-3.0.5
Java version: 1.7.0_75, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-37-generic", arch: "amd64", family: "unix"
Summary:
- gpio build, publisher, project, qa, hello world, and web builds fail.
- Java build path problem for web.
- Maven non-resolvable parent POM.

Thanks!
-Jeff
|
|
|
|
Re: Issues building Kura from source in Eclipse [message #1685632 is a reply to message #1685554] |
Wed, 18 March 2015 19:11   |
Eclipse User |
|
|
|
Thanks for the response Dave.
I tried that, and have done reinstalls. The only build message that looks suspicious after "mvn clean install" is:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.kura:javax.usb.api:bundle:1.0.2
[WARNING] 'dependencies.dependency.systemPath' for javax.usb:javax.usb.api:jar should not point at files within the project directory, ${basedir}/src/lib/javax.usb.api-1.0.2.jar will be unresolvable by dependent projects @ line 31, column 25
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.kura:javax.usb.common:bundle:1.0.2
[WARNING] 'dependencies.dependency.systemPath' for javax.usb:javax.usb.common:jar should not point at files within the project directory, ${basedir}/src/lib/javax.usb.common-1.0.2.jar will be unresolvable by dependent projects @ line 32, column 25
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.kura:p2-repo-common:pom:1.0.0
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ line 171, column 12
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.kura:p2-repo-equinox_3.8.1:pom:1.0.0
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ line 95, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
Are these warnings normal?
Best Regards,
- Jeff
|
|
|
Re: Issues building Kura from source in Eclipse [message #1690155 is a reply to message #1685632] |
Wed, 25 March 2015 09:48  |
Eclipse User |
|
|
|
Hallo Jeff,
The "Non-Resolvable" parent pom error is due to the wrong version number in the pom.xml file.
Change the version tag in org.eclipse.kura.qa/pom.xm and org.eclipse.kura.test.helloworld/pom.xml
<parent>
<groupId>org.eclipse.kura</groupId>
<artifactId>kura</artifactId>
<version>1.2.0-SNAPSHOT</version>
<relativePath>../manifest_pom.xml</relativePath>
</parent>
Regards,
Jishnu
|
|
|
Powered by
FUDForum. Page generated in 0.05580 seconds