Hi Mike,
Is there any sample of an AdapterFactory, so that I can document this?
AFAIK, there isn´t any example so far.
However, the own OCM bundle implementation is based on an
AdapterFactory [1]. So, I understand this might be a good starting
point.
This service is registered as OSGi service
If you mean mapping jcr nodes to domain objects you might want to use
OCM [1]. You have an example appying OCM at [2].
And if you want to hand-craft the adapters you may even want to
implement an AdapterFactory..
Maybe even better than OCM because it wouldn´t be tied up with JCR.
Juanjo.
Hi,
I'm in the development team of a new CMS which is based on Sling.
Good choice!, Sling is the most suitable tool to this purpose :).
Now I want to test my GWT classes. GWT provides the test class GWTTestCase,
that are executed with the help of the gwt-maven-plugin. The tests are
running.
No I was of course thinking about content editors. The admin console
is an umbrella term we use internally here to mean those things.
Yes, I´m sure Thorsten is thinking about a content editor instead an
OSGi environment admin console.
Regards,
Juanjo.
Well, that of course then amounts to a problem - luckily GWT itself is
ASL2 licensed. And as long as the dependencies have acceptable licenses
(MIT and BSD come to mind) there is not an issue, either. Where it
starts getting problematic is the LGPL and GPL licenses.
I think a GWT content
Hello everyone.
I'm trying to get a list of installed bundles in sling. I saw something
like the
class BootstrapInstaller implementing the BundleActivator class.
I think that could be something like the treak with the
final File dataFile = context.getDataFile(bootstrapinstaller.ser);
I
Hi,
I'm trying to get a list of installed bundles in sling.
Bundles are installed in the OSGi container, really.
You can get the list of bundles with something like this:
for(Bundle b : bundleContext.getBundles() ) {
logger.info( Bundle + b.getBundleId() + : +
[
https://issues.apache.org/jira/browse/SLING-1016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado updated SLING-1016:
-
Affects Version/s: (was: JCR Jackrabbit User Manager 2.0.4
There is an issue with accented chars and the sling user manager.
I do a web based interface for the nodes below /system/userManager.
When I POST to createUser or updateUser, then accented chars are messed up
in the server side authorizable resource: eg. the char ü becomes ü. it
looks to
/whiteboard/jvazquez/testing/src/test/java/org/apache/sling/itest/PaxExamTestBase.java
[5] http://repo2.maven.org/maven2/org/apache/servicemix/bundles/
[6] http://issues.ops4j.org/browse/PAXEXAM-79
On Mon, Apr 6, 2009 at 11:08 AM, Felix Meschbergerfmesc...@gmail.com wrote:
Hi,
Juan José Vázquez
I don't have much experience with Continuum, but every time I try to
do something on vmbuild it's very slow and painful. Seems like that
box is overburdened, and the UI is not very easy to use, IMHO.
My experience with Continuum is not good either.
I don't think we need two CI servers - what
As people here seem to prefer Hudson, lets use that one.
I have no experience with TeamCity [1] but I feel this could be
another option. Any feedback with this tool?
[1] http://www.jetbrains.com/teamcity/
Juanjo.
[
https://issues.apache.org/jira/browse/SLING-990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12717724#action_12717724
]
Juan Jose Vazquez Delgado commented on SLING-990:
-
Congrats Christophe
+1
BR,
Juanjo.
Next steps after discussion :
* Vote on this issue
+1
Regards,
Juanjo.
[X] +1 Graduate as a top level project
Regards,
Juanjo.
See contrib/extensions/jcrinstall/it - I used Juanjo's whiteboard
example (whiteboard/jvazquez/testing) as a base, thanks!
You´re welcome. I hope to continue this stuff soon.
Tests obviously run slower than pure JUnit tests, but not too slow,
and it's fairly easy to assemble some bundles to
As one of those users of sling the launchpad structures are working well
for us. At the moment we take launchpad/bundles as is, and package with
something close to lauchpad/app.
As Ian describes, a custom launchpad, including Sling and some other
bundles, is a typical enterprise-ready package
* create OSGi Deployment Packages for use with
the Deployment Admin service
* create Karaf features (requiring respective
Karaf support)
* create a list of dependencies to grab from
and OBR at first startup
What is important to me, is that we will be able to produce simple
+1
On Mon, May 11, 2009 at 11:40 AM, Jukka Zitting jukka.zitt...@gmail.com wrote:
Hi,
On Mon, May 11, 2009 at 11:26 AM, Bertrand Delacretaz
bdelacre...@apache.org wrote:
For now I have created SLING-959 - what do people think of releasing
with that ugly bug? I know recutting and revoting on
Hi all,
Based on his sustained contributions to the Sling documentation in the
last months, the Sling PPMC has decided to give Mike Müller write access
to the Sling website content wiki.
Thanks again, Mike, for your contributions and keep up the good work.
Thanks Mike and welcome!
Juanjo.
An update draft of the Sling Community Roles and Processes as been on
the site since June 2008 [1]. This draft proposes to separate the roles
of Committers and (P)PMC members to lower the entry barrier for
committership. Additionally I added an explicit note, that regular
contributors of
Hi VIdar,
As I hope I made clear, this is not something I've thought through in
any way, and I'm not even sure if it's such a generic usecase that it
should be included in Sling - maybe it's just specific to certain
applications.
WDYT?
That is a nice feature but IMHO is more suitable for
...That is a nice feature but IMHO is more suitable for specific use
cases, such as CMS systems, than for Sling itself
IMHO that shouldn't prevent implementing it under contrib - not all
Sling users will need it, but using Sling for CMSish apps is certainly
a common use case.
Yep,
Sounds good, and as Felix says I just wrote a blog entry about this
yesterday [2]. From that you can see that in Day's cq5 the tags are a
hierarchy of nodes under /etc/tags, with a specific node type, so a
tag is indeed a separate resource.
Bertrand, just a question. You decided not to use
Because references a) don't scale at the moment with Jackrabbit
Is this a core design constraint or intended to be improved in future
Jackrabbit releases?.
and b) hard references make your content very unflexible regarding partial
copying etc. As Bertrand explains it in his post [1]:
snip
It's a drawback, but we feel the advantages (content agility) outweigh
the drawbacks (need to handle some rare stuff at the application
level).
Pros vs cons. Ok, good!.
Juanjo.
Interesting approach. Good enough from my pont of view.
BR,
Juanjo.
On Fri, Apr 24, 2009 at 7:26 PM, Alexander Klimetschek aklim...@day.com wrote:
On Fri, Apr 24, 2009 at 6:32 PM, Bertrand Delacretaz
bdelacre...@apache.org wrote:
2009/4/24 Juan José Vázquez Delgado juanjo.vazq...@gmail.com
Hi Felix,
I propose to create a new service interface Authenticator, which is
implemented by the existing SlingAuthenticator class (both in the
o.a.sling.engine bundle). This interface has a requestAuthentication
method, which may be used to initiate authentication from within
servlets or
Among the Sling committers, who would like to have an account on the
Hudson server?
I'll include your usernames in the accounts request.
Me too, please (username: jvazquez)
Thanks,
Juanjo.
+1
Good luck Carsten.
BR,
Juanjo.
On Tue, Apr 7, 2009 at 2:48 PM, Felix Meschberger fmesc...@gmail.com wrote:
Hi all,
The Felix framework 1.6.0 release has hit the streets (aka maven repo).
Thus I upgraded the reference to the Felix framework. I have also
upgraded the bundle repository
Redoing our testing infrastructure just for this reason feels a bit
like overkill to me.
Not only. With Pax Exam we could test Sling deployed on any OSGi
environment (at least on some of them).
Juanjo.
For this reasons, I would like to remove (svn rm) the old implementation
and to also drop the JcrResourceResolverFactoryImpl configuration option
to select the old or new implementation.
WDYT ?
+1
Juanjo.
Hi,
Exciting stuff for an old xslt head like myself.
Yeap, XST is still the best option in a lot of situations.
Just wondering, if the xpl
file is at /apps/xproc/xproc.xpl, what tells sling that it should resolve
the .html extension in this example to the script?
I would have guessed
Just wondering, if the xpl
file is at /apps/xproc/xproc.xpl, what tells sling that it should resolve
the .html extension in this example to the script?
I would have guessed /apps/xproc/sling/servlet/default/html.xpl ..
Because of resource type is xproc, you have:
/apps
+-- xproc
[
https://issues.apache.org/jira/browse/SLING-736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12695361#action_12695361
]
Juan Jose Vazquez Delgado commented on SLING-736:
-
Right, I think it´s fixed
I have created a documentation page at [1] which should shortly appear
on our site (follow Development - Integrating Scripting Languages -
XSLT ...)
This page may be edited directly in the SLINGxSITE wiki to update the site.
Thanks Felix. I´ll work at it soon.
Juanjo.
SLING-893 Pipeline support - still in the whiteboard, right? I'm going
to test it today.
As discussed in [1], pipeline support stuff has been already saved in
contrib [2]. I´m going to close SLING-893 and open new issues for
enhancements.
BTW, we have some contrib tests failing too (SLING-869
1) the JVM is interpreting bytecode, which is just scripting in
disguise. Do not fall for the 'Write once run everywhere' and the
alleged agility you get from a garbage collector.
2) to be ready for Enterprise use, we should use a Common
Business-Oriented Language, or COBOL for that matter.
[
https://issues.apache.org/jira/browse/SLING-908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12694548#action_12694548
]
Juan Jose Vazquez Delgado commented on SLING-908:
-
Good point. Thanks
[
https://issues.apache.org/jira/browse/SLING-893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado resolved SLING-893.
-
Resolution: Fixed
First version in [1]. Close this issue and open new
SLING-893 Pipeline support - still in the whiteboard, right? I'm going
to test it today.
As discussed in [1], pipeline support stuff has been already saved in
contrib [2]. I´m going to close SLING-893 and open new issues for
enhancements
Great, thanks!
I made minor improvements to
Congratulations and welcome Vidar!.
Great news that the team is growing.
Regards,
Juanjo.
On Mon, Mar 30, 2009 at 11:11 AM, Bertrand Delacretaz
bdelacre...@apache.org wrote:
Hi,
Vidar Ramdal has been active on the Sling mailing list since January
2008, has made sustained contributions of
Hi,
I think that some people in this community are interested by a GWT/Sling
integration. There is an example in the Sling source but there are some
lacks in term of integration and RAD dev. My main goal is to provide a good
dev environment to build quickly gwt applications for Sling and to
[
https://issues.apache.org/jira/browse/SLING-896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado resolved SLING-896.
-
Resolution: Fixed
Assignee: Juan Jose Vazquez Delgado
Applied patch
[
https://issues.apache.org/jira/browse/SLING-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado reopened SLING-736:
-
Assignee: Juan Jose Vazquez Delgado (was: Felix Meschberger)
Issue
[
https://issues.apache.org/jira/browse/SLING-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado updated SLING-736:
Remaining Estimate: 0h
Original Estimate: 0h
The path info
I'm trying to run Sling in ServiceMix Kernel (uses pax-web-bundle 0.4.1). It
deploys correctly, but when the SlingMainServlet tries to process a request
it ends up in an infinite loop. I downgraded Pax to use the 0.2.3 version,
and it works fine.
Yes, you´re right, the same thing happened to
Hi Sebastián,
I'm not sure if this is the best place to write to
No better place occurred to me :-).
but I've been able to
use Sling in ServiceMix Kernel without much problems, and have created a
patch to deploy it as a ServiceMix Kernel feature. I've attached the patch
to the following
2) Is there some way to publish the SlingMainServlet in a different context
path than /? I've seen it hard wired to it, but I guess it may be a good
idea to have it configurable in case Sling lives in a container with other
web applications (such as my case in ServiceMix Kernel).
I´m not sure
[
https://issues.apache.org/jira/browse/SLING-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado resolved SLING-736.
-
Resolution: Fixed
At first sight, everything seems to be ok. Close
There is a how-to run the Jackrabbit stuff inside Equinox at [1]. And
there is a page on running Sling on the ServiceMix Kernel at [2].
I have made some tests runnig Sling on the ServiceMix Kernel and
everything was ok. An OSGi R4 Http Service implementation is mandatory
in order to work, for
Concerning GWT, it seems that we can support HTTP requests [1] (with JSON
or XML) and avoid GWT RPC.
RPC is certainly nice for java developers but if we want to have a common
foundation for the JCR browser that can be integrated with different web UI
frameworks, it is certainly better to
[
https://issues.apache.org/jira/browse/SLING-891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado resolved SLING-891.
-
Resolution: Invalid
Finally, this seems to be a memory issue. MAVEN_OPTS
[
https://issues.apache.org/jira/browse/SLING-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado resolved SLING-879.
-
Resolution: Fixed
Assignee: Juan Jose Vazquez Delgado
Integration
Pipeline support
Key: SLING-893
URL: https://issues.apache.org/jira/browse/SLING-893
Project: Sling
Issue Type: Improvement
Components: Extensions
Affects Versions: 3
Reporter: Juan Jose Vazquez
Hi Eric,
Thanks for applying the accessmanager bundle.
You´re welcome.
I took a look at the unit
test failures and I think I see what the issue is. When I wrote those tests
I had the latest patch from SLING-875 (see usermanager_as_servlets.zip)
already applied. So the test code that
We want to use these reserved properties (jcr:created, jcr:createdBy, etc.)
because they are autocompleted by the SlingPostServlet and we are always to
create content using the SlingPostServlet.
How can initalize the jcr:created with a long in a json?
I don´t know why but jcr:created is
...What about the UI framework to use ? A JCR Explorer will require advanced
UI widgets and I'm wondering which framework will be the more appropriate,
Dojo ? Gwt ? Extjs ? ? :-(
I have a prototype with Extjs but It is certainly not compatible with the
ASF license
At this point my
that's odd. I didn't get any errors when I ran the clean build. Inside the
usermanager_as_servlet.zip file, there were two patches. Did you apply
both of those .diff files? It seems like you may be missing the changes
that were made to the integration tests.
I applied and commited both of
Hi Eric,
Yes, it seemed to be working for me. I was using that method in the patch I
submitted for SLING-879
I have added the jackrabbit-accessmanager stuff into trunk (rev.
755539). I have run some testing and everything seems to be ok. Cool
stuff, thank you!.
Although, I haven´t applied
[
https://issues.apache.org/jira/browse/SLING-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado updated SLING-879:
Remaining Estimate: 0h
Original Estimate: 0h
jackrabbit-accessmanager
...The sling jcrinstall module [1] is similar in scope, but more
integrated with Sling
Good point Bernard. I forget this option.
BR,
Juanjo.
Hi Daniel,
The property isn't there
** Resource dumped by StreamRendererServlet**
Resource path:/content/mycontent
Resource metadata: {sling.resolutionPathInfo=,
sling.resolutionPath=/content/mycontent}
** Resource properties **
title: My content title
size:
sling:resourceType:
Hi Christophe,
I would like to build a custom sling war. The customization is mainly
to override some component properties.
What is the best way for doing this ?
Sling is a set of bundles who are mainly intended to be deployed on a
OSGi container: Apache Felix, Eclipse Equinox, Sun
Can I use te file sling.properties to override properties of the
current Sling components ?
Only some of them. For instance, you can initialize the JCR repository
home with sling.repository.home property.
For example, I would like to build a custom war which override the
property
Hi Daniel,
Hi,
I am loading custom initial-content in the repository using a json file
This is my json:
{
jcr:primaryType : nt:unstructured,
sling:resourceType : mycompany/content,
jcr:created : ,
jcr:createdBy : ,
jcr:lastModified : ,
jcr:lastModifiedBy :
}
It is strange
For example, thorugh the browser:
http.//localhost:/content/mycontent/jcr:created
What do you get when try this?:
http.//localhost:/content/mycontent.txt
In the other hand, have you any error in Sling log?
BR,
Juanjo.
I'm agree with you but I would like to avoid manual operations from
the console in some conditions. In my case, I have to build a custom
sling war and give it to a production team who don't want to use the
console to install correctly the application. In such case, it should
be nice to have
Affects Versions: JCR Jackrabbit Server 2.0.2
Environment: Windows
Reporter: Juan Jose Vazquez Delgado
Assignee: Juan Jose Vazquez Delgado
The SlingServerRepository Configuration File property in is not resolved
properly when sling.repository.config.file.url
[
https://issues.apache.org/jira/browse/SLING-885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado resolved SLING-885.
-
Resolution: Fixed
Fixed in rev. 752067
External JCR configuration file
Hi all,
After some work, the pipeline support prototype [1] has ended up as follows:
1. A XML pipeline is expressed as a W3C XProc [2] file with xpl extension.
For instance:
p:pipeline xmlns:p=http://www.w3.org/ns/xproc;
p:xslt
p:input port=stylesheet
p:document
...1. A XML pipeline is expressed as a W3C XProc [2] file with xpl
extension
Is this xpl extension standard?
If you're choosing your own I'd prefer not having an L at the end as
it's too easy to confuse with a I.
Maybe xpr or even xproc, clearer?
This has been extracted from the XProc
This has been extracted from the XProc candidate recomendation [1].
Sorry, I forgot the link:
[1] http://www.w3.org/TR/xproc/
As of Rev. 7471333, the Apache SNAPSHOT repository is now declared in
the parent pom. My test builds seem to work. It would be great if others
could also test (and review the pom), so that we can then release the
parent pom.
Works for me (Windows Vista SP1 JDK 1.5.0_14-b03)
BR,
Juanjo.
[
https://issues.apache.org/jira/browse/SLING-871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado resolved SLING-871.
-
Resolution: Fixed
Assignee: Juan Jose Vazquez Delgado
Patch applied
Sounds reasonable.
+1
Juanjo
AccesControlUtil addEntry fails
---
Key: SLING-867
URL: https://issues.apache.org/jira/browse/SLING-867
Project: Sling
Issue Type: Bug
Components: JCR
Reporter: Juan Jose Vazquez Delgado
[
https://issues.apache.org/jira/browse/SLING-867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado updated SLING-867:
Sorry,
[1]
http://dev.day.com/discussion-groups/content/lists/incubator
You mean it's not supported with addAccessControlEntry()? At least
AccessControlUtil.addEntry() offers a method to apply restrictions. I guess
it calls ACLTemplate.addEntry() (that implements
JackrabbitAccessControlList) and there is a signature that accepts
isAllow.
There are 2 methods in
+1
[
https://issues.apache.org/jira/browse/SLING-867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado closed SLING-867.
---
Resolution: Fixed
Resolved in rev. 746943
AccesControlUtil addEntry fails
Thanks for the quick fix, Juanjo. Once I update to the new Sling structure,
I'll test it.
Marc
You´re welcome. Please report any issues about it.
Regards,
Juanjo.
If you experience any problems, just let us know.
No problems. Works for me (Mac OS X 10.5.6 / Java 1.6.0_07).
Thanks
BR,
Juanjo.
Now that Groovy 1.6 has been released, I think it would be cool to
include Groovy in the upcoming Sling Release out of the box in the
launchpad archives we are distributing.
WDYT ?
+1
Regards,
Juanjo.
Hi guys,
Last days, i have been working on a new prototype about a certain kind
of XML pipelines support in Sling [1]. The prototype is making these
main assumptions:
1. A XML pipeline is expressed as a W3C XProc [2] file with xpl
extension. For instance:
p:pipeline
[
https://issues.apache.org/jira/browse/SLING-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado updated SLING-859:
no definition found in parent node's node type for new node: no matching child
Hi Marc,
1. AccessControlUtil.addEntry() throws java.lang.NoSuchMethodException:
org.apache.jackrabbit.core.security.authorization.acl.ACLTemplate.addEntry()
as rootCause. I use Import-Package*;resolution:=optional/Import-Package
for that bundle and the following code.
accessController =
Thanks for the answer, Juanjo.
You´re welcome.
I want to add restrictions to nodes
(isAllow=false) . Is this possible with addAccessControlEntry()?
I´m sorry Marc, for the time being this feature is not supported.
There are some problems with building a jackrabbit-core osgizied
bundle [1].
Hi Vladislav,
hi, I have this in my pom.xml:
plugin
groupIdorg.apache.felix/groupId
artifactIdmaven-bundle-plugin/artifactId
extensionstrue/extensions
configuration
instructions
Unfortunately, I don't have access for creating new issue.
You can signup for an account here [1].
[1] https://issues.apache.org/jira/secure/Dashboard.jspa
Regards,
Juanjo.
[
https://issues.apache.org/jira/browse/SLING-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juan Jose Vazquez Delgado updated SLING-859:
Assignee: Juan Jose Vazquez Delgado
Remaining Estimate: 0h
Hi Felix,
Yes. I think there are multiple options for the input
* apply standard Sling processing as in
RequestDispatcher.include(resource, resourceTypeOverWrite)
I´m not sure what you mean with this case. I understand, the pipeline
source would be the XML expressed result of
Hi,
In response to this thread [1] in the Apache Cocoon Dev list, I have
been working in a minimal sample [2] concerning about resolution of
pipelines and Apache Sling. IMHO, having pipeline support in Sling is
an important feature in terms of separation of concerns.
On the other hand, because
There are two possibilities:
Either make a pipeline a script, or let a script (jsp, groovy etc.)
generate xml and use a pipeline for postprocessing.
In fact, my sample is in line with your second option. The XSL
templates are retrieved from resources, too.
Juanjo.
Hi,
I myself would be
interested in how Jackrabbit (and Sling) is used in other companies'
products.
Cheers
Greg
Absolutely agree. It´s very important to know as many Sling/Jackrabbit
case estudies as possible.
Congratulations!.
BR,
Juanjo.
I will upgrade to the Felix Framework 1.4.1 shortly (I think this is a
requirement for the next release cycle of Sling). This may behave
better, I hope, and you might want to test it then.
Sure. I´ll report on this.
Do you notice any problems -- except the scaring log message -- upon
Hi Felix,
Does Sling shutdown because of your configuration change ? Or do you
modify the configuration and then shut Sling down ?
Not at all. The behaviour is normal apart from this trace. Properties
of services are saved without any problem.
Thanks,
Juanjo.
Hi guys,
Last days, I have been receiving this error stack trace after stopping
the launchpad webapp:
2009-01-22 17:30:59.695:/:WARN: ERROR: EventDispatcher: Error during dispatch.
(java.lang.IllegalStateException: Invalid BundleContext.)
java.lang.IllegalStateException: Invalid BundleContext.
[
https://issues.apache.org/jira/browse/SLING-830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12664141#action_12664141
]
Juan Jose Vazquez Delgado commented on SLING-830:
-
Works for me (rev. 734729
1 - 100 of 145 matches
Mail list logo