Comments (5)
Forgot to add: if I deploy the modules to the Modules database, it runs fine with exact same settings... :-/
from corb2.
If you don’t want to have to deploy the modules that you are executing, then append
|ADHOC
to the module paths
https://github.com/marklogic-community/corb2#adhoc-modules
Or apply the INSTALL option
INSTALL=true
https://github.com/marklogic-community/corb2#INSTALL
from corb2.
Unfortunately, adhoc is not an option, since I am importing a library from the transform code, which cannot be found either if it is running with wrong modules database. Same applies to the install option I suspect.
from corb2.
I resorted to using adhoc in combination with a transform module that uses invokefunction to enforce the correct modules database. I would welcome bringing back this feature, it would increase Corb's flexibility.
from corb2.
I think the confusion/issue is that most people would assume that MODULES-DATABASE
would indicate the name of the modules database in which to find the specified module, similar to how XCC-DBNAME
works. However, XCC doesn't allow you to control which modules database is used. You use whichever modules DB is configured for the appserver you are executing against.
MODULES-DATABASE
is used in conjunction with INSTALL=true
to indicate which (modules) database you want to insert modules into.
https://github.com/marklogic-community/corb2/blob/master/src/main/java/com/marklogic/developer/corb/Manager.java#L693
However, that still only works if the MODULES-DATABASE
specified is the modules database for the appserver executing against. I mean, you could insert into any database, but if expecting to run it after insert, then only really will work if you specify the modules DB bound to the appserver you are using.
I don't believe that the XCC API provides a way to obtain the name of the modules database, but we could eval() some code to obtain it, and then allow you to insert the module into the modules DB without having to specify the name of the modules database in MODULES-DATABASE
...
from corb2.
Related Issues (20)
- Update SSL config to use TLSv1.2 HOT 3
- SchemaValidateBatchToFileTask not appending content, overwriting with last item
- Better diagnostics for easily detectable developer errors in QueryUrisLoader
- Corb runs selector even when the job is started with COMMAND=STOP
- Option UseConcMarkSweepGC deprecated
- QueryUrisLoader uses Integer.parseInt to obtain total count
- mangled output when default character encoding is not UTF-8
- Job server web page should update after the job completes HOT 2
- CORB running mjs modules issue HOT 1
- Adjustments for Java 11+ and deprecated JAXB javax.xml.bind package HOT 1
- Require PROCESS-MODULE to be set when using Export*ToFileTask
- TLS certificate failing to connect (but the same cert works fine with MLCP) HOT 4
- Suggestion: add deprecated bind libraries to build.gradle HOT 1
- Support external header (and footer) for Module Executor
- expose Manager execError with hasExecError() method
- improve usage messages
- Illegal base64 character encountered in PrivateKeyDecrypter.doDecrypt for unencrypted values that contain - HOT 1
- OPTIONS_FILE assumes ISO 8859-1 encoding HOT 1
- Control logging from command-line options HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corb2.