From gerald07@example.org Wed Sep 01 12:10:25 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 54737 invoked from network); 1 Sep 2010 12:10:25 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 1 Sep 2010 12:10:25 -0000 Received: (qmail 15826 invoked by uid 500); 1 Sep 2010 12:10:24 -0000 Delivered-To: gerald07@example.org Received: (qmail 15701 invoked by uid 500); 1 Sep 2010 12:10:22 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 15693 invoked by uid 99); 1 Sep 2010 12:10:21 -0000 Received: from Unknown (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 12:10:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO minotaur.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 01 Sep 2010 12:10:03 +0000 Received: (qmail 54546 invoked by uid 99); 1 Sep 2010 12:09:41 -0000 Received: from localhost.apache.org (HELO Scrat.fritz.box) (83.161.120.155) (smtp-auth username cziegeler, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 12:09:41 +0000 Message-ID: <gerald07@example.org> Date: Wed, 01 Sep 2010 14:09:37 +0200 From: Carsten Ziegeler <gerald07@example.org> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de; rv:83.161.120.155) Gecko/20090812 Lightning/0.9 Thunderbird/83.161.120.155 Mnenhy/83.161.120.1556 MIME-Version: 1.0 To: gerald07@example.org Subject: Re: JSP-Support in Cluster-Environment, SLING-#1038 References: <gerald07@example.org> In-Reply-To: <gerald07@example.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Markus Blaurock wrote > Hallo all, > > we are using a sling-cluster with JSPs, with Jasper in "Development mode". > > We are suffering with the problem of getting more than one cluster node > to recompile > a JSP on a change. This leads sometimes to an unreproducible problem > with the underlying > jackrabbit-repository (v1.6.1) because of concurrent writes of the class > file. > After this the repository is inconsistent und causes us a lot of trouble. > > Now we thought about a solution of having only one node compile the JSP > and the others just > reloading the class, saving time and avoiding the problem from above. > Sounded like a fine solution with little effort - > a little tweaking in the jsp-Support of sling and a cluster-event should > do the trick. > > Now we saw that issue 1038 was fixed, which makes it impossible to > ignore a change of a JSP-File in the repository > (before it was possible to just switch off the "development mode"). > This makes our "little tweaking" to a big one. > > Is there a concept for JSP in a cluster-environment which we could follow? > Any better solution to avoiding unnecessary recompiles in a cluster? > Probably jackrabbit gets better writing simultanously to the same > jcr-node, but > this is a problem we could avoid in the first place... > I'm not sure if this is the best solution, but an easy solution would be to add a switch to the jsp scripting which simply turns off compilation and just tries to load the class. I haven't thought about all implications but I guess this might lead to sync problems as well (for example if the jsp is not compiled on first access etc.) The other solution would be to not use the repository for writing the class files but use the fsclassloader - this one writes classes to the file system - so each node in the cluster uses its own set of classes. Carsten -- Carsten Ziegeler gerald07@example.org From gerald07@example.org Wed Sep 01 14:34:20 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 4728 invoked from network); 1 Sep 2010 14:34:19 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 1 Sep 2010 14:34:19 -0000 Received: (qmail 21446 invoked by uid 500); 1 Sep 2010 14:34:19 -0000 Delivered-To: gerald07@example.org Received: (qmail 20936 invoked by uid 500); 1 Sep 2010 14:34:17 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 20926 invoked by uid 99); 1 Sep 2010 14:34:16 -0000 Received: from Unknown (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 14:34:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail-out1.informatik.tu-muenchen.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 14:33:52 +0000 Received: from [83.161.120.155] (port-92-194-14-177.dynamic.qsc.de [83.161.120.155]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.in.tum.de (Postfix) with ESMTP id 170F7D4A8 for <gerald07@example.org>; Wed, 1 Sep 2010 16:33:32 +0200 (CEST) Message-ID: <gerald07@example.org> Date: Wed, 01 Sep 2010 16:33:30 +0200 From: Jakob Class <gerald07@example.org> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:83.161.120.155) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: gerald07@example.org Subject: server-side form validation Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Checked: Checked by ClamAV on apache.org Hey! I just walked through some sling example apps and I was missing an example to validate posted form data in sling. Sometimes you have to check if required fields have been set or an correct email has been provided. If validation fails the form should be displayed with the posted data again to the user with an error message and the data should not be stored. Validating the data with JS on client side seems not to be very secure because a user may disable the JS checks. How do you realize this kind of validation in "sling-style"? Writing an own POST-script or is there an another way? cheers From gerald07@example.org Tue Sep 07 07:33:57 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 63752 invoked from network); 7 Sep 2010 07:33:56 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 7 Sep 2010 07:33:56 -0000 Received: (qmail 9586 invoked by uid 500); 7 Sep 2010 07:33:56 -0000 Delivered-To: gerald07@example.org Received: (qmail 9400 invoked by uid 500); 7 Sep 2010 07:33:53 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 9392 invoked by uid 99); 7 Sep 2010 07:33:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 07:33:52 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO david.siemens.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 07:33:44 +0000 Received: from mail2.siemens.de (localhost [83.161.120.155]) by david.siemens.de (83.161.120.15560308/8.12.11) with ESMTP id o877XMsO023868 for <gerald07@example.org>; Tue, 7 Sep 2010 09:33:22 +0200 Received: from DEMCHP99ET2MSX.ww902.siemens.net (demchp99et2msx.ww902.siemens.net [83.161.120.155]) by mail2.siemens.de (83.161.120.15560308/8.12.11) with ESMTP id o877XMcU011971 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for <gerald07@example.org>; Tue, 7 Sep 2010 09:33:22 +0200 Received: from DEMCHP99E25MSX.ww902.siemens.net ([83.161.120.155]) by DEMCHP99ET2MSX.ww902.siemens.net ([83.161.120.155]) with mapi; Tue, 7 Sep 2010 09:33:22 +0200 From: "Class, Jakob" <gerald07@example.org> To: "gerald07@example.org" <gerald07@example.org> Date: Tue, 7 Sep 2010 09:33:21 +0200 Subject: Problem with encoded URL Thread-Topic: Problem with encoded URL Thread-Index: ActOXqfwnd0XQlR5RdCQsrUTdE0kHwAACQkg Message-ID: <gerald07@example.org> References: <gerald07@example.org> In-Reply-To: <gerald07@example.org> Accept-Language: en-US, de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, de-DE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi! Can someone tell why http://localhost:8080/jcr:system.json works, but http:= //localhost:8080/jcr%3Asystem.json does not? Do I have to configure somethi= ng to get it work? Regards Jakob= From gerald07@example.org Tue Sep 07 09:05:32 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 90047 invoked from network); 7 Sep 2010 09:05:32 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 7 Sep 2010 09:05:32 -0000 Received: (qmail 52714 invoked by uid 500); 7 Sep 2010 09:05:32 -0000 Delivered-To: gerald07@example.org Received: (qmail 52591 invoked by uid 500); 7 Sep 2010 09:05:29 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 52583 invoked by uid 99); 7 Sep 2010 09:05:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 09:05:28 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gerald07@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO eu3sys201aog103.obsmtp.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 07 Sep 2010 09:05:21 +0000 Received: from source ([83.161.120.155]) by eu3sys201aob103.postini.com ([83.161.120.155]) with SMTP ID gerald07@example.org; Tue, 07 Sep 2010 09:05:01 UTC Received: by vws11 with SMTP id 11so5605781vws.22 for <gerald07@example.org>; Tue, 07 Sep 2010 02:04:59 -0700 (PDT) MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id q12mr115085vcn.128.1283850299387; Tue, 07 Sep 2010 02:04:59 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Tue, 7 Sep 2010 02:04:59 -0700 (PDT) In-Reply-To: <gerald07@example.org> References: <gerald07@example.org> <gerald07@example.org> Date: Tue, 7 Sep 2010 11:04:59 +0200 Message-ID: <gerald07@example.org> Subject: Re: Problem with encoded URL From: Alexander Klimetschek <gerald07@example.org> To: gerald07@example.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Sep 7, 2010 at 09:33, Class, Jakob <gerald07@example.org> wrote: > Hi! > > Can someone tell why http://localhost:8080/jcr:system.json works, but http://localhost:8080/jcr%3Asystem.json does not? Do I have to configure something to get it work? The Sling-style encoding for those prefixes is like /_jcr_system.json. This is because file-system based caches mostly won't work with either ":" or "%" in a file name. You get those encodings when using ResourceResolver.map() to create relative links. I don't know why %3A doesn't work, I think it should. Regards, Alex -- Alexander Klimetschek gerald07@example.org From gerald07@example.org Fri Sep 10 12:52:15 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 70581 invoked from network); 10 Sep 2010 12:52:15 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 10 Sep 2010 12:52:15 -0000 Received: (qmail 27049 invoked by uid 500); 10 Sep 2010 12:52:15 -0000 Delivered-To: gerald07@example.org Received: (qmail 26880 invoked by uid 500); 10 Sep 2010 12:52:11 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 26872 invoked by uid 99); 10 Sep 2010 12:52:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 12:52:10 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO cust-smtp-192.fasthosts.net.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 12:52:02 +0000 Received: from localhost (mail213-171-216-231.livemail.co.uk [83.161.120.155]) by cust-smtp-192.fasthosts.net.uk (Postfix) with ESMTP id 8D25C77008D for <gerald07@example.org>; Fri, 10 Sep 2010 13:51:41 +0100 (BST) MIME-Version: 1.0 X-Mailer: AtMail PHP 5.4 Message-ID: <gerald07@example.org> To: <gerald07@example.org> Reply-To: gerald07@example.org Content-Type: multipart/alternative; boundary="=_c87345ed56233413452a527162936c61" X-Origin: 83.161.120.155 X-Atmail-Account: gerald07@example.org Date: Fri, 10 Sep 2010 13:51:41 +0100 Subject: Sling Base Url From: gerald07@example.org --=_c87345ed56233413452a527162936c61 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Hi Guys, I've been playing around with sling on and off for a few weeks and in development jetty mode my app runs fine, but I want to deploy to tomcat where my sling install no longer resides on root. Is it possible to set a base url of some sort, so if I do import sling.js in my esp it knows where to look for resources? At the moment when I import it it looks to the root :) http://localhost:8080/system/sling/info.sessionInfo.json Sorry, noob question, still trying to get my head around all of this.. Thanks Tom --=_c87345ed56233413452a527162936c61-- From gerald07@example.org Fri Sep 10 13:23:16 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 82705 invoked from network); 10 Sep 2010 13:23:16 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 10 Sep 2010 13:23:16 -0000 Received: (qmail 64581 invoked by uid 500); 10 Sep 2010 13:23:16 -0000 Delivered-To: gerald07@example.org Received: (qmail 64412 invoked by uid 500); 10 Sep 2010 13:23:14 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 64398 invoked by uid 99); 10 Sep 2010 13:23:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 13:23:13 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO georges.telenet-ops.be) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 13:23:06 +0000 Received: from [83.161.120.155] ([83.161.120.155]) by georges.telenet-ops.be with bizsmtp id 51Nj1f00x1Fazni061Nj0b; Fri, 10 Sep 2010 15:22:44 +0200 Message-ID: <gerald07@example.org> Date: Fri, 10 Sep 2010 15:22:43 +0200 From: Jos Snellings <gerald07@example.org> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:83.161.120.155) Gecko/20100826 Thunderbird/3.0.7 MIME-Version: 1.0 To: gerald07@example.org Subject: Re: Sling Base Url References: <gerald07@example.org> In-Reply-To: <gerald07@example.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Tom, Just rename sling webapp to whatever you want the top of your webapp to be. Tomcat will pick that up. your urls will look like: http://localhost:8080/{yourtopname}/{pathtoresource} Jos On 09/10/2010 02:51 PM, gerald07@example.org wrote: > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Hi > Guys, > I've been playing around with sling on and off for a few weeks and > in development jetty mode my app runs fine, but I want to deploy to > tomcat where my sling install no longer resides on root. > Is it possible to set a base url of some sort, so if I do import > sling.js in my esp it knows where to look for resources? > At the moment when I import it it looks to the root :) > http://localhost:8080/system/sling/info.sessionInfo.json > Sorry, noob question, still trying to get my head around all of > this.. > Thanks > Tom > > From gerald07@example.org Fri Sep 10 13:30:08 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 84295 invoked from network); 10 Sep 2010 13:30:08 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 10 Sep 2010 13:30:08 -0000 Received: (qmail 74106 invoked by uid 500); 10 Sep 2010 13:30:08 -0000 Delivered-To: gerald07@example.org Received: (qmail 73947 invoked by uid 500); 10 Sep 2010 13:30:06 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 73929 invoked by uid 99); 10 Sep 2010 13:30:05 -0000 Received: from Unknown (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 13:30:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO cust-smtp-192.fasthosts.net.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 13:29:42 +0000 Received: from localhost (mail213-171-216-231.livemail.co.uk [83.161.120.155]) by cust-smtp-192.fasthosts.net.uk (Postfix) with ESMTP id DF9117700C8 for <gerald07@example.org>; Fri, 10 Sep 2010 14:29:21 +0100 (BST) MIME-Version: 1.0 X-Mailer: AtMail PHP 5.4 Message-ID: <gerald07@example.org> To: <gerald07@example.org> Reply-To: gerald07@example.org Content-Type: multipart/alternative; boundary="=_13283bcf1ce146a57b7e45ad4529e1a0" X-Origin: 83.161.120.155 X-Atmail-Account: gerald07@example.org Date: Fri, 10 Sep 2010 14:29:21 +0100 Subject: Re: Sling Base Url From: gerald07@example.org X-Virus-Checked: Checked by ClamAV on apache.org --=_13283bcf1ce146a57b7e45ad4529e1a0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Thanks for the reply Jos, Thanks the thing (I don't think I'm completely derranged) in my tomcat/webapps folder I have a folder called sling that contained the webapp. So obviously the docroot is http://localhost:8080/sling/ [1] And if I go to http://localhost:8080/sling/system/console/bundles [2] that works. And if I go to http://loclahost:8080/sling/content/tom.html, [3] that also works. But I can either put an absolute path or relative path to the sling.js file: and I can see in firebug that the file is loaded, but then the call to info.sessioninfo.json fails because the url is wrong (missing the /sling/) I know whatever it is, is something dumb, I just dunno what :) Thanks Tom On Fri 10/09/10 2:22 PM , Jos Snellings gerald07@example.org sent: Hi Tom, Just rename sling webapp to whatever you want the top of your webapp to be. Tomcat will pick that up. your urls will look like: http://localhost:8080/{yourtopname}/{pathtoresource} Jos On 09/10/2010 02:51 PM, gerald07@example.org [4] wrote: > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Hi > Guys, > I've been playing around with sling on and off for a few weeks and > in development jetty mode my app runs fine, but I want to deploy to > tomcat where my sling install no longer resides on root. > Is it possible to set a base url of some sort, so if I do import > sling.js in my esp it knows where to look for resources? > At the moment when I import it it looks to the root :) > http://localhost:8080/system/sling/info.sessionInfo.json > Sorry, noob question, still trying to get my head around all of > this.. > Thanks > Tom > > =20 Links: ------ [1] http://localhost:8080/sling/ [2] http://localhost:8080/sling/system/console/bundles [3] http://loclahost:8080/sling/content/tom.html, [4] mailto:gerald07@example.org --=_13283bcf1ce146a57b7e45ad4529e1a0-- From gerald07@example.org Fri Sep 10 13:31:22 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 84934 invoked from network); 10 Sep 2010 13:31:22 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 10 Sep 2010 13:31:22 -0000 Received: (qmail 75346 invoked by uid 500); 10 Sep 2010 13:31:22 -0000 Delivered-To: gerald07@example.org Received: (qmail 75254 invoked by uid 500); 10 Sep 2010 13:31:20 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Delivered-To: moderator for gerald07@example.org Received: (qmail 73594 invoked by uid 99); 10 Sep 2010 13:29:34 -0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org MIME-Version: 1.0 Date: Fri, 10 Sep 2010 09:28:51 -0400 Message-ID: <gerald07@example.org> Subject: [ANN] Apache Sling JCR API 2.1.0, JCR Base 2.1.0, JCR Content Loader 2.1.0 and JCR Jackrabbit Server 2.1.0 Released From: Justin Edelson <gerald07@example.org> To: gerald07@example.org, gerald07@example.org, gerald07@example.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org The Apache Sling team is pleased to announce the release of Apache Sling JCR API 2.1.0, Apache Sling JCR Base 2.1.0, Apache Sling JCR Content Loader 2.1.0 and Apache Sling JCR Jackrabbit Server 2.1.0. Collectively, these modules represent the core OSGi bundles providing support for JCR repositories in Apache Sling. These releases are available from http://sling.apache.org/site/downloads.cgi and Maven: <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.jcr.api</artifactId> <version>2.1.0</version> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.jcr.base</artifactId> <version>2.1.0</version> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.jcr.contentloader</artifactId> <version>2.1.0</version> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.jcr.jackrabbit.server</artifactId> <version>2.1.0</version> </dependency> Release Notes: JCR API 2.1.0: ** Improvement * [SLING-1363] - Add a component which allows bundles to configure the session returned by SlingRepository JCR Base 2.1.0: ** Bug * [SLING-1413] - In Jackrabbit 2.0, Privileges can now be denied for Groups. The ModifyAceServlet and security ContentLoader should allow it as well * [SLING-1457] - AccessControlUtil.replaceAccessControlEntry(..) must preserve the order of the ACEs in the AccessControlList when merging changes into an existing ACE * [SLING-1458] - The jackrabbit.accessmanager bundle needs to provide a mechanism to re-order the ACEs in the ACL * [SLING-1522] - AccessControlUtil looks up an Authorizable where it does not need to. * [SLING-1548] - Move bundle event handling to Loader (from AbstractSlingRepository) ** Improvement * [SLING-1363] - Add a component which allows bundles to configure the session returned by SlingRepository JCR Content Loader 2.1.0: ** Bug * [SLING-1409] - ignoreImportProviders doesn't allow multiple values. * [SLING-1440] - Overwrite rule of bundle initial content cannot be switched back to "false" * [SLING-1457] - AccessControlUtil.replaceAccessControlEntry(..) must preserve the order of the ACEs in the AccessControlList when merging changes into an existing ACE * [SLING-1458] - The jackrabbit.accessmanager bundle needs to provide a mechanism to re-order the ACEs in the ACL * [SLING-1526] - Extra property names of security:principals lost when loaded via contentloader * [SLING-1561] - Allow the Sling Initial ContentLoader to set parent node properties * [SLING-1582] - Content loader doesnt give much feedback when something goes wrong. * [SLING-1583] - Recent changes to content loader swallow "name" property in nodes, which was previously used only for Princiapls, breaks existing code. * [SLING-1589] - DefaultContentImporter service doesn't have a pretty name/description * [SLING-1592] - contentloader doesn't uninstall content from non-default workspace * [SLING-1613] - JSON Content loader converts all arrays to arrays of String. * [SLING-1627] - import operation does not respect :replace=true for properties ** Improvement * [SLING-1411] - Add replaceAccessControlEntry method to AccessControlUtil * [SLING-1448] - Sling-Initial-Content should be able to load content into non-default workspace * [SLING-1532] - contentloader should overwrite file contents, not file nodes ** New Feature * [SLING-1172] - Allow uploading JSON files to create content structures JCR Jackrabbit Server 2.1.0: ** Bug * [SLING-1417] - setting sling.repository.config.file.url to a URL doesn't work * [SLING-1449] - jcr.jackrabbit-server is missing DynamicImport-Package * [SLING-1502] - Concurrency-Problem in AccessManagerFactoryTracker * [SLING-1507] - Unable to change the Jackrabbit RMI port via Karaf config/provisioning mechanism ** Improvement * [SLING-1550] - Embedded JCR Repository metatype refers to CRX * [SLING-1556] - Add optional imports for JDBC packages used by Jackrabbit Core persistence managers * [SLING-1568] - Do not configure Derby PM to shutdown on close * [SLING-1660] - upgrade to Jackrabbit 2.1.1 * [SLING-1664] - support reading the jackrabbit configuration file from the launchpad archive ** Task * [SLING-1531] - Upgrade to Jackrabbit 2.1 Enjoy! -The Sling team From gerald07@example.org Fri Sep 10 13:39:12 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 86483 invoked from network); 10 Sep 2010 13:39:12 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 10 Sep 2010 13:39:12 -0000 Received: (qmail 81332 invoked by uid 500); 10 Sep 2010 13:39:12 -0000 Delivered-To: gerald07@example.org Received: (qmail 81194 invoked by uid 500); 10 Sep 2010 13:39:10 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 81186 invoked by uid 99); 10 Sep 2010 13:39:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 13:39:09 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO cust-smtp-192.fasthosts.net.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 13:39:02 +0000 Received: from localhost (mail213-171-216-231.livemail.co.uk [83.161.120.155]) by cust-smtp-192.fasthosts.net.uk (Postfix) with ESMTP id 4CA367700E1 for <gerald07@example.org>; Fri, 10 Sep 2010 14:38:41 +0100 (BST) MIME-Version: 1.0 X-Mailer: AtMail PHP 5.4 Message-ID: <gerald07@example.org> To: <gerald07@example.org> Reply-To: gerald07@example.org Content-Type: multipart/alternative; boundary="=_478b1fd0adfeb5a3f26b2f5904473bf0" X-Origin: 83.161.120.155 X-Atmail-Account: gerald07@example.org Date: Fri, 10 Sep 2010 14:38:41 +0100 Subject: Re: Sling Base Url From: gerald07@example.org --=_478b1fd0adfeb5a3f26b2f5904473bf0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; } Oh it also does the same with hyperlinks etc :) On Fri 10/09/10 2:29 PM , gerald07@example.org sent: BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Thanks for the reply Jos, Thanks the thing (I don't think I'm completely derranged) in my tomcat/webapps folder I have a folder called sling that contained the webapp. So obviously the docroot is http://localhost:8080/sling/ [1] And if I go to http://localhost:8080/sling/system/console/bundles [2] that works. And if I go to http://loclahost:8080/sling/content/tom.html, [3] that also works. But I can either put an absolute path or relative path to the sling.js file: and I can see in firebug that the file is loaded, but then the call to info.sessioninfo.json fails because the url is wrong (missing the /sling/) I know whatever it is, is something dumb, I just dunno what :) Thanks Tom On Fri 10/09/10 2:22 PM , Jos Snellings gerald07@example.org [1] sent: Hi Tom, Just rename sling webapp to whatever you want the top of your webapp to be. Tomcat will pick that up. your urls will look like: http://localhost:8080/{yourtopname}/{pathtoresource} Jos On 09/10/2010 02:51 PM, gerald07@example.org [2] [4] wrote: > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Hi > Guys, > I've been playing around with sling on and off for a few weeks and > in development jetty mode my app runs fine, but I want to deploy to > tomcat where my sling install no longer resides on root. > Is it possible to set a base url of some sort, so if I do import > sling.js in my esp it knows where to look for resources? > At the moment when I import it it looks to the root :) > http://localhost:8080/system/sling/info.sessionInfo.json > Sorry, noob question, still trying to get my head around all of > this.. > Thanks > Tom > > =20 Links: ------ [1] http://localhost:8080/sling/ [2] http://localhost:8080/sling/system/console/bundles [3] http://loclahost:8080/sling/content/tom.html, [4] gerald07@example.org [3] Links: ------ [1] mailto:gerald07@example.org [2] mailto:gerald07@example.org [3] mailto:gerald07@example.org --=_478b1fd0adfeb5a3f26b2f5904473bf0-- From gerald07@example.org Fri Sep 10 13:44:42 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 87627 invoked from network); 10 Sep 2010 13:44:42 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 10 Sep 2010 13:44:42 -0000 Received: (qmail 90340 invoked by uid 500); 10 Sep 2010 13:44:42 -0000 Delivered-To: gerald07@example.org Received: (qmail 90240 invoked by uid 500); 10 Sep 2010 13:44:41 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 90231 invoked by uid 99); 10 Sep 2010 13:44:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 13:44:40 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gerald07@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-qw0-f50.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 13:44:34 +0000 Received: by qwb7 with SMTP id 7so388174qwb.9 for <gerald07@example.org>; Fri, 10 Sep 2010 06:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=h/9jE7ZIhD6/n3724Vr4s5p+Suyp0hDIn0+VEoVONpY=; b=mV78L1p3xvdc6tosNsm0hjOVtMU31vatXil/0VUWia4sKkqQ1f0wJfcbZLWDhhUUyf RSGINRmaWzg9gxRIq9Iv0BjjpS1zzDAfZG5I+GyZAVjckQ0JoKv2B1+IEEifXk3j+whE rzMCUt/yhqSS2NVP9/ZDAxTNEDMdeGQ/0L5bk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=LDrwqJQVNEKtIB0A45s6jDGPcyQNvNYjhiYiQGh/q78Krkmob0ZavD5chAVijNjebS s30TaH+5lgMoi7nJAD7dowSngufPwkSD0tp0Ou0TfTlqDgYcH3NGuak74+bk5cCOlzL5 WPaEtw0f2XnytErUQjXmKUcvx5JDtQBIFuAx4= Received: by 83.161.120.155 with SMTP id h23mr390576qaj.219.1284126254103; Fri, 10 Sep 2010 06:44:14 -0700 (PDT) Received: from Justin-Edelsons-iMac.local (ool-44c6554e.dyn.optonline.net [83.161.120.155]) by mx.google.com with ESMTPS id t1sm2668462qcs.45.283.161.120.155.44.12 (version=SSLv3 cipher=RC4-MD5); Fri, 10 Sep 2010 06:44:13 -0700 (PDT) Message-ID: <gerald07@example.org> Date: Fri, 10 Sep 2010 09:44:11 -0400 From: Justin Edelson <gerald07@example.org> Reply-To: gerald07@example.org User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:83.161.120.155) Gecko/20100825 Thunderbird/3.1.3 MIME-Version: 1.0 To: gerald07@example.org Subject: Re: Sling Base Url References: <gerald07@example.org> In-Reply-To: <gerald07@example.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit There's some code in sling.js that tries to set up the base url. Perhaps that's buggy. Since you have this set up and Firebug open, can you set a breakpoint on line 413 of sling.js and see if you can see the issue? On line 415, Sling.baseurl should be set to "/sling" whereas it sounds like it's being set to "" Justin On 9/10/10 9:29 AM, gerald07@example.org wrote: > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > }Thanks for the reply Jos, > Thanks the thing (I don't think I'm completely derranged) > in my tomcat/webapps folder I have a folder called sling that > contained the webapp. > So obviously the docroot is http://localhost:8080/sling/ [1] > And if I go to http://localhost:8080/sling/system/console/bundles > [2] that works. > And if I go to http://loclahost:8080/sling/content/tom.html, [3] > that also works. > But I can either put an absolute path or relative path to the > sling.js file: > and I can see in firebug that the file is loaded, but then the call > to info.sessioninfo.json fails because the url is wrong (missing the > /sling/) > I know whatever it is, is something dumb, I just dunno what :) > Thanks > Tom > On Fri 10/09/10 2:22 PM , Jos Snellings gerald07@example.org > sent: > Hi Tom, > Just rename sling webapp to whatever you want the top of your webapp > to be. > Tomcat will pick that up. > your urls will look like: > http://localhost:8080/{yourtopname}/{pathtoresource} > Jos > On 09/10/2010 02:51 PM, gerald07@example.org [4] wrote: > > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > }Hi > > Guys, > > I've been playing around with sling on and off for a few weeks > and > > in development jetty mode my app runs fine, but I want to deploy > to > > tomcat where my sling install no longer resides on root. > > Is it possible to set a base url of some sort, so if I do import > > sling.js in my esp it knows where to look for resources? > > At the moment when I import it it looks to the root :) > > http://localhost:8080/system/sling/info.sessionInfo.json > > Sorry, noob question, still trying to get my head around all of > > this.. > > Thanks > > Tom > > > > > > > Links: > ------ > [1] http://localhost:8080/sling/ > [2] http://localhost:8080/sling/system/console/bundles > [3] http://loclahost:8080/sling/content/tom.html, > [4] mailto:gerald07@example.org > From gerald07@example.org Fri Sep 10 13:58:10 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 93025 invoked from network); 10 Sep 2010 13:58:10 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 10 Sep 2010 13:58:10 -0000 Received: (qmail 31802 invoked by uid 500); 10 Sep 2010 13:58:09 -0000 Delivered-To: gerald07@example.org Received: (qmail 31630 invoked by uid 500); 10 Sep 2010 13:58:07 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 31622 invoked by uid 99); 10 Sep 2010 13:58:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 13:58:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO cust-smtp-192.fasthosts.net.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 13:57:58 +0000 Received: from localhost (mail213-171-216-231.livemail.co.uk [83.161.120.155]) by cust-smtp-192.fasthosts.net.uk (Postfix) with ESMTP id C9A2D7700F2 for <gerald07@example.org>; Fri, 10 Sep 2010 14:57:37 +0100 (BST) MIME-Version: 1.0 X-Mailer: AtMail PHP 5.4 Message-ID: <gerald07@example.org> To: <gerald07@example.org> Reply-To: gerald07@example.org Content-Type: multipart/alternative; boundary="=_c61697b6304991f1169bd0449f3df2ce" X-Origin: 83.161.120.155 X-Atmail-Account: gerald07@example.org Date: Fri, 10 Sep 2010 14:57:37 +0100 Subject: Re: Sling Base Url From: gerald07@example.org X-Virus-Checked: Checked by ClamAV on apache.org --=_c61697b6304991f1169bd0449f3df2ce Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Ah thanks for the pointer Justin After some quick tinerking in the FB Console I noticed that script.substring(0,script.length - ("/" + Sling.NAME_OF_THIS_FILE.length));=20 doens't really compute because its adding a / to the integer thats produced by the length command, not concatenating the strings and then working out the length. Tom On Fri 10/09/10 2:44 PM , Justin Edelson gerald07@example.org sent: There's some code in sling.js that tries to set up the base url. Perhaps that's buggy. Since you have this set up and Firebug open, can you set a breakpoint on line 413 of sling.js and see if you can see the issue? On line 415, Sling.baseurl should be set to "/sling" whereas it sounds like it's being set to "" Justin On 9/10/10 9:29 AM, gerald07@example.org [1] wrote: > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > }Thanks for the reply Jos, > Thanks the thing (I don't think I'm completely derranged) > in my tomcat/webapps folder I have a folder called sling that > contained the webapp. > So obviously the docroot is http://localhost:8080/sling/ [1] > And if I go to http://localhost:8080/sling/system/console/bundles > [2] that works. > And if I go to http://loclahost:8080/sling/content/tom.html, [3] > that also works. > But I can either put an absolute path or relative path to the > sling.js file: > and I can see in firebug that the file is loaded, but then the call > to info.sessioninfo.json fails because the url is wrong (missing the > /sling/) > I know whatever it is, is something dumb, I just dunno what :) > Thanks > Tom > On Fri 10/09/10 2:22 PM , Jos Snellings gerald07@example.org [2] > sent: > Hi Tom, > Just rename sling webapp to whatever you want the top of your webapp > to be. > Tomcat will pick that up. > your urls will look like: > http://localhost:8080/{yourtopname}/{pathtoresource} > Jos > On 09/10/2010 02:51 PM, gerald07@example.org [3] [4] wrote: > > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > }Hi > > Guys, > > I've been playing around with sling on and off for a few weeks > and > > in development jetty mode my app runs fine, but I want to deploy > to > > tomcat where my sling install no longer resides on root. > > Is it possible to set a base url of some sort, so if I do import > > sling.js in my esp it knows where to look for resources? > > At the moment when I import it it looks to the root :) > > http://localhost:8080/system/sling/info.sessionInfo.json > > Sorry, noob question, still trying to get my head around all of > > this.. > > Thanks > > Tom > > > > =20 >=20 >=20 > Links: > ------ > [1] http://localhost:8080/sling/ > [2] http://localhost:8080/sling/system/console/bundles > [3] http://loclahost:8080/sling/content/tom.html, > [4] gerald07@example.org [4] >=20 Links: ------ [1] mailto:gerald07@example.org [2] mailto:gerald07@example.org [3] mailto:gerald07@example.org [4] mailto:gerald07@example.org --=_c61697b6304991f1169bd0449f3df2ce-- From gerald07@example.org Fri Sep 10 14:04:43 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 94744 invoked from network); 10 Sep 2010 14:04:43 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 10 Sep 2010 14:04:43 -0000 Received: (qmail 41883 invoked by uid 500); 10 Sep 2010 14:04:43 -0000 Delivered-To: gerald07@example.org Received: (qmail 41762 invoked by uid 500); 10 Sep 2010 14:04:40 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 41754 invoked by uid 99); 10 Sep 2010 14:04:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 14:04:39 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO cust-smtp-192.fasthosts.net.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 14:04:34 +0000 Received: from localhost (mail213-171-216-231.livemail.co.uk [83.161.120.155]) by cust-smtp-192.fasthosts.net.uk (Postfix) with ESMTP id 4A0F97700CE for <gerald07@example.org>; Fri, 10 Sep 2010 15:04:12 +0100 (BST) MIME-Version: 1.0 X-Mailer: AtMail PHP 5.4 Message-ID: <gerald07@example.org> To: <gerald07@example.org> Reply-To: gerald07@example.org Content-Type: multipart/alternative; boundary="=_d48d9950848c3a5de234f16dd281326e" X-Origin: 83.161.120.155 X-Atmail-Account: gerald07@example.org Date: Fri, 10 Sep 2010 15:04:12 +0100 Subject: Re: Sling Base Url From: gerald07@example.org --=_d48d9950848c3a5de234f16dd281326e Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Thanks Justin, I've fixed this locally for now, should I file it as a jira? Thanks Tom On Fri 10/09/10 2:44 PM , Justin Edelson gerald07@example.org sent: There's some code in sling.js that tries to set up the base url. Perhaps that's buggy. Since you have this set up and Firebug open, can you set a breakpoint on line 413 of sling.js and see if you can see the issue? On line 415, Sling.baseurl should be set to "/sling" whereas it sounds like it's being set to "" Justin On 9/10/10 9:29 AM, gerald07@example.org [1] wrote: > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > }Thanks for the reply Jos, > Thanks the thing (I don't think I'm completely derranged) > in my tomcat/webapps folder I have a folder called sling that > contained the webapp. > So obviously the docroot is http://localhost:8080/sling/ [1] > And if I go to http://localhost:8080/sling/system/console/bundles > [2] that works. > And if I go to http://loclahost:8080/sling/content/tom.html, [3] > that also works. > But I can either put an absolute path or relative path to the > sling.js file: > and I can see in firebug that the file is loaded, but then the call > to info.sessioninfo.json fails because the url is wrong (missing the > /sling/) > I know whatever it is, is something dumb, I just dunno what :) > Thanks > Tom > On Fri 10/09/10 2:22 PM , Jos Snellings gerald07@example.org [2] > sent: > Hi Tom, > Just rename sling webapp to whatever you want the top of your webapp > to be. > Tomcat will pick that up. > your urls will look like: > http://localhost:8080/{yourtopname}/{pathtoresource} > Jos > On 09/10/2010 02:51 PM, gerald07@example.org [3] [4] wrote: > > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > }Hi > > Guys, > > I've been playing around with sling on and off for a few weeks > and > > in development jetty mode my app runs fine, but I want to deploy > to > > tomcat where my sling install no longer resides on root. > > Is it possible to set a base url of some sort, so if I do import > > sling.js in my esp it knows where to look for resources? > > At the moment when I import it it looks to the root :) > > http://localhost:8080/system/sling/info.sessionInfo.json > > Sorry, noob question, still trying to get my head around all of > > this.. > > Thanks > > Tom > > > > =20 >=20 >=20 > Links: > ------ > [1] http://localhost:8080/sling/ > [2] http://localhost:8080/sling/system/console/bundles > [3] http://loclahost:8080/sling/content/tom.html, > [4] gerald07@example.org [4] >=20 Links: ------ [1] mailto:gerald07@example.org [2] mailto:gerald07@example.org [3] mailto:gerald07@example.org [4] mailto:gerald07@example.org --=_d48d9950848c3a5de234f16dd281326e-- From gerald07@example.org Fri Sep 10 14:06:48 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 99474 invoked from network); 10 Sep 2010 14:06:48 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 10 Sep 2010 14:06:48 -0000 Received: (qmail 46074 invoked by uid 500); 10 Sep 2010 14:06:48 -0000 Delivered-To: gerald07@example.org Received: (qmail 45911 invoked by uid 500); 10 Sep 2010 14:06:46 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 45903 invoked by uid 99); 10 Sep 2010 14:06:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 14:06:45 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gerald07@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-fx0-f50.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 14:06:38 +0000 Received: by fxm20 with SMTP id 20so1615132fxm.9 for <gerald07@example.org>; Fri, 10 Sep 2010 07:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=V6wog/TvV30UMOeYUjWwqGzIbT4fL5a+onUV1xaC37s=; b=X1un0fPkGqysLJw24NU1P74OjIHojbVsFICB4G02BXneS88F1UJDNr4tQBffudQ2Q+ aqVB70pHRZabv6ENxDUUBaMv2uPDqqEOEGOYgz6qHthpnMVbemdp+IVMnBrQhqEr6x8j CNAyZ3+whm3Fvcposutn1XxS9sMTqfEtds/8g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=JxayhdcjbllIOQ6WOVtkBdt9gJ6wz15m5Hqh7oCAshL75Bq0bwDHOEMYfVk84o8g6X gYsb2ulU0bzFDNSBx1KSi9/cx+oPRN1UoB6UGdWsf9WYJWEiQHfdYJRXnPZcaNuOMIOc 2OqwyFGOpLxh9M7pQ9aeke7cl5mC+A1FfiLHU= Received: by 83.161.120.155 with SMTP id b3mr482879fas.50.1284127577413; Fri, 10 Sep 2010 07:06:17 -0700 (PDT) Received: from Justin-Edelsons-iMac.local (ool-44c6554e.dyn.optonline.net [83.161.120.155]) by mx.google.com with ESMTPS id j14sm1331161faa.47.283.161.120.155.06.15 (version=SSLv3 cipher=RC4-MD5); Fri, 10 Sep 2010 07:06:16 -0700 (PDT) Message-ID: <gerald07@example.org> Date: Fri, 10 Sep 2010 10:06:13 -0400 From: Justin Edelson <gerald07@example.org> Reply-To: gerald07@example.org User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:83.161.120.155) Gecko/20100825 Thunderbird/3.1.3 MIME-Version: 1.0 To: gerald07@example.org Subject: Re: Sling Base Url References: <gerald07@example.org> In-Reply-To: <gerald07@example.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Yes. Please create a JIRA. I've gotta ask... what's up with your email client putting CSS in a plain text email? Justin On 9/10/10 10:04 AM, gerald07@example.org wrote: > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > }Thanks Justin, I've fixed this locally for now, should I file it as > a jira? > Thanks > Tom > On Fri 10/09/10 2:44 PM , Justin Edelson gerald07@example.org > sent: > There's some code in sling.js that tries to set up the base url. > Perhaps > that's buggy. Since you have this set up and Firebug open, can you > set a > breakpoint on line 413 of sling.js and see if you can see the issue? > On line 415, Sling.baseurl should be set to "/sling" whereas it > sounds > like it's being set to "" > Justin > On 9/10/10 9:29 AM, gerald07@example.org [1] wrote: > > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > > }Thanks for the reply Jos, > > Thanks the thing (I don't think I'm completely derranged) > > in my tomcat/webapps folder I have a folder called sling that > > contained the webapp. > > So obviously the docroot is http://localhost:8080/sling/ [1] > > And if I go to http://localhost:8080/sling/system/console/bundles > > [2] that works. > > And if I go to http://loclahost:8080/sling/content/tom.html, [3] > > that also works. > > But I can either put an absolute path or relative path to the > > sling.js file: > > and I can see in firebug that the file is loaded, but then the > call > > to info.sessioninfo.json fails because the url is wrong (missing > the > > /sling/) > > I know whatever it is, is something dumb, I just dunno what :) > > Thanks > > Tom > > On Fri 10/09/10 2:22 PM , Jos Snellings gerald07@example.org > [2] > > sent: > > Hi Tom, > > Just rename sling webapp to whatever you want the top of your > webapp > > to be. > > Tomcat will pick that up. > > your urls will look like: > > http://localhost:8080/{yourtopname}/{pathtoresource} > > Jos > > On 09/10/2010 02:51 PM, gerald07@example.org [3] [4] wrote: > > > BODY { font-family:Arial, Helvetica, > sans-serif;font-size:12px; > > }Hi > > > Guys, > > > I've been playing around with sling on and off for a few > weeks > > and > > > in development jetty mode my app runs fine, but I want to > deploy > > to > > > tomcat where my sling install no longer resides on root. > > > Is it possible to set a base url of some sort, so if I do > import > > > sling.js in my esp it knows where to look for resources? > > > At the moment when I import it it looks to the root :) > > > http://localhost:8080/system/sling/info.sessionInfo.json > > > Sorry, noob question, still trying to get my head around all > of > > > this.. > > > Thanks > > > Tom > > > > > > > > > > > > Links: > > ------ > > [1] http://localhost:8080/sling/ > > [2] http://localhost:8080/sling/system/console/bundles > > [3] http://loclahost:8080/sling/content/tom.html, > > [4] gerald07@example.org [4] > > > > > Links: > ------ > [1] mailto:gerald07@example.org > [2] mailto:gerald07@example.org > [3] mailto:gerald07@example.org > [4] mailto:gerald07@example.org > From gerald07@example.org Fri Sep 10 14:13:07 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 2061 invoked from network); 10 Sep 2010 14:13:07 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 10 Sep 2010 14:13:07 -0000 Received: (qmail 52464 invoked by uid 500); 10 Sep 2010 14:13:07 -0000 Delivered-To: gerald07@example.org Received: (qmail 52320 invoked by uid 500); 10 Sep 2010 14:13:05 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 52312 invoked by uid 99); 10 Sep 2010 14:13:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 14:13:04 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO cust-smtp-193.fasthosts.net.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 14:12:56 +0000 Received: from localhost (mail213-171-216-231.livemail.co.uk [83.161.120.155]) by cust-smtp-193.fasthosts.net.uk (Postfix) with ESMTP id 5D98A141009A for <gerald07@example.org>; Fri, 10 Sep 2010 15:12:36 +0100 (BST) MIME-Version: 1.0 X-Mailer: AtMail PHP 5.4 Message-ID: <gerald07@example.org> To: <gerald07@example.org> Reply-To: gerald07@example.org Content-Type: multipart/alternative; boundary="=_e3c181ae7acbbee679a13cb77e920531" X-Origin: 83.161.120.155 X-Atmail-Account: gerald07@example.org Date: Fri, 10 Sep 2010 15:12:36 +0100 Subject: Re: Sling Base Url From: gerald07@example.org X-Virus-Checked: Checked by ClamAV on apache.org --=_e3c181ae7acbbee679a13cb77e920531 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px;Don't ask, crappy webmail cause I'm stuck behind a corporate firewall. Thanks for your help Justin and Jos, much appreciated. On Fri 10/09/10 3:06 PM , Justin Edelson gerald07@example.org sent: Yes. Please create a JIRA. I've gotta ask... what's up with your email client putting CSS in a plain text email? Justin On 9/10/10 10:04 AM, gerald07@example.org [1] wrote: > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > }Thanks Justin, I've fixed this locally for now, should I file it as > a jira? > Thanks > Tom > On Fri 10/09/10 2:44 PM , Justin Edelson gerald07@example.org [2] > sent: > There's some code in sling.js that tries to set up the base url. > Perhaps > that's buggy. Since you have this set up and Firebug open, can you > set a > breakpoint on line 413 of sling.js and see if you can see the issue? > On line 415, Sling.baseurl should be set to "/sling" whereas it > sounds > like it's being set to "" > Justin > On 9/10/10 9:29 AM, gerald07@example.org [3] [1] wrote: > > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > > }Thanks for the reply Jos, > > Thanks the thing (I don't think I'm completely derranged) > > in my tomcat/webapps folder I have a folder called sling that > > contained the webapp. > > So obviously the docroot is http://localhost:8080/sling/ [1] > > And if I go to http://localhost:8080/sling/system/console/bundles > > [2] that works. > > And if I go to http://loclahost:8080/sling/content/tom.html, [3] > > that also works. > > But I can either put an absolute path or relative path to the > > sling.js file: > > and I can see in firebug that the file is loaded, but then the > call > > to info.sessioninfo.json fails because the url is wrong (missing > the > > /sling/) > > I know whatever it is, is something dumb, I just dunno what :) > > Thanks > > Tom > > On Fri 10/09/10 2:22 PM , Jos Snellings gerald07@example.org [4] > [2] > > sent: > > Hi Tom, > > Just rename sling webapp to whatever you want the top of your > webapp > > to be. > > Tomcat will pick that up. > > your urls will look like: > > http://localhost:8080/{yourtopname}/{pathtoresource} > > Jos > > On 09/10/2010 02:51 PM, gerald07@example.org [5] [3] [4] wrote: > > > BODY { font-family:Arial, Helvetica, > sans-serif;font-size:12px; > > }Hi > > > Guys, > > > I've been playing around with sling on and off for a few > weeks > > and > > > in development jetty mode my app runs fine, but I want to > deploy > > to > > > tomcat where my sling install no longer resides on root. > > > Is it possible to set a base url of some sort, so if I do > import > > > sling.js in my esp it knows where to look for resources? > > > At the moment when I import it it looks to the root :) > > > http://localhost:8080/system/sling/info.sessionInfo.json > > > Sorry, noob question, still trying to get my head around all > of > > > this.. > > > Thanks > > > Tom > > > > > > =20 > >=20 > >=20 > > Links: > > ------ > > [1] http://localhost:8080/sling/ > > [2] http://localhost:8080/sling/system/console/bundles > > [3] http://loclahost:8080/sling/content/tom.html, > > [4] gerald07@example.org [6] [4] > >=20 >=20 >=20 > Links: > ------ > [1] gerald07@example.org [7] > [2] gerald07@example.org [8] > [3] gerald07@example.org [9] > [4] gerald07@example.org [10] >=20 Links: ------ [1] mailto:gerald07@example.org [2] mailto:gerald07@example.org [3] mailto:gerald07@example.org [4] mailto:gerald07@example.org [5] mailto:gerald07@example.org [6] mailto:gerald07@example.org [7] mailto:gerald07@example.org [8] mailto:gerald07@example.org [9] mailto:gerald07@example.org [10] mailto:gerald07@example.org --=_e3c181ae7acbbee679a13cb77e920531-- From gerald07@example.org Fri Sep 10 19:41:03 2010 Return-Path: <gerald07@example.org> Delivered-To: gerald07@example.org Received: (qmail 99016 invoked from network); 10 Sep 2010 19:41:03 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 10 Sep 2010 19:41:03 -0000 Received: (qmail 30898 invoked by uid 500); 10 Sep 2010 19:41:03 -0000 Delivered-To: gerald07@example.org Received: (qmail 30839 invoked by uid 500); 10 Sep 2010 19:41:02 -0000 Mailing-List: contact gerald07@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:gerald07@example.org> List-Unsubscribe: <mailto:gerald07@example.org> List-Post: <mailto:gerald07@example.org> List-Id: <users.sling.apache.org> Reply-To: gerald07@example.org Delivered-To: mailing list gerald07@example.org Received: (qmail 30830 invoked by uid 99); 10 Sep 2010 19:41:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 19:41:02 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO moutng.kundenserver.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 19:40:56 +0000 Received: from [83.161.120.155] (81-178-252-153.dsl.pipex.com [83.161.120.155]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MKLPq-1OuhxU0kYI-001Kuc; Fri, 10 Sep 2010 21:40:34 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: Sling Base Url From: Tom Barber <gerald07@example.org> In-Reply-To: <gerald07@example.org> Date: Fri, 10 Sep 2010 20:40:33 +0100 Content-Transfer-Encoding: 7bit Message-Id: <gerald07@example.org> References: <gerald07@example.org> To: gerald07@example.org X-Mailer: Apple Mail (2.1081) X-Provags-ID: V02:K0:A63YBd6TjosnlaAHn+nN4hNl/xV5wykU+BkhwEexKOA 41CEY/W2ekgs3imxFMGkxy0yt9eSJLgLrgIWc4KrsEClwE0zLJ EI5tH/2ioGt6eMemzfb/2OWTBDaOkoJWoayC5QdOKZzMiJFbaC tLBmIsREPSHNllPGs8vfI1yj7E1SRa62eR9zZSH0xgkN1i6i6Y yYLFcix3XapF+HC4tlEpP5spO1Adf0E+V7weh4l3To= Hey Justin, You want to give me a heads up on whatelse might not work? ;) Tom On 10 Sep 2010, at 15:12, gerald07@example.org wrote: > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px;Don't > ask, crappy webmail cause I'm stuck behind a corporate firewall. > Thanks for your help Justin and Jos, much appreciated. > On Fri 10/09/10 3:06 PM , Justin Edelson gerald07@example.org > sent: > Yes. Please create a JIRA. > I've gotta ask... what's up with your email client putting CSS in a > plain text email? > Justin > On 9/10/10 10:04 AM, gerald07@example.org [1] wrote: >> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; >> }Thanks Justin, I've fixed this locally for now, should I file it > as >> a jira? >> Thanks >> Tom >> On Fri 10/09/10 2:44 PM , Justin Edelson gerald07@example.org > [2] >> sent: >> There's some code in sling.js that tries to set up the base url. >> Perhaps >> that's buggy. Since you have this set up and Firebug open, can > you >> set a >> breakpoint on line 413 of sling.js and see if you can see the > issue? >> On line 415, Sling.baseurl should be set to "/sling" whereas it >> sounds >> like it's being set to "" >> Justin >> On 9/10/10 9:29 AM, gerald07@example.org [3] [1] wrote: >>> BODY { font-family:Arial, Helvetica, > sans-serif;font-size:12px; >>> }Thanks for the reply Jos, >>> Thanks the thing (I don't think I'm completely derranged) >>> in my tomcat/webapps folder I have a folder called sling that >>> contained the webapp. >>> So obviously the docroot is http://localhost:8080/sling/ [1] >>> And if I go to > http://localhost:8080/sling/system/console/bundles >>> [2] that works. >>> And if I go to http://loclahost:8080/sling/content/tom.html, > [3] >>> that also works. >>> But I can either put an absolute path or relative path to the >>> sling.js file: >>> and I can see in firebug that the file is loaded, but then the >> call >>> to info.sessioninfo.json fails because the url is wrong > (missing >> the >>> /sling/) >>> I know whatever it is, is
{'source': 'Apache Software Foundation Public Mail Archives'}