Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

ml local deploy modules returns 404 error -- need to update url-rewriter property #208

Open
ghost opened this issue May 23, 2015 · 5 comments
Milestone

Comments

@ghost
Copy link

ghost commented May 23, 2015

While attempting to install demo-cat locally with MarkLogic 8, I ran into a problem with the ml local deploy modules command, which was returning a 404 Not Found error.

I found the related Roxy issue #370.

I updated the following setting in my build.properties file.

# deploy/build.properties file
# The Roxy rewriter....
url-rewriter=/MarkLogic/rest-api/rewriter.xml

I then ran ml local bootstrap and ml local restart, and was then able to successfully complete the ml local deploy modules, and start up the application.

I think the above is isolated to ML8, so may just need an update to the readme instructions.

UPDATE: Strangely, when I tried to re-run ml local deploy modules, I began to receive a 500: RESTAPI-UNSUPPORTEDPROP error. I found related Roxy issue #336, and so removed the <error-format> line from rest-api/config/properties.xml file, and was able to then re-run deploy modules without issue.

I'm not sure why the first pass was successful, and subsequent runs picked up the <error-format> element.

@grtjn
Copy link
Contributor

grtjn commented May 26, 2015

I think you ran against master branch. The latter issue with error-format was fixed in develop branch. The first wasn't fixed because we wanted to be able to deploy against both ML 8 and ML 7. You have to put that rewriter line in the env properties, for instance deploy/local.properties.

We'll consider making ML 8 the default once we have released the current develop branch into master..

@ghost
Copy link
Author

ghost commented May 28, 2015

Thanks Geert.

Yes, I see now that the <error-format> was removed from develop branch back in March. Sorry for the confusion.

Just wanted to log this, to help anyone else that might be struggling with ML 8.

I've added pull request #209 to update the comments in build.properties.

@grtjn
Copy link
Contributor

grtjn commented May 28, 2015

Thanks for the PR!

@grtjn grtjn closed this as completed May 28, 2015
grtjn added a commit that referenced this issue May 28, 2015
Address issue #208: update comments in build.properties for ML 8
mariannemyers pushed a commit to mariannemyers/demo-cat that referenced this issue Jul 9, 2015
Address issue marklogic-community#208: update comments in build.properties for ML 8
@grtjn grtjn modified the milestone: 1.0.0 Apr 25, 2016
@patrickmcelwee
Copy link
Contributor

Can we make this the default now? (I just ran into this issue and ate up some time figuring out what was going on.)

@grtjn
Copy link
Contributor

grtjn commented May 10, 2016

Isn't it solved in develop branch yet? Latest Roxy will also auto-compensate. Maybe we should upgrade..

grtjn pushed a commit to grtjn/demo-cat that referenced this issue Jul 5, 2016
…rties for ML 8

Update comments in build.properties to indicate url-rewriter change required for ML version 8.
grtjn added a commit to grtjn/demo-cat that referenced this issue Jul 5, 2016
Address issue marklogic-community#208: update comments in build.properties for ML 8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants