Re: Dependency Management

2009-01-05 Thread Carsten Ziegeler
Felix Meschberger wrote: #1 each module must fully describe its dependencies Some dependencies should probably be considered globally valid and will still be available through dependency management: JCR API (1.0) Servlet API (2.4) OSGi APIs (should generally be R4 based) +1 #2

Re: A question about sling launchpad

2009-01-05 Thread Bertrand Delacretaz
Hi, On Mon, Jan 5, 2009 at 3:04 PM, yanshaozhiGmail yanshaozhi...@gmail.com wrote: ...2009-01-05 21:48:43.616:/:WARN: ERROR: Error starting slinginstall:org.apache.sling.jcr.ocm-2.0.3-i ncubator-SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved package in bundle 31: package;

[jira] Closed: (SLING-808) Increase version of parent pom to avoid problems with snapshot builds

2009-01-05 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler closed SLING-808. -- Resolution: Fixed Updated in revision 731526 Increase version of parent pom to avoid problems

A question about sling launchpad

2009-01-05 Thread yanshaozhiGmail
HI: When I built run the launchapd webapp with mvn jetty:run (the newest sling), after the server started I encounter with a question as follow: (I want to know it's ling's bug or not ,how can I do it?) 2009-01-05 21:48:43.616:/:WARN: ERROR: Error starting

Rendering custom 404 pages

2009-01-05 Thread Scott Taylor
In my sling repository I've defined a /apps/foo/bar/html.esp which decorates all my web pages with the standard layout used through out the site. Eg. html head title%= currentNode.title %/title !-- css imports, favicon etc. -- /head body h1%= currentNode.title %/h1

Esp files and context root of a web application

2009-01-05 Thread Scott Taylor
I want to create a html.esp file that contains links to stylesheets, however I would like to create the links so that they take into consideration the context root of the web application. In jsp pages I would use something like this c:url value='/css/styling.css'/. Is there something

Re: Esp files and context root of a web application

2009-01-05 Thread Alexander Klimetschek
On Mon, Jan 5, 2009 at 7:58 PM, Scott Taylor st-sl...@taylorit.com wrote: I believe I just have to ensure all links to my own web application are preceded with %=request.contextPath%. Eg. a href=%=request.contextPath%/mynodemynode/a Right. Regards, Alex -- Alexander Klimetschek

Re: Can't use some JCR classes in Sling

2009-01-05 Thread Tobias Bocanegra
hi josh, only the packages exported by the bundles or the ones specified as bootclasspath (via sling.properties config) are visible by other bundles and jsps. in this case it's a bit difficult, since the crx-explorer stuff is not available as bundle and i doubt that it will work. why would you

Re: Can't use some JCR classes in Sling

2009-01-05 Thread Joshua Oransky
Toby, I'm trying to create a script that can replicate a node, so I need access to these classes. I'm using the content.jsp code from the CRX webapp, but I want the code to reside INSIDE my app, so that I can package it up and send it to the servers I need, since I wont have access to

Re: Dependency Management

2009-01-05 Thread Felix Meschberger
Hi, Bertrand Delacretaz schrieb: Hi Felix, I agree with your proposals, with one slight concern: On Mon, Jan 5, 2009 at 8:45 AM, Felix Meschberger fmesc...@gmail.com wrote: ...#2 each dependency version must be to the lowest possible number This ensures that Import-Package version

Re: Can't use some JCR classes in Sling

2009-01-05 Thread Joshua Oransky
Toby, By the way, this webapp *IS* in CRX. I just can't have my users using the CRX content browser. I need them to be able to activate content from within the app I built. -Josh On Jan 5, 2009, at 11:58 AM, Tobias Bocanegra wrote: hi josh, only the packages exported by the

Re: Creating an HTML response for URLS with no extensions

2009-01-05 Thread Scott Taylor
Felix Meschberger wrote: Hi Scott, Scott Taylor schrieb: I've just started playing around with Sling, and I would like to try to move one of my web applications over to Sling. The application is just a set of HTML pages, but it uses URLs without extensions. So instead of urls like

[jira] Closed: (SLING-799) Job Folder is not ordered and results in unordered queue

2009-01-05 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler closed SLING-799. -- Resolution: Fixed Fix Version/s: Extensions Event 2.0.4 Fixed in revision 731509 by

[jira] Reopened: (SLING-760) Filter characters in http error messages

2009-01-05 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bertrand Delacretaz reopened SLING-760: --- Filter characters in http error messages

[newbie] WebDav - Content Negociation

2009-01-05 Thread JY
I want to make a simple wiki where pages can be edited by WebDav. Several formats can be available. For example: The page http://example.com/main can be modified by one of this file : / |- main.html (for modifications with an HTML Editor like DreamWeaver) |- main.doc (for modifications with

Re: Dependency Management

2009-01-05 Thread Bertrand Delacretaz
Hi Felix, On Mon, Jan 5, 2009 at 11:40 AM, Felix Meschberger fmesc...@gmail.com wrote: ...There may be some shades of gray, though: If the 1.1 versions is really that buggy, the bundle itself may of course request version 1.1.4, esp. if the operation of the bundle cannot be guaranteed with any

[jira] Resolved: (SLING-760) Filter characters in http error messages

2009-01-05 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bertrand Delacretaz resolved SLING-760. --- Resolution: Fixed Fix Version/s: (was: Engine 2.0.4)

Re: direct script execution

2009-01-05 Thread Felix Meschberger
Hi Torgeir, Torgeir Veimo schrieb: Is it possible to request a script directly, eg. use a request such as /apps/notes/html.esp, and make that script execute instead of being returned as plaintext? This is not currently possible (though the implementation would be rather simple). The problem

Re: A question about sling launchpad

2009-01-05 Thread Felix Meschberger
Hi Yan, As Betrand said, this is actually a (known) bug in the definition of the OCM bundle of Sling. If you don't need/use OCM (Object Content Mapping), you can safely ignore this error. Anyway, I know of this problem and will fix it later this week. Regards Felix yanshaozhiGmail schrieb:

Re: Rendering custom 404 pages

2009-01-05 Thread Felix Meschberger
Hi Scott, Scott Taylor schrieb: In my sling repository I've defined a /apps/foo/bar/html.esp which decorates all my web pages with the standard layout used through out the site. Eg. html head title%= currentNode.title %/title !-- css imports, favicon etc. -- /head body

Re: Creating an HTML response for URLS with no extensions

2009-01-05 Thread Felix Meschberger
Hi Scott, Scott Taylor schrieb: Felix Meschberger wrote: Hi Scott, Scott Taylor schrieb: I've just started playing around with Sling, and I would like to try to move one of my web applications over to Sling. The application is just a set of HTML pages, but it uses URLs without

can't locate pax-web-service

2009-01-05 Thread Jason Pratt
hello - mvn can't seem to find pax-web-service anywhere. any ideas? jason

JSP vs GWT

2009-01-05 Thread Jason Pratt
is it possible to use a GWT frontend for sling?

Re: can't locate pax-web-service

2009-01-05 Thread Felix Meschberger
Hi Jason, Jason Pratt schrieb: hello - mvn can't seem to find pax-web-service anywhere. any ideas? This artifact is not available from the central maven repository but from the OPS4J repository. The Sling launchpad/app module is set up to find the artifact correctly. If you need it in your

Re: JSP vs GWT

2009-01-05 Thread Felix Meschberger
Hi Jason, Jason Pratt schrieb: is it possible to use a GWT frontend for sling? Yes, there are two GWT modules in the Sling project inside the extensions/gwt folder: The servlet module provides the basic Server Side infrastructure and is required. The sample module is a sample GWT form. HTH

Re: unit test failing

2009-01-05 Thread Felix Meschberger
Hi, Jason Pratt schrieb: hello - i am getting the following failure while trying to build from the trunk root Tests in error: testSingleResourceDetection(org.apache.sling.jcr.jcrinstall.jcr.impl.ResourceDetectionTest)

Re: direct script execution

2009-01-05 Thread Torgeir Veimo
On 6 Jan 2009, at 07:19, Felix Meschberger wrote: Hi Torgeir, Torgeir Veimo schrieb: Is it possible to request a script directly, eg. use a request such as /apps/notes/html.esp, and make that script execute instead of being returned as plaintext? This is not currently possible (though

How can I use a jar to run sling

2009-01-05 Thread yanshaozhiGmail
HI: As I remembered , in the launchpad app project. I can run a sling demo only with a jar (with java -jar command ), to my surprise the latest versioin can't work well. Now I want to do it too , which jar can I use? Has the architecture been changed in the launchpad? 2009-01-06

Re: How can I use a jar to run sling

2009-01-05 Thread paksegu
I am able to run sling lunchpad app by following example below http://incubator.apache.org/sling/site/getting-and-building-sling.html   set JAVA_HOME=C:\jdk set PATH=%JAVA_HOME%\bin set M2_HOME=C:\maven set PATH=%M2_HOME%\bin set MAVEN_OPTS=-Xmx256m cd /sling mvn clean install   I have notice

Re: How can I use a jar to run sling

2009-01-05 Thread paksegu
correction in the previous example is   cd /sling/launchpad/app Ransford Segu-Baffoe paks...@yahoo.com http://www.noqmx.com/ https://serenade.dev.java.net/ --- On Mon, 1/5/09, yanshaozhiGmail yanshaozhi...@gmail.com wrote: From: yanshaozhiGmail yanshaozhi...@gmail.com Subject: How can I use