Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Issues building Kura from source in Eclipse
Issues building Kura from source in Eclipse [message #1567776] Fri, 16 January 2015 15:16 Go to next message
regis piccand is currently offline regis piccandFriend
Messages: 4
Registered: January 2015
Junior Member
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 #1568504 is a reply to message #1567776] Sat, 17 January 2015 00:48 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello Regis,

Your last statement is concerning:

"I had to restructure some of the packages under org.eclipse.soda.dk as the comm package was missing."

There shouldn't be any missing packages. After cloning the repository, did you perform a full Maven build? If so, where were you seeing this error?

mvn -f target-platform/pom.xml clean install
mvn -f kura/manifest_pom.xml clean install -Dmaven.test.skip=true
mvn -f kura/pom_pom.xml clean install -Dmaven.test.skip=true -Pweb

When importing into Eclipse, you only imported the projects from kura/kura, correct? You cannot import kura/target-platform as this would confuse the dependency resolver.

Thanks,
--Dave
Re: Issues building Kura from source in Eclipse [message #1680368 is a reply to message #1567776] Tue, 17 March 2015 00:26 Go to previous messageGo to next message
Jeff Battin is currently offline Jeff BattinFriend
Messages: 2
Registered: March 2015
Junior Member
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.

index.php/fa/21206/0/

Thanks!
-Jeff

Re: Issues building Kura from source in Eclipse [message #1685554 is a reply to message #1680368] Wed, 18 March 2015 22:25 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hi Jeff,

Were you able to run the Maven commands successfully? I am assuming so or you would have many more errors in your workspace. The PDE development environment can be a little finicky. On the projects where you are seeing errors, try right clicking on the project name and selecting: Maven -> Update Project... . On the resulting screen select OK. If this doesn't resolve the errors let me know.

Thanks,
--Dave
Re: Issues building Kura from source in Eclipse [message #1685632 is a reply to message #1685554] Wed, 18 March 2015 23:11 Go to previous messageGo to next message
Jeff Battin is currently offline Jeff BattinFriend
Messages: 2
Registered: March 2015
Junior Member
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 13:48 Go to previous message
Jishnu NairFriend
Messages: 7
Registered: March 2015
Junior Member
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
Previous Topic:Scandium and Kura
Next Topic:KURA on Device with few RAM
Goto Forum:
  


Current Time: Wed Sep 25 03:20:07 GMT 2024

Powered by FUDForum. Page generated in 0.03837 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top