Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 463FB200C28 for ; Mon, 13 Mar 2017 15:59:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 44FEF160B85; Mon, 13 Mar 2017 14:59:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 95D02160B60 for ; Mon, 13 Mar 2017 15:59:48 +0100 (CET) Received: (qmail 9581 invoked by uid 500); 13 Mar 2017 14:59:47 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 9553 invoked by uid 99); 13 Mar 2017 14:59:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2017 14:59:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 123F918F168 for ; Mon, 13 Mar 2017 14:59:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id OAS6CxSkl9Fb for ; Mon, 13 Mar 2017 14:59:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 940E360FE2 for ; Mon, 13 Mar 2017 14:59:45 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C62EBE0A75 for ; Mon, 13 Mar 2017 14:59:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id E768C243C2 for ; Mon, 13 Mar 2017 14:59:41 +0000 (UTC) Date: Mon, 13 Mar 2017 14:59:41 +0000 (UTC) From: "Karl Pauls (JIRA)" To: dev@sling.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SLING-6618) Specify crx.default as workspace for AEM servers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 13 Mar 2017 14:59:49 -0000 [ https://issues.apache.org/jira/browse/SLING-6618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Pauls reassigned SLING-6618: --------------------------------- Assignee: (was: Karl Pauls) Well, as I said in my initial comment, I think I did try the shortterm fix [~kwin] points out and it didn't seem to work for me (i.e., I updated to the latest snapshot and provided the crx.default in the url) - hence, the workaround I provided. Yes, it is somewhat verbose and granted, it is entirely possible that I made some mistake trying to get the short term fix to work (maybe the snapshot didn't contain the fix after all) so just retry after the artefact is released and see if it works for you. Ultimately, I certainly agree that it would be best to have this fixed properly and have no requirement to provide the name of the default workspace at all. > Specify crx.default as workspace for AEM servers > ------------------------------------------------ > > Key: SLING-6618 > URL: https://issues.apache.org/jira/browse/SLING-6618 > Project: Sling > Issue Type: Bug > Components: IDE > Affects Versions: Sling Eclipse IDE 1.0.10 > Reporter: Karl Pauls > Fix For: Sling Eclipse IDE 1.2.0 > > Attachments: SLING-6618.patch > > > The current impl-vlt does try to connect to two different repository urls - one for sling and one for crx. In the case of the latter, it apparently needs to subsequently give the default workspace name (crx.default) to the login method - otherwise, trying to connect to the AEM server fails with "precondition failed" messages. > The full stack trace of the according {{RepositoryException}} looks like this > {code} > javax.jcr.lock.LockException: Precondition Failed > at org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:109) > at org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:51) > at org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:45) > at org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.obtain(RepositoryServiceImpl.java:809) > at org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.obtain(RepositoryServiceImpl.java:753) > at org.apache.jackrabbit.spi2davex.RepositoryServiceImpl.obtain(RepositoryServiceImpl.java:307) > at org.apache.jackrabbit.jcr2spi.RepositoryImpl.login(RepositoryImpl.java:151) > at org.apache.jackrabbit.commons.AbstractRepository.login(AbstractRepository.java:144) > at org.apache.sling.ide.jcr.RepositoryUtils.getRepositoryAddress(RepositoryUtils.java:84) > at org.apache.sling.ide.jcr.RepositoryUtils.getRepository(RepositoryUtils.java:44) > at org.apache.sling.ide.impl.vlt.VltRepository.connect(VltRepository.java:70) > at org.apache.sling.ide.impl.vlt.VltRepositoryFactory.connectRepository(VltRepositoryFactory.java:69) > at org.apache.sling.ide.eclipse.core.ServerUtil.connectRepository(ServerUtil.java:146) > at org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.start(SlingLaunchpadBehaviour.java:95) > at org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadLaunchConfigurationDelegate.launch(SlingLaunchpadLaunchConfigurationDelegate.java:45) > at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885) > at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739) > at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731) > at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3541) > at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3477) > at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:367) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) > Caused by: org.apache.jackrabbit.webdav.DavException: Precondition Failed > at org.apache.jackrabbit.webdav.client.methods.DavMethodBase.getResponseException(DavMethodBase.java:162) > at org.apache.jackrabbit.webdav.client.methods.DavMethodBase.getResponseBodyAsMultiStatus(DavMethodBase.java:91) > at org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.obtain(RepositoryServiceImpl.java:781) > ... 18 more > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)