admin管理员组文章数量:1404923
I am using MarkLogic 11.0.0 and Gradle 8.13 for module deployment. My gradle.properties file is as follows:
mlHost=localhost
mlRestPort=9090
mlUsername=admin
mlPassword=admin
mlAuthentication=basic
I have already created an HTTP server on port 9090 and attached it to the appropriate content and modules database.
However, when I run the following command:
gradle mlLoadModules
I get the following error:
Execution failed for task ':mlLoadModules'.
> Local message: config/properties write failed: Method Not Allowed.
Server Message: Server (not a REST instance?) did not respond with an expected REST Error message.
Can anyone please suggest how to resolve this issue?
I am using MarkLogic 11.0.0 and Gradle 8.13 for module deployment. My gradle.properties file is as follows:
mlHost=localhost
mlRestPort=9090
mlUsername=admin
mlPassword=admin
mlAuthentication=basic
I have already created an HTTP server on port 9090 and attached it to the appropriate content and modules database.
However, when I run the following command:
gradle mlLoadModules
I get the following error:
Execution failed for task ':mlLoadModules'.
> Local message: config/properties write failed: Method Not Allowed.
Server Message: Server (not a REST instance?) did not respond with an expected REST Error message.
Can anyone please suggest how to resolve this issue?
Share Improve this question asked Mar 9 at 6:03 Dharmendra Kumar SinghDharmendra Kumar Singh 1979 bronze badges 2- How did you create the 9090 appserver (manually or configured via ml-gradle deploy)? Was it created as a REST server, or just a plain HTTP appserver? What is the appserver "URL Rewriter" configured to use right now? – Mads Hansen Commented Mar 9 at 13:00
- @MadsHansen I have created it manually and it is just HTTP server on 9090 Port – Dharmendra Kumar Singh Commented Mar 10 at 6:15
1 Answer
Reset to default 0When you configure mlRestPort=9090
then ml-gradle expects the application server to be a REST API server. A REST API instance is an HTTP App Server specially configured to service HTTP requests against the API.
You can configure and create the application server via ml-gradle: https://github/marklogic/ml-gradle/wiki/Resource-reference#rest-apis
If you were to create the appserver manually, then the documentation explains how to create an instance.
But if this is an existing application server, you could set that application server URL Rewriter to use "/MarkLogic/rest-api/rewriter.xml
" and then should be able to proceed.
本文标签:
版权声明:本文标题:marklogic - Gradle 'mlLoadModules' failing with error: configproperties write failed: Method Not Allowed - Stack 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744876926a2629969.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论