Hi Lance,
I think a better practice is to register your servlet with a resource type
instead of path. For this you can use either sling.servlet.resourceType
property or a newer SlingServlet annotation with resourceType property [1].
Then create a JCR note with sling:resourceType property referen
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
This error is usually caused by an old version of ASM that is used for
writing the implementation of the bind/unbind methods of references if
such functions do not already exist.
This usually stems from the use of an old maven-scr-plugin, and
upgrading to a newer one will most usually fix this, or
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
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
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
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
Anyone know if it's possible to use the Sling Health Checks to expose a value
via the MBean other than the ones explicitly defined in the Result Object?
Thanks
-Jason
Hi Lance,
On Fri, Jan 27, 2017 at 10:27 PM, lancedolan wrote:
> ...Bertrand suggests creating a ResourceProvider, as in the example here [1].
> However, that uses the spi package which is not in version 2.9.0 of
> org.apache.sling.api, and thus, not available to me in Sling 8
We might need t
Hi,
On Fri, 2017-01-27 at 14:27 -0700, lancedolan wrote:
> Hi friends,
>
> I've tried routing questions through stackoverflow to cut down my
> mails to
> this list. I'm losing lots of time on this one, though, and am stuck.
>
> I need to create APIs which don't represent Sling Resources. Example
10 matches
Mail list logo