On Jun 18, 2008, at 8:14 AM, Gnana Arasan wrote:
Hi everyone,
1) XCC/J
invoke.setModuleUri("fileName.xqy");
ResultSequence rs = session.submitRequest(invoke);
Invalid user can be found only at this point (or) any
possibility while creating session object.
How did you construct your ContentSource and/or Session object?
The usual way is to instantiate a ContentSource with a URI of the form:
xcc://username:[EMAIL PROTECTED]:8000
If the username of password are not correct, or missing, then
XCC will not be able to authenticate with the server.
2) I am connecting to MarkLogic XDBC Server with XCC from Java.When
i am trying to Login with adminuser and adminpass its working fine
for test.xqy file
let $a := 1
return $a
for other user(role:applicationRole) applicationRole with
applicationPrivileage(executivePriv)
{while creating XDBC Server when privilage field is blank]
ERROR:
com.marklogic.xcc.exceptions.XQueryException: SEC-PRIV:
Insufficient privileges
in /invoke
{while creating XDBC Server privilage field is applicationRole]
ERROR:
com.marklogic.xcc.exceptions.RequestPermissionException:
Authorization failed for user 'Franklin'.
MarkLogic Version:3.2-5
please guide me ...
It seems as though you do not have roles and permissions
setup properly in the server. The best guide is the online
documentation available at:
http://developer.marklogic.com/pubs/3.2/
Look for the link "Understanding and Using Security", about
halfway down the page.
This may also be the root cause of your first problem, above.
Regards,
Gnana
Arasan
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
---
Ron Hitchens [EMAIL PROTECTED] 650-655-2351
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general