On 11/29/2013 10:10 AM, Mickael Istria wrote:
Hi all,

As part of Luna came a change that we've not correctly estimated: http://wiki.eclipse.org/Equinox/Luna_Framework#Removal_of_the_PlatformAdmin_Service_Implementation . This cause some parts of Eclipse to be failing with surefire as they depend on a class which is not available in default Equinox bundles any more. The TEMPORARY workaround is to add a dependency to your tycho-surefire-plugin to fragment org.eclipse.osgi.compatibility.state.
So in case of failing test, try to add the fragment locally, and if it works better, open a bug to keep track of that change (make me a dep of JBIDE-16161). This should be fine for JBT 4.2.0.Alpha1 build and tests against Luna M3.
Workaround doesn't work for me. I have still the same problem in hibernate perspective test I got no message about admin service, but test is still failing (see results below).

Command line:
    /bin/sh -c cd /home/eskimo/Projects/jbdevstudio/src-fork/jbosstools-hibernate/tests/org.hibernate.eclipse.console.test && /usr/lib/jvm/java-6-oracle/jre/bin/java -Dosgi.noShutdown=false -Dosgi.os=linux -Dosgi.ws=gtk -Dosgi.arch=x86_64 -Dosgi.clean=true -jar /home/eskimo/Projects/jbdevstudio/src-fork/.m2/luna-M2/p2/osgi/bundle/org.eclipse.equinox.launcher/1.3.0.v20130327-1440/org.eclipse.equinox.launcher-1.3.0.v20130327-1440.jar -data /home/eskimo/Projects/jbdevstudio/src-fork/jbosstools-hibernate/tests/org.hibernate.eclipse.console.test/target/work/data -install /home/eskimo/Projects/jbdevstudio/src-fork/jbosstools-hibernate/tests/org.hibernate.eclipse.console.test/target/work -configuration /home/eskimo/Projects/jbdevstudio/src-fork/jbosstools-hibernate/tests/org.hibernate.eclipse.console.test/target/work/configuration -application org.eclipse.tycho.surefire.osgibooter.uitest -testproperties /home/eskimo/Projects/jbdevstudio/src-fork/jbosstools-hibernate/tests/org.hibernate.eclipse.console.test/target/surefire.properties -testApplication org.eclipse.ui.ide.workbench -product org.eclipse.platform.ide

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.hibernate.eclipse.console.test.ConsolePluginAllTests
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.028 sec <<< FAILURE!

Results :

Tests in error:
  testEnableHibernateProject(org.hibernate.eclipse.console.test.PerspectiveTest)

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0


Any idea?

Denis

Then by Luna M4, this should happen: https://bugs.eclipse.org/bugs/show_bug.cgi?id=417429 , and hopefully, it will remove most of our dependencies on this somehow deprecated PlatfromAdmin service. We'll be able to get rid of the additional dependency on surefire, and everything will be fine.

In case you have a message in your tycho-surefire-plugin saying "Could not acquire PlatformAdmin", you can safely ignore it https://bugs.eclipse.org/bugs/show_bug.cgi?id=417429 . It's just a warning. What's important is whether your tests do work or not, and if not, whether adding the fragment helps.
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets


_______________________________________________
jbosstools-dev mailing list
jbosstools-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosstools-dev