You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Santiago Gala (JIRA)" <ji...@apache.org> on 2012/09/30 16:23:07 UTC
[jira] [Created] (SLING-2610) Sling Integration tests don't run
using command line
Santiago Gala created SLING-2610:
------------------------------------
Summary: Sling Integration tests don't run using command line
Key: SLING-2610
URL: https://issues.apache.org/jira/browse/SLING-2610
Project: Sling
Issue Type: Bug
Components: Testing
Affects Versions: Sample Integration Tests 1.0.8
Environment: command line ubuntu 12.04.1, maven 3.0.4-2, oracle java version 1.6.0_34
Reporter: Santiago Gala
First, I needed to patch the tests because they were looking for org.apache.sling.installer.api version 3.3.9-SNAPSHOT, which does not exist. I attach the patch.
After I did this, I'm getting a different error, about the org.apache.sling.installer.it.FragmentInstallTest failing:
30.09.2012 15:36:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Wait for test co
ntainer to finish its initialization for 300000 millis
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/adaptor/EclipseStarter
Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.eclipse.core.runtime.adaptor.EclipseStarter. Program will exit.
30.09.2012 15:41:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Shutting down th
e test container (Pax Runner)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 300.23 sec <<< FAILURE!
My guess is that the class being loaded is an eclipse class, not available when using command line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (SLING-2610) Sling Integration tests don't run
using command line
Posted by "Santiago Gala (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Santiago Gala reopened SLING-2610:
----------------------------------
The patch was a pre-requisite for getting the error I show in the description. try "mvn -o install" to get the error in tests. It is reliably reproducible from here, I'm not sure of the cause.
> Sling Integration tests don't run using command line
> ----------------------------------------------------
>
> Key: SLING-2610
> URL: https://issues.apache.org/jira/browse/SLING-2610
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Sample Integration Tests 1.0.8
> Environment: command line ubuntu 12.04.1, maven 3.0.4-2, oracle java version 1.6.0_34
> Reporter: Santiago Gala
> Attachments: installer-tests-fail.patch
>
>
> First, I needed to patch the tests because they were looking for org.apache.sling.installer.api version 3.3.9-SNAPSHOT, which does not exist. I attach the patch.
> After I did this, I'm getting a different error, about the org.apache.sling.installer.it.FragmentInstallTest failing:
> 30.09.2012 15:36:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Wait for test co
> ntainer to finish its initialization for 300000 millis
> Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/adaptor/EclipseStarter
> Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
> at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> Could not find the main class: org.eclipse.core.runtime.adaptor.EclipseStarter. Program will exit.
> 30.09.2012 15:41:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Shutting down th
> e test container (Pax Runner)
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 300.23 sec <<< FAILURE!
> My guess is that the class being loaded is an eclipse class, not available when using command line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SLING-2610) Sling Integration tests don't run
Posted by "Santiago Gala (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466903#comment-13466903 ]
Santiago Gala commented on SLING-2610:
--------------------------------------
actually I get basically the same error after I managed to run the build from inside eclipse, so I'm even more puzzled than before. I rename the bug to "Sling integration tests don't run". The error in eclipse is:
01.10.2012 18:15:31.865 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Test container (Pax Runner 1.4.0) started in 341 millis
01.10.2012 18:15:31.865 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Wait for test container to finish its initialization for 300000 millis
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/adaptor/EclipseStarter
Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.eclipse.core.runtime.adaptor.EclipseStarter. Program will exit.
> Sling Integration tests don't run
> ---------------------------------
>
> Key: SLING-2610
> URL: https://issues.apache.org/jira/browse/SLING-2610
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Sample Integration Tests 1.0.8
> Environment: command line ubuntu 12.04.1, maven 3.0.4-2, oracle java version 1.6.0_34
> Reporter: Santiago Gala
> Attachments: installer-tests-fail.patch
>
>
> First, I needed to patch the tests because they were looking for org.apache.sling.installer.api version 3.3.9-SNAPSHOT, which does not exist. I attach the patch.
> After I did this, I'm getting a different error, about the org.apache.sling.installer.it.FragmentInstallTest failing:
> 30.09.2012 15:36:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Wait for test co
> ntainer to finish its initialization for 300000 millis
> Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/adaptor/EclipseStarter
> Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
> at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> Could not find the main class: org.eclipse.core.runtime.adaptor.EclipseStarter. Program will exit.
> 30.09.2012 15:41:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Shutting down th
> e test container (Pax Runner)
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 300.23 sec <<< FAILURE!
> My guess is that the class being loaded is an eclipse class, not available when using command line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (SLING-2610) Sling Integration tests don't run
Posted by "Santiago Gala (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Santiago Gala updated SLING-2610:
---------------------------------
Summary: Sling Integration tests don't run (was: Sling Integration tests don't run using command line)
> Sling Integration tests don't run
> ---------------------------------
>
> Key: SLING-2610
> URL: https://issues.apache.org/jira/browse/SLING-2610
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Sample Integration Tests 1.0.8
> Environment: command line ubuntu 12.04.1, maven 3.0.4-2, oracle java version 1.6.0_34
> Reporter: Santiago Gala
> Attachments: installer-tests-fail.patch
>
>
> First, I needed to patch the tests because they were looking for org.apache.sling.installer.api version 3.3.9-SNAPSHOT, which does not exist. I attach the patch.
> After I did this, I'm getting a different error, about the org.apache.sling.installer.it.FragmentInstallTest failing:
> 30.09.2012 15:36:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Wait for test co
> ntainer to finish its initialization for 300000 millis
> Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/adaptor/EclipseStarter
> Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
> at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> Could not find the main class: org.eclipse.core.runtime.adaptor.EclipseStarter. Program will exit.
> 30.09.2012 15:41:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Shutting down th
> e test container (Pax Runner)
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 300.23 sec <<< FAILURE!
> My guess is that the class being loaded is an eclipse class, not available when using command line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (SLING-2610) Sling Integration tests don't run
using command line
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-2610.
-------------------------------------
Resolution: Fixed
Thanks for the patch, Santiago - I've applied a slightly modified version
> Sling Integration tests don't run using command line
> ----------------------------------------------------
>
> Key: SLING-2610
> URL: https://issues.apache.org/jira/browse/SLING-2610
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Sample Integration Tests 1.0.8
> Environment: command line ubuntu 12.04.1, maven 3.0.4-2, oracle java version 1.6.0_34
> Reporter: Santiago Gala
> Attachments: installer-tests-fail.patch
>
>
> First, I needed to patch the tests because they were looking for org.apache.sling.installer.api version 3.3.9-SNAPSHOT, which does not exist. I attach the patch.
> After I did this, I'm getting a different error, about the org.apache.sling.installer.it.FragmentInstallTest failing:
> 30.09.2012 15:36:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Wait for test co
> ntainer to finish its initialization for 300000 millis
> Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/adaptor/EclipseStarter
> Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
> at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> Could not find the main class: org.eclipse.core.runtime.adaptor.EclipseStarter. Program will exit.
> 30.09.2012 15:41:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Shutting down th
> e test container (Pax Runner)
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 300.23 sec <<< FAILURE!
> My guess is that the class being loaded is an eclipse class, not available when using command line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (SLING-2610) Sling Integration tests don't run
using command line
Posted by "Santiago Gala (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Santiago Gala updated SLING-2610:
---------------------------------
Attachment: installer-tests-fail.patch
Before I arrived to this problem, I needed to use this patch. I guess other people running integration tests have the API version it was looking for in their repository...
> Sling Integration tests don't run using command line
> ----------------------------------------------------
>
> Key: SLING-2610
> URL: https://issues.apache.org/jira/browse/SLING-2610
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Sample Integration Tests 1.0.8
> Environment: command line ubuntu 12.04.1, maven 3.0.4-2, oracle java version 1.6.0_34
> Reporter: Santiago Gala
> Attachments: installer-tests-fail.patch
>
>
> First, I needed to patch the tests because they were looking for org.apache.sling.installer.api version 3.3.9-SNAPSHOT, which does not exist. I attach the patch.
> After I did this, I'm getting a different error, about the org.apache.sling.installer.it.FragmentInstallTest failing:
> 30.09.2012 15:36:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Wait for test co
> ntainer to finish its initialization for 300000 millis
> Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/adaptor/EclipseStarter
> Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
> at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> Could not find the main class: org.eclipse.core.runtime.adaptor.EclipseStarter. Program will exit.
> 30.09.2012 15:41:11.562 *INFO* [main] org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer Shutting down th
> e test container (Pax Runner)
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 300.23 sec <<< FAILURE!
> My guess is that the class being loaded is an eclipse class, not available when using command line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira