Re: [equinox-dev] Problem testing with JUnit - Equinox doesn't start
This is very strange. It appears the launch configuration is trying to set the start-level of the system bundle. Perhaps there is a PDE bug that allows that to happen. But I'm not even sure how to construct an osgi.bundles configuration property that would cause the launcher (EclispeStarter) to try and set the start-level of the system bundle. Can you please open a bug against Equinox-Framework and provide steps we can use to reproduce. Also tell us what version of Eclipse you are using. Thanks. Tom | | From: | | --| |Markus Kolb equinox062...@tower-net.de | --| | | To:| | --| |equinox-dev@eclipse.org | --| | | Date: | | --| |06/11/2009 06:30 PM | --| | | Subject: | | --| |[equinox-dev] Problem testing with JUnit - Equinox doesn't start | --| Hi, do you know any online resources which explain how to test bundle code with JUnit and Equinox? I've tried to setup the test suite in Eclipse Ganymede and don't get Equinox to start up when running the tests. !ENTRY org.eclipse.osgi 4 0 2009-06-12 00:57:41.198 !MESSAGE An unexpected runtime error has occurred. !STACK 0 java.lang.IllegalArgumentException: The System Bundle's start level can not be modified. at org.eclipse.osgi.framework.internal.core.StartLevelManager .setBundleStartLevel(StartLevelManager.java:415) at org.eclipse.core.runtime.adaptor.EclipseStarter .installBundles(EclipseStarter.java:1122) at org.eclipse.core.runtime.adaptor.EclipseStarter .loadBasicBundles(EclipseStarter.java:646) at org.eclipse.core.runtime.adaptor.EclipseStarter .access$1(EclipseStarter.java:623) at org.eclipse.core.runtime.adaptor.EclipseStarter$1 .bundleChanged(EclipseStarter.java:308) at org.eclipse.osgi.framework.internal.core.BundleContextImpl .dispatchEvent(BundleContextImpl.java:1234) at org.eclipse.osgi.framework.eventmgr.EventManager .dispatchEvent(EventManager.java:211) at org.eclipse.osgi.framework.eventmgr.ListenerQueue .dispatchEventSynchronous(ListenerQueue.java:141) at org.eclipse.osgi.framework.internal.core.Framework .publishBundleEventPrivileged(Framework.java:1518) at org.eclipse.osgi.framework.internal.core.Framework .publishBundleEvent(Framework.java:1469) at org.eclipse.osgi.framework.internal.core.StartLevelManager .doSetStartLevel(StartLevelManager.java:281) at org.eclipse.osgi.framework.internal.core.StartLevelManager .launch(StartLevelManager.java:247) at org.eclipse.osgi.framework.internal.core.SystemBundle .resume(SystemBundle.java:201) at org.eclipse.osgi.framework.internal.core.Framework .launch(Framework.java:644) at org.eclipse.osgi.framework.internal.core.OSGi.launch(OSGi.java:51) at org.eclipse.core.runtime.adaptor.EclipseStarter .startup(EclipseStarter.java:313) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:175) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at
[equinox-dev] Re: Problem testing with JUnit - Equinox doesn't start
Thomas Watson tjwat...@... writes: This is very strange. It appears the launch configuration is trying to set the start-level of the system bundle. Perhaps there is a PDE bug that allows that to happen. But I'm not even sure how to construct an osgi.bundles configuration property that would cause the launcher (EclispeStarter) to try and set the start-level of the system bundle. Can you please open a bug against Equinox-Framework and provide steps we can use to reproduce. Also tell us what version of Eclipse you are using. Thanks. Here you can download my Eclipse configuration info: http://docs.google.com/View?id=dc65vw7s_16dgws5tgk The project file: http://docs.google.com/View?id=dc65vw7s_2029vpspkh and classpath: http://docs.google.com/View?id=dc65vw7s_21g8thtkhc This is the bundle manifest: http://docs.google.com/View?id=dc65vw7s_19cxf636fx and this is the test launcher: http://docs.google.com/View?id=dc65vw7s_17d5pkx2dx and the launch log: http://docs.google.com/View?id=dc65vw7s_189hgxxsdf With my project I simply start the launcher and get the errors in launch log. Do you need any further information how to reproduce this? Markus ___ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] Re: Problem testing with JUnit - Equinox doesn't start
Can you use a newer build of Eclipse? M20090211-1700 We had some start level related issues in PDE when we first started exposing them in the UI. These should have all been fixed by now with the release of Eclipse 3.5 Cheers, -- Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465 http://twitter.com/eclipsesource | http://twitter.com/caniszczyk ___ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
[equinox-dev] Problem when running Equinox with Maven and OSP4J's Pax Construct when behind a proxy
Hello, I am trying to use Equinox with Maven and Pax Construct. When I type mvn pax:run, it correctly downloads all the bundles. However, Maven gets stuck when attempting to download Equinox: - Equinox 3.4.2 (v20081215-1030) : downloading... After ten minutes or so, Pax times out, saying that it wasn't able to obtain the bundle. I get this message: Oops, these has been a problem! URL [mvn:org.eclipse/osgi/3.4.3.v20081215-1030] could not be resolved. I have environment variables set up correctly ($http_proxy, $HTTP_PROXY, $HTTPS_PROXY, $FTP_PROXY), and I have provided proxy settings in my ~/.m2/settings.xml file. Here's some information on my computer: Output from uname: Linux deleted 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux Java version: Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Maven version: Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100) How can I fix this? Thanks, Samad ___ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
[equinox-dev] Fw: Equinox Galileo Release 3.5
Yeah!! ;-) Tom - Forwarded by Thomas Watson/Austin/IBM on 06/12/2009 11:55 AM - | | From: | | --| |Wayne Beaton wa...@eclipse.org | --| | | To:| | --| |Thomas Watson/Austin/i...@ibmus, j...@eclipsesource.com | --| | | Date: | | --| |06/12/2009 11:44 AM | --| | | Subject: | | --| |Equinox Galileo Release 3.5 | --| Congratulations on your successful Release Review! You may now release Equinox Galileo Release 3.5. Thanks. Please let me know if you have any questions. Wayne inline: ecblank.gif___ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] Problem when running Equinox with Maven and OSP4J's Pax Construct when behind a proxy
This is a PAX issue, rather than Equinox. Indeed, Eclipse doesn't actually host the bundles on ibiblio at all ... they're put up by volunteers. You might try a pax-update from the PAX scripts to see if there is any updates. It may be that the Equinox version you've specified is no longer available. I recall I used pax-construct to create my project which defaulted to a right version of Equinox. Perhaps after update you can create a new project with that and then cut'n'paste the Equinox dependency. Alex Sent from my (new) iPhone On 12 Jun 2009, at 16:09, Samad Lotia samad.lo...@pasteur.fr wrote: Hello, I am trying to use Equinox with Maven and Pax Construct. When I type mvn pax:run, it correctly downloads all the bundles. However, Maven gets stuck when attempting to download Equinox: - Equinox 3.4.2 (v20081215-1030) : downloading... After ten minutes or so, Pax times out, saying that it wasn't able to obtain the bundle. I get this message: Oops, these has been a problem! URL [mvn:org.eclipse/osgi/3.4.3. v20081215-1030] could not be resolved. I have environment variables set up correctly ($http_proxy, $HTTP_PROXY, $HTTPS_PROXY, $FTP_PROXY), and I have provided proxy settings in my ~/.m2/settings.xml file. Here's some information on my computer: Output from uname: Linux deleted 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux Java version: Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Maven version: Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100) How can I fix this? Thanks, Samad ___ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev ___ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
[equinox-dev] Re: Problem testing with JUnit - Equinox doesn't start
Chris Aniszczyk z...@... writes: Can you use a newer build of Eclipse? I've installed the Galileo RC3 and updated. Now the problem is a new one ;-( Is this a problem of JUnit? java.lang.NoClassDefFoundError: Could not initialize class de.n4v.isphelperdb .jpa.EMIspHelper$Singleton at de.n4v.isphelperdb.jpa.EMIspHelper.getInstance(EMIspHelper.java:67) at de.n4v.isphelper.linux.UserGroupComponentTest .setUp(UserGroupComponentTest.java:28) at junit.framework.TestCase.runBare(TestCase.java:132) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner .run(JUnit38ClassRunner.java:79) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference .run(JUnit4TestReference.java:46) public class EMIspHelper { private static EntityManagerFactory emf; private final LogService log = Activator.getLogService(); private HashtableString, String elprops; private static final class Singleton { private static final EMIspHelper INSTANCE = new EMIspHelper(); } protected EMIspHelper() { ... } public static EMIspHelper getInstance() { return Singleton.INSTANCE; } } ___ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
[equinox-dev] Re: Problem testing with JUnit - Equinox doesn't start
Markus Kolb equinox062...@... writes: Chris Aniszczyk z...@... writes: Can you use a newer build of Eclipse? I've installed the Galileo RC3 and updated. Now the problem is a new one ;-( Is this a problem of JUnit? No, it is JPA related... So off topic stuff. The bug with PDE seems to be fixed. ___ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev