Did you restart eXist?

You also forgot to add to your XQuery script:

declare namespace scheduler="http://exist-db.org/xquery/scheduler";




I would also do the following:

Move step 1 to the end before restarting eXist.  Either that or change the file to be edited to conf.xml.tmpl.  Running build.sh rebuilds conf.xml and your edit disappears.

I, personally, would eliminate the copying the jar file step and then run 'build.sh rebuild'

Sent from my iPad

On Nov 27, 2013, at 9:54 PM, Nick Sincaglia <nsincaglia@nuemeta.com> wrote:

I have eXist-db v 2.1 running right now on a 64 bit EC2 instance.

I am unable to get the Quartz scheduler module to be recognized. I was wondering if someone might be able help me locate my error. Here is what I have done.

1). Commented in the scheduler in $EXIST_HOME/conf.xml
<module uri="http://exist-db.org/xquery/scheduler"          class="org.exist.xquery.modules.scheduler.SchedulerModule" />

2). Enabled the scheduler in the $EXIST_HOME/extensions/build.properties file
# Scheduler module
include.module.scheduler = true

3). Made sure the scheduler jar was in the $EXIST_HOME/lib/extensions folder
-rw-r--r-- 1 root root    7623 Nov 28 03:05 exist-scheduler.jar

4). I reran the build script from $EXIST_HOME
sudo ./build.sh

5). Then I signed the jar
sudo ./build.sh -f build/scripts/jarsigner.xml

6). I then opened up eXide and tried to run the following Xquery program.
xquery version "3.0";
let $schedule := scheduler:get-scheduled-jobs()
return $schedule

It complains that it can not compile xquery: err:XPST0081 No namespace defined for prefix scheduler

Can anyone tell me what I have done wrong or if I have missed a step?


Below is the details to my build and jar signing.

NueMetaTest#2$ sudo ./build.sh
WARNING: JAVA_HOME not found in your environment.
Starting Ant...

java
Buildfile: /home/ec2-user/exist/build.xml

prepare:
    [echo] -------------------------
    [echo] eXist 2.1 build
    [echo] -------------------------
    [echo] GIT revision
    [echo]
    [echo] Apache Ant(TM) version 1.8.2 compiled on December 20 2010
    [echo] -------------------------
    [echo]
    [echo] basedir=/home/ec2-user/exist
    [copy] Copying 1 file to /home/ec2-user/exist/webapp/WEB-INF

compile:
    [echo] Compiling with Java 1.6 from 1.6 source to 1.6 target, debug on, optimize on, deprecation off
   [javac] Compiling 1 source file to /home/ec2-user/exist/build/classes

check.aspects.uptodate:

compile-aspectj:

jar:
    [copy] Copying 1 file to /home/ec2-user/exist/build/classes/org/exist
    [echo] Creating exist.jar ...
     [jar] Building jar: /home/ec2-user/exist/exist.jar
    [echo] Creating start.jar ...
     [jar] Building jar: /home/ec2-user/exist/start.jar
    [echo] Creating exist-optional.jar ...
     [jar] Building jar: /home/ec2-user/exist/exist-optional.jar

wrapper:

prepare:
    [echo] --------------------------------------------------
    [echo] Setting up Java Service Wrapper
    [echo] --------------------------------------------------
  [delete] Deleting directory /home/ec2-user/exist/tools/wrapper/logs
   [mkdir] Created dir: /home/ec2-user/exist/tools/wrapper/logs
  [delete] Deleting directory /home/ec2-user/exist/tools/wrapper/work
   [mkdir] Created dir: /home/ec2-user/exist/tools/wrapper/work

compile:

extension-betterform:

install:
    [echo]
    [echo]             Add betterFORM config parameters to eXist to /home/ec2-user/exist/extensions/betterform/../../webapp/WEB-INF/web.xml
    [echo]         

patchWebXml:
    [echo] XSLT Generating /home/ec2-user/exist/extensions/betterform/../../webapp/WEB-INF/web.xml.bf
    [move] Moving 1 file to /home/ec2-user/exist/extensions/betterform/uninstall
    [move] Moving 1 file to /home/ec2-user/exist/webapp/WEB-INF
    [echo]
    [echo]             Deploy betterFORM resources to eXist webapp (/home/ec2-user/exist/extensions/betterform/../../webapp/WEB-INF/)
    [echo]         

deployBFResources:
    [echo]
    [echo]             Creating uninstall folder.
    [echo]         
    [echo]
    [echo]             Copying betterFORM configuration files to WEB-INF dir.
    [echo]         

extension-modules:

prepare-ivy:
[ivy:retrieve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: url = jar:file:/home/ec2-user/exist/tools/ant/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.exist.xquery.modules#extensions-modules;working@domU-12-31-39-0E-B1-E3
[ivy:retrieve]    confs: [default]
[ivy:retrieve]    found net.sourceforge.cssparser#cssparser;0.9.5 in public
[ivy:retrieve]    found org.w3c.css#sac;1.3 in public
[ivy:retrieve] :: resolution report :: resolve 385ms :: artifacts dl 9ms
   ---------------------------------------------------------------------
   |                  |            modules            ||   artifacts   |
   |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
   ---------------------------------------------------------------------
   |      default     |   2   |   0   |   0   |   0   ||   2   |   0   |
   ---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: org.exist.xquery.modules#extensions-modules
[ivy:retrieve]    confs: [default]
[ivy:retrieve]    0 artifacts copied, 2 already retrieved (0kB/4ms)

check-xslfo-libs-available:

prepare-xslfo:

prepare-simpleql:

prepare-jfreechart:

prepare-memcached:

prepare-xmpp:

prepare-xmlcalabash:

prepare-expathrepo:
    [echo] ------------------------------------------------------
    [echo] Downloading libraries required by the expath package module
    [echo] ------------------------------------------------------

prepare-cqlparser:

prepare:

compile:
    [echo] ---------------------------
    [echo] Compiling extension modules
    [echo] ---------------------------
    [echo] Compiling with Java 1.6 from 1.6 source to 1.6 target, debug on, optimize on, deprecation off

finish-persistentlogin:

jar:
    [echo] Creating exist-modules.jar ...

extension-xprocxq:

clean:

clean:
  [delete] Deleting directory /home/ec2-user/exist/extensions/xprocxq/main/dist
   [mkdir] Created dir: /home/ec2-user/exist/extensions/xprocxq/main/dist
  [delete] Deleting: /home/ec2-user/exist/lib/extensions/xprocxq.jar

all:
    [echo] -------------------------------------
    [echo] Building XProcXQ
    [echo] -------------------------------------

clean:
  [delete] Deleting directory /home/ec2-user/exist/extensions/xprocxq/main/dist
   [mkdir] Created dir: /home/ec2-user/exist/extensions/xprocxq/main/dist

exist-jar:
     [zip] Building zip: /home/ec2-user/exist/extensions/xprocxq/main/dist/xprocxq.jar
    [copy] Copying 1 file to /home/ec2-user/exist/lib/extensions

extensions-xar:

prepare:

setup:

download:

download-xar:

download:

download-xar:

download:

download-xar:

test-compile:
    [echo] Compiling with Java 1.6 from 1.6 source to 1.6 target, debug on, optimize on, deprecation off

all:

all:
    [echo] existdb
    [echo] basedir=/home/ec2-user/exist/build/scripts
    [echo] existhome.dir=/home/ec2-user/exist

all:
    [echo] ====================================================================
    [echo] Extension 'contentextraction' ('contentextraction')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'debugger' ('debugger')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'exiftool' ('exiftool')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'exiftool'

compile:
    [echo] Compiling 'exiftool'

init:
    [echo] Initializing 'exiftool'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'exiftool'

compile-test:

all:
    [echo] ====================================================================
    [echo] Extension 'expath-20130805' ('expath-20130805')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'expath-20130805'

compile:
    [echo] Compiling 'expath-20130805'

init:
    [echo] Initializing 'expath-20130805'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'expath-20130805'

compile-test:

all:
    [echo] ====================================================================
    [echo] Extension 'exquery-request-module' ('exquery-request-module')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'exquery-request-module'

compile:
    [echo] Compiling 'exquery-request-module'

init:
    [echo] Initializing 'exquery-request-module'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'exquery-request-module'

compile-test:

all:
    [echo] ====================================================================
    [echo] Extension 'restxq' ('restxq')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'restxq'

compile:
    [echo] Compiling 'restxq'

init:
    [echo] Initializing 'restxq'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'restxq'

compile-test:
    [echo] Compiling tests 'restxq'

all:
    [echo] ====================================================================
    [echo] Extension 'fluent' ('fluent')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'fluent'

compile:
    [echo] Compiling 'fluent'

init:
    [echo] Initializing 'fluent'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'fluent'

compile-test:
    [echo] Compiling tests 'fluent'

all:
    [echo] ====================================================================
    [echo] Extension 'imagescaling' ('imagescaling')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'index-lucene' ('lucene')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'index-lucene'

compile:
    [echo] Compiling 'index-lucene'

init:
    [echo] Initializing 'index-lucene'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'index-lucene'

compile-test:
    [echo] Compiling tests 'index-lucene'

all:
    [echo] ====================================================================
    [echo] Extension 'index-ngram' ('ngram')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'index-ngram'

compile:
    [echo] Compiling 'index-ngram'

init:
    [echo] Initializing 'index-ngram'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'index-ngram'

compile-test:
    [echo] Compiling tests 'index-ngram'

all:
    [echo] ====================================================================
    [echo] Extension 'index-sort' ('sort')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'index-sort'

compile:
    [echo] Compiling 'index-sort'

init:
    [echo] Initializing 'index-sort'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'index-sort'

compile-test:
    [echo] Compiling tests 'index-sort'

all:
    [echo] ====================================================================
    [echo] Extension 'index-spatial' ('spatial')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'metadata-interface' ('metadata-interface')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'metadata-sleepycat' ('metadata-sleepycat')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'netedit' ('netedit')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'replication' ('replication')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'scheduler' ('scheduler')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'security-ldap' ('security-ldap')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'security-ldap'

compile:
    [echo] Compiling 'security-ldap'

init:
    [echo] Initializing 'security-ldap'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'security-ldap'

compile-test:

all:
    [echo] ====================================================================
    [echo] Extension 'security-oauth' ('security-oauth')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'security-openid' ('security-openid')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'svn' ('svn')
    [echo] ====================================================================

dist:

all:
    [echo] ====================================================================
    [echo] Extension 'tomcat-realm' ('tomcat-realm')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'tomcat-realm'

compile:
    [echo] Compiling 'tomcat-realm'

init:
    [echo] Initializing 'tomcat-realm'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'tomcat-realm'

compile-test:

all:
    [echo] ====================================================================
    [echo] Extension 'versioning' ('versioning')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'versioning'

compile:
    [echo] Compiling 'versioning'

init:
    [echo] Initializing 'versioning'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'versioning'

compile-test:

all:
    [echo] ====================================================================
    [echo] Extension 'webdav' ('webdav')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'webdav'

compile:
    [echo] Compiling 'webdav'

init:
    [echo] Initializing 'webdav'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'webdav'

compile-test:

all:
    [echo] ====================================================================
    [echo] Extension 'xUnit' ('xUnit')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'xUnit'

init:
    [echo] Initializing 'xUnit'

download-3rd-party:

compile:
    [echo] Compiling 'xUnit'

all:
    [echo] ====================================================================
    [echo] Extension 'xqdoc' ('xqdoc')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'xqdoc'

compile:
    [echo] Compiling 'xqdoc'

init:
    [echo] Initializing 'xqdoc'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'xqdoc'

compile-test:
    [echo] Compiling tests 'xqdoc'

all:
    [echo] ====================================================================
    [echo] Extension 'xslt' ('xslt')
    [echo] ====================================================================

dist:
    [echo] Generating jar for 'xslt'

compile:
    [echo] Compiling 'xslt'

init:
    [echo] Initializing 'xslt'

download-3rd-party:

compile-src:
    [echo] Compiling sources 'xslt'

compile-test:
    [echo] Compiling tests 'xslt'

prepare:

compile:

jar:

sign:
    [echo] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    [echo] !! Signing jar files ...
    [echo] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

jnlp-prepare:

jnlp-keygen:

jnlp-sign-exist:
 [signjar] Signing JAR: /home/ec2-user/exist/exist-optional.jar to /home/ec2-user/exist/exist-optional.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/exist.jar to /home/ec2-user/exist/exist.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/start.jar to /home/ec2-user/exist/start.jar as exist
    [echo] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    [echo] !! Please run '$EXIST_HOME/build.[bat|sh] -f build\scripts\jarsigner.xml'
    [echo] !! once manually to use a default keystore to sign the core jars or put !!
    [echo] !! your own certificate in $EXIST_HOME/key.store and sign for enabling webstart !!
    [echo] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

BUILD SUCCESSFUL
Total time: 1 minute 1 second

NueMetaTest#2$ sudo ./build.sh -f build/scripts/jarsigner.xml
WARNING: JAVA_HOME not found in your environment.
Starting Ant...

java
Buildfile: /home/ec2-user/exist/build/scripts/jarsigner.xml

jnlp-prepare:

jnlp-keygen:

jnlp-sign-exist:
 [signjar] Signing JAR: /home/ec2-user/exist/exist-optional.jar to /home/ec2-user/exist/exist-optional.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/exist.jar to /home/ec2-user/exist/exist.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/start.jar to /home/ec2-user/exist/start.jar as exist

jnlp-sign-core:
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/antlr-2.7.7.jar to /home/ec2-user/exist/lib/core/antlr-2.7.7.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/cglib-nodep-2.2.jar to /home/ec2-user/exist/lib/core/cglib-nodep-2.2.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/clj-ds-0.0.1.jar to /home/ec2-user/exist/lib/core/clj-ds-0.0.1.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/commons-codec-1.7.jar to /home/ec2-user/exist/lib/core/commons-codec-1.7.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/commons-collections-3.2.1.jar to /home/ec2-user/exist/lib/core/commons-collections-3.2.1.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/commons-io-2.4.jar to /home/ec2-user/exist/lib/core/commons-io-2.4.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/commons-logging-1.1.1.jar to /home/ec2-user/exist/lib/core/commons-logging-1.1.1.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/commons-pool-1.6.jar to /home/ec2-user/exist/lib/core/commons-pool-1.6.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/excalibur-cli-1.0.jar to /home/ec2-user/exist/lib/core/excalibur-cli-1.0.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/gnu-crypto-2.0.1-min.jar to /home/ec2-user/exist/lib/core/gnu-crypto-2.0.1-min.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/jEdit-syntax.jar to /home/ec2-user/exist/lib/core/jEdit-syntax.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/jackson-core-2.1.2.jar to /home/ec2-user/exist/lib/core/jackson-core-2.1.2.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/jline-0.9.94.jar to /home/ec2-user/exist/lib/core/jline-0.9.94.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/jta-1.1.jar to /home/ec2-user/exist/lib/core/jta-1.1.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/log4j-1.2.17.jar to /home/ec2-user/exist/lib/core/log4j-1.2.17.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/pkg-repo.jar to /home/ec2-user/exist/lib/core/pkg-repo.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/quartz-2.1.6.jar to /home/ec2-user/exist/lib/core/quartz-2.1.6.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/slf4j-api-1.7.2.jar to /home/ec2-user/exist/lib/core/slf4j-api-1.7.2.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/slf4j-log4j12-1.7.2.jar to /home/ec2-user/exist/lib/core/slf4j-log4j12-1.7.2.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/sunxacml-1.2.jar to /home/ec2-user/exist/lib/core/sunxacml-1.2.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/ws-commons-util-1.0.2.jar to /home/ec2-user/exist/lib/core/ws-commons-util-1.0.2.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/xmldb.jar to /home/ec2-user/exist/lib/core/xmldb.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/xmlrpc-client-3.1.3.jar to /home/ec2-user/exist/lib/core/xmlrpc-client-3.1.3.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/xmlrpc-common-3.1.3.jar to /home/ec2-user/exist/lib/core/xmlrpc-common-3.1.3.jar as exist
 [signjar] Signing JAR: /home/ec2-user/exist/lib/core/xmlrpc-server-3.1.3.jar to /home/ec2-user/exist/lib/core/xmlrpc-server-3.1.3.jar as exist

jnlp-all:

BUILD SUCCESSFUL
Total time: 1 minute 29 seconds


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
Exist-open@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open