Re: Unable to run or debug pax-cursor with eclipse
First of all, I want to apologize with all of you because you answered so quickly to my issues, but I have never answered back to your question! I have serius problem with the amount of e-mail that I receive and I can keep track of everything :S . I'm really sorry. Going back to the issue, I could explain well the scenario. I will try to explain it again. Enviroment: Eclipse 3.4.1 + Maven Integration for Eclipse 0.9.9 + OPS4J Pax Runner 1.1.1 WinXP SP3 + Sun JDK 1.6.0 build 11 Use Case A: Start Eclipse 3.4.1 Create OSGi Configuration that uses OPS4J Pax Runner 1.1.1 Start the OSGi Configuration just created, it should start without any problem Stop the OSGi Configuration either by means of specific OSGi container or by terminating the jvm from eclipse Start again the OSGi Configuration: this time you will receive the error that I have reported Use Case B: Start Eclipse 3.4.1 Create OSGi Configuration that uses OPS4J Pax Runner 1.1.1 Start the OSGi Configuration just created, it should start without any problem Stop the OSGi Configuration either by means of specific OSGi container or by terminating the jvm from eclipse Create another OSGi Configuration that uses OPS4J Pax Runner 1.1.1 Start either the previust or the new OSGi Configuration: this time you will receive the error that I have reported Comments: From my testing it seems that the 1st time that you start OSGi Configuration it works fine, but *after that you close it* and you start another OSGi Configuration (2nd time that you start OSGi Configuration) within the same Eclipse program you will experiencing the problem that I reported Answers to your questions: @Stuart: what level of JVM are you starting Eclipse with? I don't know, how can I check and how can I change it? @Stuart: what's the error? You can see the image attached @Alin: Can you tell me if you is pax cursor working to lounch up any app, or is always failing As I hope you have understood from the Use Case description the eclipse plugin works great the first time I start any OSGi Configuration, but it always fail when I stop an OSGi Configuration and I try to execute any OSGi Configuration, till I restart Eclipse @Stuart: perhaps it's only an issue when you're using the development/snapshot version? I'm only release version, in particular 1.1.1 @Alin: but actually you actually had th etwo plugin projects opened in eclipse and wanted via the Eclipse Application to test it directly from IDE. Right? No, I'm sorry but your (Alin and Stuart) first idea I think the misunderstanding was that we (me/Stuart?) were thinking that you had errors while using the Pax Cursor plugin was correct Thank you all! P.S.: Should I open a JIRA issue to easily track this long thread? On Sat, Dec 20, 2008 at 18:00, Alin Dreghiciuadreghi...@gmail.com wrote: Okay. I have it running the way you described. The idea is that you have two solutions: 1. use Eclipse 3.4 and have the Maven support enabled 2. before running the test Eclipse Application you will do a mvn clean install Now why it is working: the way we include pax runner jar within the cursor plugin is via a maven dependency plugin. This one will copy within the target/classes folder the pax runner classes. Without this, th eplugin will fail with the error you mailed about because of course the classes are not there. Having either one of the above solutions, will copy those files to the target/classes. Best will be that you use Eclipse 3.4 because this will do it automatically for you. basically you will have to do it like this: 1. update the latest svn version (or maybe import the projects from svn directly) 2. import the projects into workspace 3. wait till the build process finishes 4. press F5 on the pax cursor project To check that the process was successfully you must go to pax-cursor/target/classes and look for prg/ops4j/pax/runner (and actually many other classes that will be copied there). I observed that this copy of classes is not 100% bullet proof process (Eclipse, what can I expect ;) but if you go to se the project and do an mvn clean (this removes the target directory) or you remove the target directory by hand + you do an F5 on the pax cursor project, from what I tried) the classes will be copied where they should be. HTH, On Sat, Dec 20, 2008 at 4:58 PM, Alin Dreghiciu adreghi...@gmail.com wrote: Hi Stefano, I finally had time to look into it. I think the misunderstanding was that we (me/Stuart?) were thinking that you had errors while using the Pax Cursor plugin, but actually you actually had th etwo plugin projects opened in eclipse and wanted via the Eclipse Application to test it directly from IDE. Right? Actually I should be right because I could reproduce your case. And I know also the cause: while starting the new Eclipse Application Eclipse will indeed install the two plugins but it will not include any dependencies that the pax cursor project has = Pax Runner. So, that's why
Re: Unable to run or debug pax-cursor with eclipse
Hi Stefano, Please open a Jira issue so we can keep track. Alin On Fri, Aug 7, 2009 at 11:53 AM, Stefano Kismet Lenzi kismet...@gmail.com wrote: First of all, I want to apologize with all of you because you answered so quickly to my issues, but I have never answered back to your question! I have serius problem with the amount of e-mail that I receive and I can keep track of everything :S . I'm really sorry. Going back to the issue, I could explain well the scenario. I will try to explain it again. Enviroment: Eclipse 3.4.1 + Maven Integration for Eclipse 0.9.9 + OPS4J Pax Runner 1.1.1 WinXP SP3 + Sun JDK 1.6.0 build 11 Use Case A: Start Eclipse 3.4.1 Create OSGi Configuration that uses OPS4J Pax Runner 1.1.1 Start the OSGi Configuration just created, it should start without any problem Stop the OSGi Configuration either by means of specific OSGi container or by terminating the jvm from eclipse Start again the OSGi Configuration: this time you will receive the error that I have reported Use Case B: Start Eclipse 3.4.1 Create OSGi Configuration that uses OPS4J Pax Runner 1.1.1 Start the OSGi Configuration just created, it should start without any problem Stop the OSGi Configuration either by means of specific OSGi container or by terminating the jvm from eclipse Create another OSGi Configuration that uses OPS4J Pax Runner 1.1.1 Start either the previust or the new OSGi Configuration: this time you will receive the error that I have reported Comments: From my testing it seems that the 1st time that you start OSGi Configuration it works fine, but *after that you close it* and you start another OSGi Configuration (2nd time that you start OSGi Configuration) within the same Eclipse program you will experiencing the problem that I reported Answers to your questions: @Stuart: what level of JVM are you starting Eclipse with? I don't know, how can I check and how can I change it? @Stuart: what's the error? You can see the image attached @Alin: Can you tell me if you is pax cursor working to lounch up any app, or is always failing As I hope you have understood from the Use Case description the eclipse plugin works great the first time I start any OSGi Configuration, but it always fail when I stop an OSGi Configuration and I try to execute any OSGi Configuration, till I restart Eclipse @Stuart: perhaps it's only an issue when you're using the development/snapshot version? I'm only release version, in particular 1.1.1 @Alin: but actually you actually had th etwo plugin projects opened in eclipse and wanted via the Eclipse Application to test it directly from IDE. Right? No, I'm sorry but your (Alin and Stuart) first idea I think the misunderstanding was that we (me/Stuart?) were thinking that you had errors while using the Pax Cursor plugin was correct Thank you all! P.S.: Should I open a JIRA issue to easily track this long thread? On Sat, Dec 20, 2008 at 18:00, Alin Dreghiciuadreghi...@gmail.com wrote: Okay. I have it running the way you described. The idea is that you have two solutions: 1. use Eclipse 3.4 and have the Maven support enabled 2. before running the test Eclipse Application you will do a mvn clean install Now why it is working: the way we include pax runner jar within the cursor plugin is via a maven dependency plugin. This one will copy within the target/classes folder the pax runner classes. Without this, th eplugin will fail with the error you mailed about because of course the classes are not there. Having either one of the above solutions, will copy those files to the target/classes. Best will be that you use Eclipse 3.4 because this will do it automatically for you. basically you will have to do it like this: 1. update the latest svn version (or maybe import the projects from svn directly) 2. import the projects into workspace 3. wait till the build process finishes 4. press F5 on the pax cursor project To check that the process was successfully you must go to pax-cursor/target/classes and look for prg/ops4j/pax/runner (and actually many other classes that will be copied there). I observed that this copy of classes is not 100% bullet proof process (Eclipse, what can I expect ;) but if you go to se the project and do an mvn clean (this removes the target directory) or you remove the target directory by hand + you do an F5 on the pax cursor project, from what I tried) the classes will be copied where they should be. HTH, On Sat, Dec 20, 2008 at 4:58 PM, Alin Dreghiciu adreghi...@gmail.com wrote: Hi Stefano, I finally had time to look into it. I think the misunderstanding was that we (me/Stuart?) were thinking that you had errors while using the Pax Cursor plugin, but actually you actually had th etwo plugin projects opened in eclipse and wanted via the Eclipse Application to test it directly from IDE. Right? Actually I should be right
Re: Unable to run or debug pax-cursor with eclipse
Hi Stefano, I finally had time to look into it. I think the misunderstanding was that we (me/Stuart?) were thinking that you had errors while using the Pax Cursor plugin, but actually you actually had th etwo plugin projects opened in eclipse and wanted via the Eclipse Application to test it directly from IDE. Right? Actually I should be right because I could reproduce your case. And I know also the cause: while starting the new Eclipse Application Eclipse will indeed install the two plugins but it will not include any dependencies that the pax cursor project has = Pax Runner. So, that's why you get the exception, the pax runner jar is not there and you will get a class not found. So, the solution is that Eclipse should include the dependency inside the plugin or at least have it in the classpath of the plugin. That's the goal but I'm not an Eclipse guy so I do not have a solution to that. if you are wonder why it works normally, that is because we (during maven build) we include the pax runner jar within the pax cursor jar so the classes are found. I will now look how I can instruct Eclipse to include the Pax Runner jar in the built plugin. maybe I get lucky. But maybe you know how to do that... Alin On Mon, Oct 20, 2008 at 11:38 AM, Stefano Kismet Lenzi kismet...@gmail.com wrote: On Mon, Oct 20, 2008 at 10:57, Stuart McCulloch mccu...@gmail.com wrote: 2008/10/20 Stefano Kismet Lenzi kismet...@gmail.com On Mon, Oct 20, 2008 at 00:35, Alin Dreghiciu adreghi...@gmail.com wrote: I have no clue. indeed I did not use pax cursor for a while, so I will give it a try. Can you tell me if you is pax cursor working to lounch up any app, or is always failing. It always fails. Even if I try to run it without any application but only with the framework with the target console. I have tried to debug the error but without success. The error seems to be generated by the JavaRunner inner class declared in LaunchConfiguration. btw, what's the error? The error reported when I try to run only the felix framework with a console (so without any extra bundle) is: An internal error occurred during: Launching Example. org/ops4j/pax/runner/platform/JavaRunner and what level of JVM are you starting Eclipse with? What do you mean with level of JVM ? I'm using the latest Pax-Cursor (0.6.0) with Eclipse 3.4 and I haven't seen this error (previously I used it with Eclipse 3.3 and 3.2, but don't have them installed at the mo) perhaps it's only an issue when you're using the development/snapshot version? I'm using Eclipse 3.3 and Pax-Cursor 0.6.0 works fine. The problem is with the Pax-Cursor-0.7.0-SVN version. In particular, I'm trying to run, test, and debug the SVN version of pax-cursor. To launch the SVN version of pax-cursor I use the Eclipse Application profile from the run/debug application launcher. I hope this can help. Ciao, Stefano Kismet Lenzi ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general -- Alin Dreghiciu http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org- New Energy for Java - Domain Driven Development. http://malaysia.jayway.net - New Energy for Projects - Great People working on Great Projects at Great Places ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general
Re: Unable to run or debug pax-cursor with eclipse
Okay. I have it running the way you described. The idea is that you have two solutions: 1. use Eclipse 3.4 and have the Maven support enabled 2. before running the test Eclipse Application you will do a mvn clean install Now why it is working: the way we include pax runner jar within the cursor plugin is via a maven dependency plugin. This one will copy within the target/classes folder the pax runner classes. Without this, th eplugin will fail with the error you mailed about because of course the classes are not there. Having either one of the above solutions, will copy those files to the target/classes. Best will be that you use Eclipse 3.4 because this will do it automatically for you. basically you will have to do it like this: 1. update the latest svn version (or maybe import the projects from svn directly) 2. import the projects into workspace 3. wait till the build process finishes 4. press F5 on the pax cursor project To check that the process was successfully you must go to pax-cursor/target/classes and look for prg/ops4j/pax/runner (and actually many other classes that will be copied there). I observed that this copy of classes is not 100% bullet proof process (Eclipse, what can I expect ;) but if you go to se the project and do an mvn clean (this removes the target directory) or you remove the target directory by hand + you do an F5 on the pax cursor project, from what I tried) the classes will be copied where they should be. HTH, On Sat, Dec 20, 2008 at 4:58 PM, Alin Dreghiciu adreghi...@gmail.com wrote: Hi Stefano, I finally had time to look into it. I think the misunderstanding was that we (me/Stuart?) were thinking that you had errors while using the Pax Cursor plugin, but actually you actually had th etwo plugin projects opened in eclipse and wanted via the Eclipse Application to test it directly from IDE. Right? Actually I should be right because I could reproduce your case. And I know also the cause: while starting the new Eclipse Application Eclipse will indeed install the two plugins but it will not include any dependencies that the pax cursor project has = Pax Runner. So, that's why you get the exception, the pax runner jar is not there and you will get a class not found. So, the solution is that Eclipse should include the dependency inside the plugin or at least have it in the classpath of the plugin. That's the goal but I'm not an Eclipse guy so I do not have a solution to that. if you are wonder why it works normally, that is because we (during maven build) we include the pax runner jar within the pax cursor jar so the classes are found. I will now look how I can instruct Eclipse to include the Pax Runner jar in the built plugin. maybe I get lucky. But maybe you know how to do that... Alin On Mon, Oct 20, 2008 at 11:38 AM, Stefano Kismet Lenzi kismet...@gmail.com wrote: On Mon, Oct 20, 2008 at 10:57, Stuart McCulloch mccu...@gmail.com wrote: 2008/10/20 Stefano Kismet Lenzi kismet...@gmail.com On Mon, Oct 20, 2008 at 00:35, Alin Dreghiciu adreghi...@gmail.com wrote: I have no clue. indeed I did not use pax cursor for a while, so I will give it a try. Can you tell me if you is pax cursor working to lounch up any app, or is always failing. It always fails. Even if I try to run it without any application but only with the framework with the target console. I have tried to debug the error but without success. The error seems to be generated by the JavaRunner inner class declared in LaunchConfiguration. btw, what's the error? The error reported when I try to run only the felix framework with a console (so without any extra bundle) is: An internal error occurred during: Launching Example. org/ops4j/pax/runner/platform/JavaRunner and what level of JVM are you starting Eclipse with? What do you mean with level of JVM ? I'm using the latest Pax-Cursor (0.6.0) with Eclipse 3.4 and I haven't seen this error (previously I used it with Eclipse 3.3 and 3.2, but don't have them installed at the mo) perhaps it's only an issue when you're using the development/snapshot version? I'm using Eclipse 3.3 and Pax-Cursor 0.6.0 works fine. The problem is with the Pax-Cursor-0.7.0-SVN version. In particular, I'm trying to run, test, and debug the SVN version of pax-cursor. To launch the SVN version of pax-cursor I use the Eclipse Application profile from the run/debug application launcher. I hope this can help. Ciao, Stefano Kismet Lenzi ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general -- Alin Dreghiciu http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org- New Energy for Java - Domain Driven Development. http://malaysia.jayway.net - New Energy for Projects - Great People working on Great Projects at Great Places -- Alin Dreghiciu
Re: Unable to run or debug pax-cursor with eclipse
On Mon, Oct 20, 2008 at 00:35, Alin Dreghiciu [EMAIL PROTECTED] wrote: I have no clue. indeed I did not use pax cursor for a while, so I will give it a try. Can you tell me if you is pax cursor working to lounch up any app, or is always failing. It always fails. Even if I try to run it without any application but only with the framework with the target console. I have tried to debug the error but without success. The error seems to be generated by the JavaRunner inner class declared in LaunchConfiguration. Alin On Sun, Oct 19, 2008 at 1:27 AM, Stefano Kismet Lenzi [EMAIL PROTECTED] wrote: Hi All, I have tried to run, develop, and debug pax-cursor but I can't run or debug the plugin in Eclipse. I'm using the SVN version (https://scm.ops4j.org/repos/ops4j/projects/pax/cursor), and I'm using a plain Eclipse 3.3 version. I have imported the two pax-cursor project, namely org.ops4j.pax.eclipse.cursor.oflc and org.ops4j.pax.eclipse.cursor.oflc.ui. Then from the Run/Debug menu I have created a entry in Eclipse Application for testing the plugin. Inside the Plug-ins tabs I have both the pax-cursor selected and the Validate Plug-ins button doesn't return any error if I click on it. Unfortunately, when I try to run any OSGi Framework from the Eclipse platform execute by means of the Eclipse Application entry I get the following error: An internal error occurred during: Launching Example. org/ops4j/pax/runner/platform/JavaRunner Do you have any idea? Thank you! ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general -- Alin Dreghiciu http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org- New Energy for Java - Domain Driven Development. http://malaysia.jayway.net - New Energy for Projects - Great People working on Great Projects at Great Places ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general
Re: Unable to run or debug pax-cursor with eclipse
2008/10/20 Stefano Kismet Lenzi [EMAIL PROTECTED] On Mon, Oct 20, 2008 at 00:35, Alin Dreghiciu [EMAIL PROTECTED] wrote: I have no clue. indeed I did not use pax cursor for a while, so I will give it a try. Can you tell me if you is pax cursor working to lounch up any app, or is always failing. It always fails. Even if I try to run it without any application but only with the framework with the target console. I have tried to debug the error but without success. The error seems to be generated by the JavaRunner inner class declared in LaunchConfiguration. btw, what's the error? and what level of JVM are you starting Eclipse with? I'm using the latest Pax-Cursor (0.6.0) with Eclipse 3.4 and I haven't seen this error (previously I used it with Eclipse 3.3 and 3.2, but don't have them installed at the mo) perhaps it's only an issue when you're using the development/snapshot version? Alin On Sun, Oct 19, 2008 at 1:27 AM, Stefano Kismet Lenzi [EMAIL PROTECTED] wrote: Hi All, I have tried to run, develop, and debug pax-cursor but I can't run or debug the plugin in Eclipse. I'm using the SVN version (https://scm.ops4j.org/repos/ops4j/projects/pax/cursor), and I'm using a plain Eclipse 3.3 version. I have imported the two pax-cursor project, namely org.ops4j.pax.eclipse.cursor.oflc and org.ops4j.pax.eclipse.cursor.oflc.ui. Then from the Run/Debug menu I have created a entry in Eclipse Application for testing the plugin. Inside the Plug-ins tabs I have both the pax-cursor selected and the Validate Plug-ins button doesn't return any error if I click on it. Unfortunately, when I try to run any OSGi Framework from the Eclipse platform execute by means of the Eclipse Application entry I get the following error: An internal error occurred during: Launching Example. org/ops4j/pax/runner/platform/JavaRunner Do you have any idea? Thank you! ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general -- Alin Dreghiciu http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org- New Energy for Java - Domain Driven Development. http://malaysia.jayway.net - New Energy for Projects - Great People working on Great Projects at Great Places ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general -- Cheers, Stuart ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general
Re: Unable to run or debug pax-cursor with eclipse
On Mon, Oct 20, 2008 at 10:57, Stuart McCulloch [EMAIL PROTECTED] wrote: 2008/10/20 Stefano Kismet Lenzi [EMAIL PROTECTED] On Mon, Oct 20, 2008 at 00:35, Alin Dreghiciu [EMAIL PROTECTED] wrote: I have no clue. indeed I did not use pax cursor for a while, so I will give it a try. Can you tell me if you is pax cursor working to lounch up any app, or is always failing. It always fails. Even if I try to run it without any application but only with the framework with the target console. I have tried to debug the error but without success. The error seems to be generated by the JavaRunner inner class declared in LaunchConfiguration. btw, what's the error? The error reported when I try to run only the felix framework with a console (so without any extra bundle) is: An internal error occurred during: Launching Example. org/ops4j/pax/runner/platform/JavaRunner and what level of JVM are you starting Eclipse with? What do you mean with level of JVM ? I'm using the latest Pax-Cursor (0.6.0) with Eclipse 3.4 and I haven't seen this error (previously I used it with Eclipse 3.3 and 3.2, but don't have them installed at the mo) perhaps it's only an issue when you're using the development/snapshot version? I'm using Eclipse 3.3 and Pax-Cursor 0.6.0 works fine. The problem is with the Pax-Cursor-0.7.0-SVN version. In particular, I'm trying to run, test, and debug the SVN version of pax-cursor. To launch the SVN version of pax-cursor I use the Eclipse Application profile from the run/debug application launcher. I hope this can help. Ciao, Stefano Kismet Lenzi ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general
Re: Unable to run or debug pax-cursor with eclipse
I have no clue. indeed I did not use pax cursor for a while, so I will give it a try. Can you tell me if you is pax cursor working to lounch up any app, or is always failing. Alin On Sun, Oct 19, 2008 at 1:27 AM, Stefano Kismet Lenzi [EMAIL PROTECTED] wrote: Hi All, I have tried to run, develop, and debug pax-cursor but I can't run or debug the plugin in Eclipse. I'm using the SVN version (https://scm.ops4j.org/repos/ops4j/projects/pax/cursor), and I'm using a plain Eclipse 3.3 version. I have imported the two pax-cursor project, namely org.ops4j.pax.eclipse.cursor.oflc and org.ops4j.pax.eclipse.cursor.oflc.ui. Then from the Run/Debug menu I have created a entry in Eclipse Application for testing the plugin. Inside the Plug-ins tabs I have both the pax-cursor selected and the Validate Plug-ins button doesn't return any error if I click on it. Unfortunately, when I try to run any OSGi Framework from the Eclipse platform execute by means of the Eclipse Application entry I get the following error: An internal error occurred during: Launching Example. org/ops4j/pax/runner/platform/JavaRunner Do you have any idea? Thank you! ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general -- Alin Dreghiciu http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org- New Energy for Java - Domain Driven Development. http://malaysia.jayway.net - New Energy for Projects - Great People working on Great Projects at Great Places ___ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general