Hi,I had handled this using a servlet [LogoutServlet]. This website I am
working is a multi lingual one and the user should remain on the same
page where logout is called.So while generating the logout link I add
one selector to the logout url so that LogoutServlet can pick that
"resource" query parameter is used the the SlingAuthenticator for
redirecting the user after logout. I have some other requirements as
Hi, There is no need to look through remote way as given in the example
is the way to look for remote MBeans.MBeanServerConnection server =
JMXServiceURL(serverUrl), null).getMBeanServerConnection(); // Below
code will suffice your need. This code is working for me in CQCreate one
DynamicBean interface exposing the same operation present in JMX for
java.lang.ClassCastException: [Ljavax.jcr.Value; cannot be cast to
javax.jcr.Valuejavax.jcr.Value val = (javax.jcr.Value)mEntry.getValue();
mEntry.getValue() is an Array, you cannot cast it to a javax.jcr.Value.
Just iterate over the returned array and see. HTH. Rakesh.
Hi,I have done similar stuff using custom authentication handler, User
is authenticated at remote systems using SOAP WS call. An auth handler
implementation is enough for your use case.I configured the auth handler
to a specific path say /en and then posted the login form to URL -
/en/login.html/j_security_check.In extractCredentials get the user name
and passed from j_username and j_password respectively and call your 3rd
party system.For creating login token and all, I created a master user
You are just setting the 500 status, which is not picked by your error
handler(which is wrongly implemented of course) , actually the sling
"default" error handler kicks in and sends the "Internal Server
Error".you have two options:// 1.A 500.jsp script can be created.
However, it is only used if HttpServletResponse.sendError(500) is
executed explicitly; i.e. from an exception catcher.Otherwise, the
response code is set to 500, but the 500.jsp script is not executed..You
are not doing this in yo...