Am a newbie to CORB and trying my hands on with the guide :
https://github.com/marklogic-community/corb2/wiki/Hello-World-from-CORB
My CORB JAR file version is :
marklogic-corb-2.4.1
My MarkLogic xcc JAR file version is :
marklogic-xcc-6.0.2
My MarkLogic version is :
8.0-5.5
I replicated the environment on my local system and while executing the script which contains the code as specified in the documentation guide :
THREAD-COUNT=8
URIS-MODULE=selector.xqy|ADHOC
PROCESS-MODULE=transform.xqy|ADHOC
PROCESS-TASK=com.marklogic.developer.corb.ExportBatchToFileTask
EXPORT-FILE-NAME=HelloWorldReport.csv
PRE-BATCH-TASK=com.marklogic.developer.corb.PreBatchUpdateFileTask
EXPORT-FILE-TOP-CONTENT=Title,Author,URI
The Script.sh contains the following code :
LIB=D:/POC
java -cp "$LIB/marklogic-xcc-6.0.2.jar;$LIB/marklogic-corb-2.4.1.jar" \
-DOPTIONS-FILE=my.properties \
com.marklogic.developer.corb.Manager \
xcc://admin:admin@localhost:8061/test
where test is the database name and 8061 is the port number
of the database where the document is loaded
Note : Do we need to setup a XDBC Server separately... Assuming XDBC is not needed for Marklogic version 8
Am getting the following error :
SEVERE: Error initializing CORB ContentSource not available.
com.marklogic.developer.corb.CorbException: ContentSource not available.
at com.marklogic.developer.corb.DefaultContentSourcePool.get(DefaultContentSourcePool.java:117)
at com.marklogic.developer.corb.Manager.prepareModules(Manager.java:680)
at com.marklogic.developer.corb.Manager.init(Manager.java:174)
at com.marklogic.developer.corb.AbstractManager.init(AbstractManager.java:168)
at com.marklogic.developer.corb.Manager.main(Manager.java:129)