Hi,

Until just recently, I've been able to build the Sling Launchpad Builder 
project in isolation by cloning the Sling GitHub repo, and running 'mvn build' 
from the builder/launchpad directory.


I'm now seeing the integration test failure shown at the bottom of this 
message.  I've looked at the logs for the integration test and the only errors 
that I see are:


27.10.2016 06:00:51.782 *ERROR* [qtp1620216741-76] 
org.apache.sling.engine.impl.SlingHttpContext handleSecurity: 
AuthenticationSupport service missing. Cannot authenticate request.
27.10.2016 06:00:51.782 *ERROR* [qtp1620216741-76] 
org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason 
is missing Repository service. Check AuthenticationSupport dependencies.


and:


27.10.2016 06:00:53.231 *ERROR* [OsgiInstallerImpl] 
org.apache.sling.discovery.oak.pinger.OakViewChecker issueHeartbeat: 
discoveryService is null


I'm using Oracle Java 8 for the build:


$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)


Should it be possible, in general, to build the stock launchpad in isolation?  
If so, does anyone have suggestions on where I should start looking for 
problems?


Thanks!  John


-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.sling.launchpad.SmokeIT
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/home/john/.m2/repository/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/home/john/.m2/repository/org/slf4j/slf4j-simple/1.5.2/slf4j-simple-1.5.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type 
[ch.qos.logback.classic.util.ContextSelectorStaticBinder]
Attempting to load ESAPI.properties via file I/O.
Attempting to load ESAPI.properties as resource file via file I/O.
Not found in 'org.owasp.esapi.resources' directory or file not readable: 
/home/john/git/apache/sling/launchpad/builder/target/_-46739/ESAPI.properties
Not found in SystemResource Directory/resourceDirectory: .esapi/ESAPI.properties
Not found in 'user.home' (/home/john) directory: 
/home/john/esapi/ESAPI.properties
Loading ESAPI.properties via file I/O failed. Exception was: 
java.io.FileNotFoundException
Attempting to load ESAPI.properties via the classpath.
SUCCESSFULLY LOADED ESAPI.properties via the CLASSPATH from '/ (root)' using 
class loader for DefaultSecurityConfiguration class!
Attempting to load validation.properties via file I/O.
Attempting to load validation.properties as resource file via file I/O.
Not found in 'org.owasp.esapi.resources' directory or file not readable: 
/home/john/git/apache/sling/launchpad/builder/target/_-46739/validation.properties
Not found in SystemResource Directory/resourceDirectory: 
.esapi/validation.properties
Not found in 'user.home' (/home/john) directory: 
/home/john/esapi/validation.properties
Loading validation.properties via file I/O failed.
Attempting to load validation.properties via the classpath.
SUCCESSFULLY LOADED validation.properties via the CLASSPATH from '/ (root)' 
using class loader for DefaultSecurityConfiguration class!
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 61.927 sec <<< 
FAILURE! - in org.apache.sling.launchpad.SmokeIT
org.apache.sling.launchpad.SmokeIT  Time elapsed: 61.926 sec  <<< ERROR!
java.lang.RuntimeException: Launchpad not ready. Failed check for URL 
http://localhost:46739/server/default/jcr:root with message 'Status code is 
HTTP/1.1 404 Not Found'
    at 
org.apache.sling.launchpad.LaunchpadReadyRule.runCheck(LaunchpadReadyRule.java:96)
    at 
org.apache.sling.launchpad.LaunchpadReadyRule.before(LaunchpadReadyRule.java:66)
    at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46)
    at org.junit.rules.RunRules.evaluate(RunRules.java:20)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

Reply via email to