Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » [Solved]Gemini - Maven-tycho build works on some machines, but not others.
[Solved]Gemini - Maven-tycho build works on some machines, but not others. [message #968452] Fri, 02 November 2012 13:24 Go to next message
Scott Hull is currently offline Scott HullFriend
Messages: 32
Registered: July 2012
Member
Introduction:
We deploy our Gemini system with a declarative service (within a PDE) that returns a EMF to another plugin for testing. The PU are in their own directory (a third bundle) and there is only one persistence.xml file.


I have figured out how to get Gemini working with our current testing infrastructure with a Run Configuration file and it builds (maven) perfectly fine on our remote workstation (16 core RAIL running Fedora). I also have it working on a duo core (centrino Fedora 16)) laptop and a MAC workstation.

Nevertheless, the build fails with a quad core (core 2 quad windows 7) box and a 8 core rail (Fedora) with an "Object is unknown entity type" exception. Keep in mind that the EMF and EM do have meta data for the entity types.

I have ran the Finest level of debug, and I am not seeing any real difference between the ones that pass the build and the ones that fail the build. I have weaving set to false and the refresh set to false. I was wondering if anyone has ran into this type of issue before and has some suggestions on how to fix it.

Keep in mind that our JUNIT run configuration file works perfectly on every machine. This may have something to do with incorrect run configuration in our maven build system. But I am open to any other suggestion.

I will post the current pom configuration momentarily for review.

Thoughts?

[Updated on: Mon, 05 November 2012 20:12]

Report message to a moderator

Re: Gemini - Maven-tycho build works on some machines, but not others. [message #968463 is a reply to message #968452] Fri, 02 November 2012 13:34 Go to previous messageGo to next message
Scott Hull is currently offline Scott HullFriend
Messages: 32
Registered: July 2012
Member
The pom file.

<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>NiCE</groupId>
<artifactId>gov.ornl.nice.build</artifactId>
<version>2.0.0</version>
<relativePath>${pom-filename}</relativePath>
</parent>
<groupId>NiCE</groupId>
<artifactId>gov.ornl.nice.nicedatastructures.test</artifactId>
<version>2.0.0</version>
<packaging>eclipse-test-plugin</packaging>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<appArgLine>-DREFRESH_BUNDLES=FALSE</appArgLine>
<!-- Bundle start levels for database tests -->
<bundleStartLevel>
<bundle>
<id>javax.persistence</id>
<level>1</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>osgi.enterprise</id>
<level>2</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.osgi</id>
<level>-1</level>
<autoStart>true</autoStart>
</bundle>

<bundle>
<id>org.apache.derby</id>
<level>2</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.core.contenttype</id>
<level>4</level>
<autoStart>false</autoStart>
</bundle>
<bundle>
<id>org.eclipse.core.jobs</id>
<level>4</level>
<autoStart>false</autoStart>
</bundle>
<bundle>
<id>org.eclipse.core.runtime</id>
<level>4</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.equinox.app</id>
<level>4</level>
<autoStart>false</autoStart>
</bundle>
<bundle>
<id>org.eclipse.equinox.common</id>
<level>2</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.equinox.ds</id>
<level>2</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.equinox.preferences</id>
<level>4</level>
<autoStart>false</autoStart>
</bundle>
<bundle>
<id>org.eclipse.equinox.registry</id>
<level>4</level>
<autoStart>false</autoStart>
</bundle>
<bundle>
<id>org.eclipse.equinox.simpleconfigurator</id>
<level>1</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.equinox.util</id>
<level>4</level>
<autoStart>false</autoStart>
</bundle>
<bundle>
<id>org.eclipse.gemini.dbaccess.derby</id>
<level>2</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.gemini.jpa</id>
<level>2</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.persistence.antlr</id>
<level>3</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.persistence.asm</id>
<level>3</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.persistence.core</id>
<level>3</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.persistence.jpa</id>
<level>3</level>
<autoStart>false</autoStart>
</bundle>
<bundle>
<id>org.eclipse.persistence.jpa.osgi</id>
<level>3</level>
<autoStart>true</autoStart>
</bundle>
<bundle>
<id>org.eclipse.update.configurator</id>
<level>3</level>
<autoStart>true</autoStart>
</bundle>

<bundle>
<id>org.eclipse.persistence.jpa.equinox</id>
<level>4</level>
<autoStart>false</autoStart>
</bundle>

</bundleStartLevel>

<!-- Dependencies for database tests -->
<dependencies>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.apache.derby</artifactId>
<version>10.5.1.1</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>osgi.enterprise</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.gemini.dbaccess.derby</artifactId>
<version>1.0.0.RELEASE</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.gemini.jpa</artifactId>
<version>1.0.0.RELEASE</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.persistence.antlr</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.persistence.asm</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.persistence.core</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.persistence.jpa</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.persistence.jpa.osgi</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.equinox.simpleconfigurator</artifactId>
<version>1.0.200</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.equinox.common</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.update.configurator</artifactId>
<version>3.3.1</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.core.runtime</artifactId>
<version>3.7.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.equinox.ds</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.osgi</artifactId>
<version>3.7.2</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.persistence.jpa.equinox</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.equinox.util</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.equinox.app</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.equinox.preferences</artifactId>
<version>3.4.2</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.equinox.registry</artifactId>
<version>3.5.101</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.core.contenttype</artifactId>
<version>3.4.100</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.core.jobs</artifactId>
<version>3.5.100</version>
</dependency>
</dependencies>
</configuration>
</plugin>
</plugins>
</build>

</project>
Re: Gemini - Maven-tycho build works on some machines, but not others. [message #968589 is a reply to message #968452] Fri, 02 November 2012 15:26 Go to previous message
Scott Hull is currently offline Scott HullFriend
Messages: 32
Registered: July 2012
Member
Seems I fixed it by adding my PU to the start levels (start level 3, auto start true) along with the DS plugin (after PU, start level 3). I can not believe this configuration worked on some machines but not others. I can only speculate that this erroneous event was some kind of race condition where the PU plugin was being started by some other plugin just at the right moment for some machines, but not others.

If this holds over the weekend (we have continuous builds every hour), I will mark this as solved.

[Updated on: Fri, 02 November 2012 15:27]

Report message to a moderator

Previous Topic:[Solved]Recalibrate EMF or EM during runtime - database location
Next Topic:e4 Application with Gemini time out exceptions
Goto Forum:
  


Current Time: Fri Dec 19 04:10:18 GMT 2014

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

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