Hi Robert, thanks for the pointers!

On Thursday, October 27, 2016 7:22 AM, Robert Munteanu wrote:    
> Hi John,
> 
> On Thu, 2016-10-27 at 13:11 +0000, John Logan wrote:
> > 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 assume you mean mvn install )

Yes, exactly.  It was very early in the morning when it wrote this :)

[snip]

> > 
> > 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?
> 
> Yes, it should be possible. We actually do this on our CI instance and
> right now it succeeds.
> 
>   https://builds.apache.org/job/sling-launchpad-builder-1.8/
> 
> I would try a couple of things.
> 
> 1. Build using '-U' to pull in the latest snapshots, e.g.
> 
>   mvn -U clean install
> 

I've tried this as well as simply deleting .m2/repository.  Neither
results in a change.

> 2. Manually start the launchpad which was build by Maven, using
> 
>   java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar
> 

I get a 404 when I try to load the base URL after starting the
launchpad in this manner.  The server log seems to indicate pretty
severe breakage; there are about 150 errors during startup, of the form:

27.10.2016 09:41:28.682 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService)] 
org.apache.sling.event.impl.jobs Unable to create new resource resolver: Cannot 
derive user name for bundle org.apache.sling.event [104] and sub service null
27.10.2016 09:41:28.683 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService)] 
org.apache.sling.event 
[org.apache.sling.event.impl.jobs.jcr.PersistenceHandler(105)] The activate 
method has thrown an exception (java.lang.RuntimeException: 
org.apache.sling.api.resource.LoginException: Cannot derive user name for 
bundle org.apache.sling.event [104] and sub service null)
27.10.2016 09:41:28.689 *ERROR* [FelixDispatchQueue] org.apache.sling.event 
FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory 
returned null. (Component: 
org.apache.sling.event.impl.jobs.jcr.PersistenceHandler (105)))
27.10.2016 09:41:28.704 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService)] 
org.apache.sling.event.impl.jobs Unable to create new resource resolver: Cannot 
derive user name for bundle org.apache.sling.event [104] and sub service null
27.10.2016 09:41:28.705 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService)] 
org.apache.sling.event 
[org.apache.sling.event.impl.jobs.jcr.PersistenceHandler(105)] The activate 
method has thrown an exception (java.lang.RuntimeException: 
org.apache.sling.api.resource.LoginException: Cannot derive user name for 
bundle org.apache.sling.event [104] and sub service null)
27.10.2016 09:41:28.711 *ERROR* [FelixDispatchQueue] org.apache.sling.event 
FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory 
returned null. (Component: 
org.apache.sling.event.impl.jobs.jcr.PersistenceHandler (105)))
27.10.2016 09:41:28.718 *ERROR* [FelixDispatchQueue] org.apache.sling.event 
FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory 
returned null. (Component: org.apache.sling.event.impl.jobs.JobManagerImpl 
(96)))
27.10.2016 09:41:28.724 *ERROR* [FelixDispatchQueue] 
org.apache.aries.jmx.whiteboard FrameworkEvent ERROR 
(org.osgi.framework.ServiceException: Service factory returned null. 
(Component: org.apache.sling.event.impl.jobs.jmx.AllJobStatisticsMBean (103)))

> and see if that works for you . If 
> 
> 3. As a last resort, run the build without testing
> 
>   mvn clean install -DskipTests
> 
> This will build and install the launchpad without running the
> integration tests. But I'd still like to know why the build fails for
> you :-)
> 

I've searched through the commits to see where I first see this
problem.  It looks like I'm seeing the same failure logged in
SLING-6130, and the failure occurs at the later of these two
commits to the repo.

commit 95d765aa221d34510ef6690e527a927ccd73734c
Author: Bertrand Delacretaz <bdelacre...@apache.org>
Date:   Wed Oct 12 13:31:55 2016 +0000

    SLING-5135 - update launchpad to use latest bundles with login admin 
whitelist enabled
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1764464 
13f79535-47bb-0310-9956-ffa450edef68

commit 6cc9bc4d885261ae820c071d91768c741ad41276
Author: Bertrand Delacretaz <bdelacre...@apache.org>
Date:   Wed Oct 12 13:27:39 2016 +0000

    SLING-6130 - revert revision 1764259 which breaks the launchpad with 
'unknown node type sling:Folder' (I'll explain in jira)
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1764462 
13f79535-47bb-0310-9956-ffa450edef68


> Hope this helps,
> 
> Robert

Reply via email to