issue with sling models injection

2016-09-19 Thread Henry Saginor
Hi All,

Today we had a production issue with multiple null pointer exceptions in our 
sling models. 
Multiple fields with @Inject annotations were just not getting injected even 
though they were not declared optional. Some of these field were content 
properties and some common sling objects like resource resolver.
The issue fixed itself after deleting all application bundles, redeploying 
them, and then restarting and refreshing sling models bundles.

I am curious if anyone else has seeing this. Is this a known issue? 
Sling Models version is 1.1.0.

Henry

Custom context for Main Servlet

2016-09-19 Thread mduduzik
We researching ability to run multi-tenant (MT) sling ( (1) MT sling servlets
and (2) RDMS jackrabbit repository). We have successfully made service
SlingRepository MT. However, the current setup only works with
SlingMainServlet on /. Is it possible to either override
SlingMainServlet.{SLING_ROOT and SERVLET_CONTEXT_NAME} or some other simpler
way; so that browsing tenant_a resources points to URL
/tenant_b/browser.html etc. 

Btw, we're using [1] to support MT on our platform.

Thanks.

[1] http://www.amdatu.org/components/multitenancy.html



--
View this message in context: 
http://apache-sling.73963.n3.nabble.com/Custom-context-for-Main-Servlet-tp4064849.html
Sent from the Sling - Users mailing list archive at Nabble.com.