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

Reply via email to