From: Loren C. <lor...@gm...> - 2011-04-11 19:52:24
|
I am in the process of creating a Hello World EXPath project. I am uploading a package from my own directory and I am getting the following error when I try to install: Package Repository An error occurred while processing the action: Package http://expath.org/helloworld not found [at line 96, column 49, source: /Users/lcahlander/Documents/workspace/exist/webapp/admin/repo.xqm] In function: repomanager:activate() [152:17:/Users/lcahlander/Documents/workspace/exist/webapp/admin/repo.xqm] Name Description Date Installed Status Action http://expath.org/helloworld application Example Hello World Application. 2011-04-11T14:29:30.485-05:00 Not Installed Install | Remove Important: Installed XQuery libraries written in Java only become visible after a restart of eXist-db. Under: Version: 1.5.0dev SVN Revision: 14153 Build: 20110411 User: admin It does not work even if the file is uploaded from the webapp/repo/packages. Is there a bug in the repo.xqm file? Here is the structure of the build: HelloWorld.xpr (generated by oXygen XML) build.xml expath-pkg.xml repo.xml hw/controller.xql hw/index.xq build.xml <?xml version="1.0" encoding="UTF-8"?> <project default="xar" name="Hello World"> <target name="xar"> <delete file="hello-world-1.0.xar" failonerror="false"/> <zip destfile="hello-world-1.0.xar"> <fileset dir="." excludes=".svn,HelloWorld.xpr"/> </zip> </target> </project> expath-pkg.xml <?xml version="1.0" encoding="UTF-8"?> <package xmlns="http://expath.org/ns/pkg" name="http://expath.org/helloworld" abbrev="hw" version="0.1" spec="1.0"> <title>Hello World</title> </package> repo.xml <?xml version="1.0" encoding="UTF-8"?> <meta xmlns="http://exist-db.org/xquery/repo"> <author>Loren Cahlander</author> <website>http://www.syntactica.com</website> <license>GNU-LGPL</license> <copyright>true</copyright> <description>Example Hello World Application.</description> <type>application</type> <status>experimental</status> </meta> hw/controller.xql xquery version "1.0"; (:~ controller.xql for URL rewriting. :) if ($exist:path eq '/') then <dispatch xmlns="http://exist.sourceforge.net/NS/exist"> <redirect url="index.xq"/> </dispatch> hw/index.xq xquery version "1.0"; let $title := "Hello World" return <html> <head> <title>{$title}</title> </head> <body> <h1>{$title}</h1> </body> </html> |