[MarkLogic Dev General] Thanks & XCC Config Issue

Ron Hitchens ron at ronsoft.com
Wed Mar 14 00:21:10 PDT 2012


   The second error indicates that the credentials
are invalid: either an incorrect password or an
unknown user.  Did you mean "admin" rather than "root"?
User names you specify must exist in MarkLogic, they
are not operating system usernames.  Users are setup in
the Security section of the Admin UI.

On Mar 14, 2012, at 4:15 AM, Tom Hubschman wrote:

> Hello again,
> 
>     Thanks for the search module info for Pagination.
> 
>     I set up XDBC without issues on my local box, but now I am setting up the instance in our Amazon AWS account and I get the following errors. I got the first one and so I set the specified permission, I then got the second one.
> 
> First Error
> GINetwork Processing Failure
> 
> com.marklogic.xcc.exceptions.XQueryException: SEC-PRIV: Need privilege: http://marklogic.com/xdmp/privileges/xdbc-eval [Session: user=root, cb={default} [ContentSource: user=root, cb={none} [provider: address=localhost/127.0.0.1:9999, pool=1/64]]] [Client: XCC/4.2-9, Server: XDBC/4.2-5] in /eval
> 
> org.warriorgateway.api.controller.GINetworkException: com.marklogic.xcc.exceptions.XQueryException: SEC-PRIV: Need privilege: http://marklogic.com/xdmp/privileges/xdbc-eval [Session: user=root, cb={default} [ContentSource: user=root, cb={none} [provider: address=localhost/127.0.0.1:9999, pool=1/64]]]  [Client: XCC/4.2-9, Server: XDBC/4.2-5] in /eval at org.warriorgateway.api.dao.XCCDataAccessObject.search(XCCDataAccessObject.java:75) at org.warriorgateway.api.controller.MainController.search(MainController.java:84) at org.warriorgateway.api.servlet.APIServlet.processRequest(APIServlet.java:57) at org.warriorgateway.api.servlet.APIServlet.doGet(APIServlet.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)  	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: com.marklogic.xcc.exceptions.XQueryException: SEC-PRIV: Need privilege: http://marklogic.com/xdmp/privileges/xdbc-eval [Session: user=root, cb={default} [ContentSource: user=root, cb={none} [provider: address=localhost/127.0.0.1:9999, pool=1/64]]] [Client: XCC/4.2-9, Server: XDBC/4.2-5] in /eval at com.marklogic.xcc.impl.handlers.ServerExceptionHandler.handleResponse(ServerExceptionHandler.java:30) at com.marklogic.xcc.impl.handlers.EvalRequestController.serverDialog(EvalRequestController.java:78) at com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(AbstractRequestController.java:78) at com.marklogic.xcc.impl.SessionImpl.submitRequest(SessionImpl.java:268) at org.warriorgateway.api.dao.XCCDataAccessObject.search(XCCDataAccessObject.java:73) ... 21 more 
> 
> Second Error (after I set the xdbc-eval permission) 
> 
> GINetwork Processing Failure
> 
> com.marklogic.xcc.exceptions.RequestPermissionException: Authorization failed for user 'root'. [Session: user=root, cb={default} [ContentSource: user=root, cb={none} [provider: address=localhost/127.0.0.1:9999, pool=0/64]]] [Client: XCC/4.2-9]
> 
> org.warriorgateway.api.controller.GINetworkException: com.marklogic.xcc.exceptions.RequestPermissionException: Authorization failed for user 'root'.  [Session: user=root, cb={default} [ContentSource: user=root, cb={none} [provider: address=localhost/127.0.0.1:9999, pool=0/64]]] [Client: XCC/4.2-9] at org.warriorgateway.api.dao.XCCDataAccessObject.search(XCCDataAccessObject.java:75) at org.warriorgateway.api.controller.MainController.search(MainController.java:84) at org.warriorgateway.api.servlet.APIServlet.processRequest(APIServlet.java:57) at org.warriorgateway.api.servlet.APIServlet.doGet(APIServlet.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)  	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: com.marklogic.xcc.exceptions.RequestPermissionException: Authorization failed for user 'root'.  [Session: user=root, cb={default} [ContentSource: user=root, cb={none} [provider: address=localhost/127.0.0.1:9999, pool=0/64]]] [Client: XCC/4.2-9] at com.marklogic.xcc.impl.handlers.UnauthorizedHandler.handleResponse(UnauthorizedHandler.java:52) at com.marklogic.xcc.impl.handlers.EvalRequestController.serverDialog(EvalRequestController.java:78) at com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(AbstractRequestController.java:78) at com.marklogic.xcc.impl.SessionImpl.submitRequest(SessionImpl.java:268) at org.warriorgateway.api.dao.XCCDataAccessObject.search(XCCDataAccessObject.java:73) ... 21 more 
> 
> Thanks again,
> 
> Tom
> -- 
> Thomas Hubschman
> Director, Engineering
> tom.hubschman at warriorgateway.org
> Mobile: (415) 612-0359
> www.warriorgateway.org
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

---
Ron Hitchens {mailto:ron at ronsoft.com}   Ronsoft Technologies
     +44 7879 358 212 (voice)          http://www.ronsoft.com
     +1 707 924 3878 (fax)              Bit Twiddling At Its Finest
"No amount of belief establishes any fact." -Unknown






More information about the General mailing list