Hello,
I'm a former CQ/AEM developer and architect, looking for the best way to
import/export data WITHOUT the presence of CRX Package Manager. I'm working
on a fresh CMS project using Sling+Oak from scratch, and will never have the
benefits of CRX.
So... How do us raw sling developers import /
Sorry for the double post! *thank you* for the help.
The irony is that, after a full 8 hours of struggle, I found composum on my
own only minutes before seeing your post, haha...
I'll probably be active in this community, especially if this P.O.C. goes
smoothly enough to get business buy-in.
ro
I have packages (such as composum tools) that depend on apache commons lang
3.
I have other packages (such as most of the sling itself) that depend on
commons lang version 2.
There are no Java Package namespacing collisions between these packages -
they can both exist in the same JVM safely. Vers
Gah - solved myself almost immediately after posting.
For posterity: version 3.5 of commons lang has a different
Bundle-SymbolicName ( org.apache.commons.lang3) in the OSGI metadata of
MINFEST.MF. Simply by bumping to lang 3.5 you'll solve this.
--
View this message in context:
http://apache-s
Hey guys, sorry for multiple recent question. I'm biting down hard on Sling
right now and hitting tons of learning curve and growing pains.
My problem: If I create a fresh instance of MongoDB, and connect multiple
fresh instances of Sling to it (each running in a separate tomcat instance),
they al
The announcement for sling 8 announces a feature we're excited to use:
Versioning through the Resource API:
https://sling.apache.org/news/sling-launchpad-8-released.html#versioning-support-in-the-resource-api
However, the only info it provides is a JIRA link I can't access:
https://issues.apache.
Ahh, yes you're right. I was getting a 403 apparently because of an old bad
Chrome Plugin that was injecting Basic Auth headers into my request... my
fault.
--
View this message in context:
http://apache-sling.73963.n3.nabble.com/Sling-8-Resource-Versioning-Jira-access-tp4069484p4069486.html
I've got years of experience writing backing beans for Sling (aem)
components, but can't seem to get a simple JS backing working using the new
Javascript Use API.
All I want to do is print out a resource's children resources.
My JS backing bean:
use([], function () {
var returnObj = {
Not sure if I've experienced an intermittent but severe defect, or if I did
something wrong when attempting this yesterday.
I followed the exact same steps today, and the new instance *did*
successfully join. Either I'm wrong, and I actually did something
differently yesterday, or this is an inter
- What kind of discovery mechanism do you use?
I don't know - whichever is the default discovery mechanism when running
org.apache.sling.launchpad-8-webapp.war on Tomcat 8 and I've modified the
content of the war file so that it will start with run modes oak|oak_mongo,
so that by default it's loo
I cannot change run mode using the process I have in the past, with Sling8.
The only thing that has worked for me was to crack open the
org.apache.sling.launchpad-8-webapp.war file, crack open the oak jar file
within it, edit sling_install.properties
(sling.run.mode.install.options=oak|oak_mongo),
Thank you for your time everybody! For posterity:
First to clarify, my very specific question is how to iterate an iterable in
the model-building logic (what us old timers might call a "backing bean"). I
do already know that I can use HTL to iterate the children, and I do
recognize that in this co
There are serious cloud-deployment benefits to separating the deployable war
from the container. For example, AWS Elastic Beanstalk can provide a
scaleable Platform as a Service and we only hand it our code or war file to
deploy. By coupling your deployable to your servlet container, you're
growin
What is the recommended process for setting that runmode on startup? I'm
unzipping the war file, changing a properties file, and rezipping it... This
means we'd need to maintain this custom deployment artifact for all of our
deployments/provisioning, rather than just using Sling's. There must be a
No architectural reason - purely speed of development reasons. Our team has
switched from Java to Node.js on our other projects and are seeing real
gains in dev time. We believe we could see the same faster development with
lightweight JS files as opposed to traditional type-safe Java.
I think thi
Hmm, my genuine apologies, I'm not sure what custom application bits are. If
you're saying that I can deploy code that I write to Sling, that's
absolutely true, but my understanding is that I need to change the runmode
BEFORE the Sling instance starts up for the very first time, and I can only
dep
I can look into overriding init params through some servlet container
features. Is that the way that Sling devs expect me to turn on Mongo
functionality?
--
View this message in context:
http://apache-sling.73963.n3.nabble.com/How-to-change-run-mode-in-Sling8-tp4069494p4069529.html
Sent from th
The only example code I can find to authenticate to Sling will use the JEE
servlet container's "j_security_check" which then stores the authenticated
session in App Server memory. A load-balancer without sticky-sessions
enabled will cause an unstable experience for users, in which they are
suddenly
Ok that makes sense. It sounds like developing a new codebase *based on* the
launchpad might be my next step. I guess the launchpad is really an example,
and not intended to be deployed to production as provided from the war
download link here: https://sling.apache.org/downloads.cgi.
I guess downl
Aha. Thanks, I was sure it was sure weird Rhino thing.
It's hard to call it valid JavaScript either, though, as it's invalid in
every single popular browser. That mozilla doc says "Non-standard. The
Iterator function is a SpiderMonkey-specific feature, and will be removed at
some point. " As a ca
Chetan,
I'd like to confirm to what degree that is true for our proposed
architecture. It seems that only the OSGI configurations and bundles would
be "eventually consistent." It seems the only "state" that is stored in
Sling instances are OSGI configurations and OSGI bundles. Everything else is
i
This is fantastic information!
I'd love a nice clear how-to documentation for getting this done, but hey
it's open source stuff, hah. I'll go fumble through the
slingstart-maven-plugin and probably have a question or two along the way.
Thanks guys.
--
View this message in context:
http://apac
Robert Munteanu-2 wrote
> - Are the Sling/Oak instances and MongoDB clocks in sync?
I've just realized the significance of this question. Our Sling and Mongo
instances will be in different data centers entirely, Mongo provided as a
service and Sling in our own AWS instances somewhere... I suppose
Update: Ok, I get it now. Thank you - this is really slick.
For posterity:
The "source code" for the "Sling Source Release" artifact at [1] is really
not the project source code. It's just some text files that neatly describe
which OSGI bundles and configurations (including run modes) you'd lik
Alright, this is a deal breaker for our business (if sling absolutely
requires sticky sessions). I hope you're not offended that I'm not 100%
convinced yet. I understand you do development on the sling project and are
well qualified on the topic. To be honest, however, I don't understand fully
what
This is really disappointing for us. Through this revisioning, Oak has turned
a datastore that is consistent by default into a datastore that is not :p
It's ironic that the cluster which involves multiple datastores (tar), and
thus should have a harder time being consistent, is the one that can
acc
Ok First of all - I GENUINELY appreciate the heck out of your time, and
patience!!
... and THIS is really interesting:
If THIS is true:
chetan mehrotra wrote
> If you are running a cluster with Sling on Oak/Mongo then sticky
> sessions would be required due to eventual consistent nature of
>
Bertrand Delacretaz wrote
> That would be a pity, as I suppose you're starting to like Sling now ;-)
Ma you have no idea haha! I've got almost every dev in the office all
excited about this now haha. However, it seems our hands are tied.
I wrote local consistency test scripts which POST and i
lancedolan wrote
> I must know what determines the duration of this revision catch-up time
> ...
While I don't know where to look in src code to answer this, I did run a
very revealing experiment.
It pretty much always takes 1 second exactly for a Sling instance to get the
latest re
Thi is tempting, but I know in my dev-instinct that we won't have the
time to solve all the unsolved in that effort. Thank you for suggesting
though :)
--
View this message in context:
http://apache-sling.73963.n3.nabble.com/Not-sticky-sessions-with-Sling-tp4069530p4069712.html
Sent from th
Chetan is making things crystal clear for us.
Our next steps are:
1) Learn what the MAXIMUM "inconsistency window" could be.
Is it possible to delay past 5 seconds? 10 Seconds? 60? What determines
this? Only server load? I'll ask on the JCR forum and also experiment.
2) Design and test a solu
Jason Bailey wrote
> Couldn't this be simplified to simply stating that the sticky session
> cookie only lasts for x amount of seconds?
WHOAAA!!
Bertrand, probably hold the phone on everything else I suggested in my last
post - this solution is insanely simple, embarrassingly obvious in
hindsi
eated
this code:
/**
* Created by lancedolan on 1/27/17.
*/
@Component
@Service(value=ResourceProvider.class)
@Properties({
@Property(name = ResourceProvider.ROOTS, value = "things"),
@Property(name = ResourceProvider.OWNS_ROOTS, value = "true")
})
public cla
These APIs I'm looking to build are likely to use other OSGI services I've
written, and perhaps even write to the JCR for other reasons. Imagine doing
a GET /api/images/my-new-image.jpg and the image lives in Amazon S3, but you
want to write some audit data into the JCR.
I'm still thinking through
I'm surprised at all the tech opinions this raised :)
First, there's a couple popular suggestions happening which aren't going in
the right direction, so I'll get that out of the way quick:
1) Any solution that involves me creating a JCR node and binding by resource
type is infeasible. I'm not wi
I guess, even if we use SlingSafeMethodsServlet and request parameter, I
still have this problem of securing the servlet... I've put a servlet at
paths = "/myservice/image" , and created a node at /myservice with an ACL
that denies jcr: all to everyone and anonymous, and yet anonymous can still
GET
Has anybody run into this before? I'm tempted to thing it's a defect in Sling
8.
I write a @Service for OSGI, and it has a @Reference to another service,
such as a ResourceResolverFactory, and deploy it to Sling the same way I
have for several years, and it fails to get the Reference, with the
fol
Sort of solved:
adding -noverify to the JVM arguments stops this error from occurring.
However, I don't fully understand the cause and I'm also nervous about
forward compatibility... I wonder how this could prevent us from moving to
future Java versions. It just seems like a bad smell that stable
That's the solution, thank you!
My maven-scr-plugin version had fallen badly out of date by re-building from
an archetype... bumped to latest version and I no longer need the -noverify
argument.
Thanks again :D
--
View this message in context:
http://apache-sling.73963.n3.nabble.com/java-lang
Henry Saginor-2 wrote
> Hi Lance,
>
> I think a better practice is to register your servlet with a resource type
> instead of path.
This requires creating a node per resource. Please see my prior post where I
disqualify all solutions that involve creating nodes. My entire requirement
is that I'm
t for a resourceType is pretty elementary, but for
posterity looking to get this ResourceProvider working in Sling 8, here's
how I did it. I expect there are better ways, but this is demonstrative:
/**
* Created by lancedolan on 1/27/17.
*/
@Component
@Service(value=ResourceProvider.class)
@
Through my years in Adobe CQ and AEM, I've noticed that LOG files from
components that I write always render twice per page request. Today I was
debugging my code in Sling 8 and noticed that My debugger was kicked open
twice each time I requested a page instead of once.
What's the deal with this?
This response is good enough for me. The fact that the community hasn't
largely said "yea we see it all the time and it's normal" tells me I'm
probably causing this myself somewhere, and I'll have to look into it. I
just didn't want to lose a day figuring out the root cause if this was known
normal
Hi All,
Does anybody have some terminal commands or procedure they follow for
exporting data without composum? I've downloaded this "jackrabbit-filevault"
project, and I've tried some different terminal commands after reading the
documentation. Not sure what I'm doing.
*
For those curio
Hi All,
Does anybody have some terminal commands or procedure they follow for
exporting data without composum? I've downloaded this "jackrabbit-filevault"
project, and I've tried some different terminal commands after reading the
documentation. Not sure what I'm doing.
Does anybody here export
Sorry, double post.
See
http://apache-sling.73963.n3.nabble.com/import-and-export-JCR-data-td4069390.html
--
View this message in context:
http://apache-sling.73963.n3.nabble.com/How-to-export-Sling-data-tp4070157p4070158.html
Sent from the Sling - Users mailing list archive at Nabble.com.
If it's not composum, then it's file-vault or JCR related, which is even more
concerning.
I'm pretty confident this isn't user error. I've given consulting
demonstrations, teaching others the ins and outs of file-vault XML-to-node
translation, the various complex rules one can combine, and also w
47 matches
Mail list logo