initial installation observation

Thursday, 19 December 2013 · 13 messages · last reply 21 Dec 2013
E
e-letter19 Dec 2013 10:38 #
Readers, Basex772 jar file was installed into a directory /usr/local/basex A symbolic link was created: cat >> /usr/local/bin/basex java -jar /usr/local/basex/basex772.jar In normal user home directory, basex started from command terminal, but the command line options are not active, e.g. 'basex -h' does not show the help file in the command terminal, but starts basex standalone. Also command terminal 'basex -i /path/to/existing/xmlfile.xml' does not open the xml file, but starts basex.
CG
Christian Grün19 Dec 2013 11:43 #
Hi,
Quoted text · e-letter · 5 lines
> Basex772 jar file was installed into a directory /usr/local/basex > A symbolic link was created: > > cat >> /usr/local/bin/basex > java -jar /usr/local/basex/basex772.jar
I guess the link was created by yourself and, if run, it starts the BaseX GUI? In that case, the following Java call should do what you need:
  java -cp /usr/local/basex/basex772.jar org.basex.BaseX
You can optionally check out the following Wiki article to see what other startup options may be helpful: http://docs.basex.org/wiki/Start_Scripts Those scripts are already shipped with the BaseX ZIP version, which also includes support for building web applications, etc. Hope this helps, Christian
E
e-letter19 Dec 2013 12:19 #
Quoted text · Christian Grün · 13 lines
On 19/12/2013, Christian Grün <christian.gruen at gmail.com> wrote: > Hi, > >> Basex772 jar file was installed into a directory /usr/local/basex >> A symbolic link was created: >> >> cat >> /usr/local/bin/basex >> java -jar /usr/local/basex/basex772.jar > > I guess the link was created by yourself and, if run, it starts the > BaseX GUI? In that case, the following Java call should do what you > need: >
Yes, the gui starts
Quoted text · Christian Grün · 2 lines
> java -cp /usr/local/basex/basex772.jar org.basex.BaseX >
The link was edited to: #!/bin/bash #exec java -jar /usr/local/basex/basex772.jar exec java -cp /usr/local/basex/basex772.jar org.basex.BaseX This activates the command terminal: $ basex BaseX 7.7.2 [Standalone] Try help to get more information.
Quoted text · Christian Grün · 5 lines
> You can optionally check out the following Wiki article to see what > other startup options may be helpful: > > http://docs.basex.org/wiki/Start_Scripts >
Copied the basexhttp, then changed permissions to 'u+x', then tried to activate:
$ basexhttp
/usr/local/bin/basexhttp: line 11: cd: /usr/local/../basex: No such
file or directory
Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXHTTP
Caused by: java.lang.ClassNotFoundException: org.basex.BaseXHTTP
	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.basex.BaseXHTTP. Program will exit.
Then line 11 edited: BXCORE="$( cd -P "/usr/local/basex" && pwd )"
$ basexhttp
Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXHTTP
Caused by: java.lang.ClassNotFoundException: org.basex.BaseXHTTP
	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.basex.BaseXHTTP. Program will exit.
What must I do to solve this error?
CG
Christian Grün19 Dec 2013 12:29 #
…check out the zip distribution, as it’s explained in our Wiki: http://docs.basex.org/wiki/Startup#BaseX_HTTP_Server ___________________________ Dr. Christian Grün DBIS Working Group, Computer Science Room E209, Box 188, D-78457 Konstanz http://www.inf.uni-konstanz.de/~gruen
Quoted text · Christian Grün · 69 lines
On Thu, Dec 19, 2013 at 12:19 PM, e-letter <inpost at gmail.com> wrote: > On 19/12/2013, Christian Grün <christian.gruen at gmail.com> wrote: >> Hi, >> >>> Basex772 jar file was installed into a directory /usr/local/basex >>> A symbolic link was created: >>> >>> cat >> /usr/local/bin/basex >>> java -jar /usr/local/basex/basex772.jar >> >> I guess the link was created by yourself and, if run, it starts the >> BaseX GUI? In that case, the following Java call should do what you >> need: >> > > Yes, the gui starts > >> java -cp /usr/local/basex/basex772.jar org.basex.BaseX >> > > The link was edited to: > > #!/bin/bash > #exec java -jar /usr/local/basex/basex772.jar > exec java -cp /usr/local/basex/basex772.jar org.basex.BaseX > > This activates the command terminal: > > $ basex > BaseX 7.7.2 [Standalone] > Try help to get more information. > >> You can optionally check out the following Wiki article to see what >> other startup options may be helpful: >> >> http://docs.basex.org/wiki/Start_Scripts >> > > Copied the basexhttp, then changed permissions to 'u+x', then tried to activate: > > $ basexhttp > /usr/local/bin/basexhttp: line 11: cd: /usr/local/../basex: No such > file or directory > Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXHTTP > Caused by: java.lang.ClassNotFoundException: org.basex.BaseXHTTP > at java.net.URLClassLoader$1.run(URLClassLoader.java:217) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:205) > at java.lang.ClassLoader.loadClass(ClassLoader.java:321) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) > at java.lang.ClassLoader.loadClass(ClassLoader.java:266) > Could not find the main class: org.basex.BaseXHTTP. Program will exit. > > Then line 11 edited: > > BXCORE="$( cd -P "/usr/local/basex" && pwd )" > > $ basexhttp > Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXHTTP > Caused by: java.lang.ClassNotFoundException: org.basex.BaseXHTTP > at java.net.URLClassLoader$1.run(URLClassLoader.java:217) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:205) > at java.lang.ClassLoader.loadClass(ClassLoader.java:321) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) > at java.lang.ClassLoader.loadClass(ClassLoader.java:266) > Could not find the main class: org.basex.BaseXHTTP. Program will exit. > > What must I do to solve this error?
E
e-letter19 Dec 2013 22:32 #
Quoted text · basex-talk-request at mailman.uni-konstanz.de · 15 lines
On 19/12/2013, basex-talk-request at mailman.uni-konstanz.de <basex-talk-request at mailman.uni-konstanz.de> wrote: > Today's Topics: > > 4. Re: initial installation observation (Christian Gr?n) > ------------------------------ > > Message: 4 > Date: Thu, 19 Dec 2013 12:29:06 +0100 > Subject: Re: [basex-talk] initial installation observation > >>> You can optionally check out the following Wiki article to see what >>> other startup options may be helpful: >>> >>> http://docs.basex.org/wiki/Start_Scripts
Starting the command terminal fails: $ basex BaseX 7.7.2 [Standalone] Try help to get more information.
Quoted text · Christian Grün · 1 line
> OPEN xmldatabasefile.xml
Stopped at ., 1/21: Syntax: OPEN [name] ([path]) Open database. Opens the database [name], filtered by [path].
Quoted text · Christian Grün · 1 line
> OPEN xmldatabasefile.xml /path/to/file
Stopped at ., 1/21: Syntax: OPEN [name] ([path]) Open database. Opens the database [name], filtered by [path].
Quoted text · Christian Grün · 1 line
> OPEN xmldatabasefile.xml, /path/to/file
Stopped at ., 1/21: Syntax: OPEN [name] ([path]) Open database. Opens the database [name], filtered by [path]. How to open the database file, please?
-- basex772
CG
Christian Grün19 Dec 2013 22:48 #
I would be pleased if you could first check out our documentation; it contains all the information you seem to be looking for.
Quoted text · e-letter · 54 lines
Am 19.12.2013 22:32 schrieb "e-letter" <inpost at gmail.com>: > On 19/12/2013, basex-talk-request at mailman.uni-konstanz.de > <basex-talk-request at mailman.uni-konstanz.de> wrote: > > Today's Topics: > > > > 4. Re: initial installation observation (Christian Gr?n) > > ------------------------------ > > > > Message: 4 > > Date: Thu, 19 Dec 2013 12:29:06 +0100 > > Subject: Re: [basex-talk] initial installation observation > > > > >>> You can optionally check out the following Wiki article to see what > >>> other startup options may be helpful: > >>> > >>> http://docs.basex.org/wiki/Start_Scripts > > Starting the command terminal fails: > > $ basex > BaseX 7.7.2 [Standalone] > Try help to get more information. > > > OPEN xmldatabasefile.xml > Stopped at ., 1/21: > Syntax: OPEN [name] ([path]) > Open database. > > Opens the database [name], filtered by [path]. > > > OPEN xmldatabasefile.xml /path/to/file > Stopped at ., 1/21: > Syntax: OPEN [name] ([path]) > Open database. > > Opens the database [name], filtered by [path]. > > > OPEN xmldatabasefile.xml, /path/to/file > Stopped at ., 1/21: > Syntax: OPEN [name] ([path]) > Open database. > > Opens the database [name], filtered by [path]. > > How to open the database file, please? > > -- > basex772 > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
E
e-letter19 Dec 2013 23:04 #
Quoted text · Christian Grün · 53 lines
On 19/12/2013, Christian Grün <christian.gruen at gmail.com> wrote: > I would be pleased if you could first check out our documentation; it > contains all the information you seem to be looking for. > Am 19.12.2013 22:32 schrieb "e-letter" <inpost at gmail.com>: > >> On 19/12/2013, basex-talk-request at mailman.uni-konstanz.de >> <basex-talk-request at mailman.uni-konstanz.de> wrote: >> > Today's Topics: >> > >> > 4. Re: initial installation observation (Christian Gr?n) >> > ------------------------------ >> > >> > Message: 4 >> > Date: Thu, 19 Dec 2013 12:29:06 +0100 >> > Subject: Re: [basex-talk] initial installation observation >> > >> >> >>> You can optionally check out the following Wiki article to see what >> >>> other startup options may be helpful: >> >>> >> >>> http://docs.basex.org/wiki/Start_Scripts >> >> Starting the command terminal fails: >> >> $ basex >> BaseX 7.7.2 [Standalone] >> Try help to get more information. >> >> > OPEN xmldatabasefile.xml >> Stopped at ., 1/21: >> Syntax: OPEN [name] ([path]) >> Open database. >> >> Opens the database [name], filtered by [path]. >> >> > OPEN xmldatabasefile.xml /path/to/file >> Stopped at ., 1/21: >> Syntax: OPEN [name] ([path]) >> Open database. >> >> Opens the database [name], filtered by [path]. >> >> > OPEN xmldatabasefile.xml, /path/to/file >> Stopped at ., 1/21: >> Syntax: OPEN [name] ([path]) >> Open database. >> >> Opens the database [name], filtered by [path]. >> >> How to open the database file, please? >> >> -- >> basex772
According to the page 'standalone' (http://docs.basex.org/wiki/Command-Line_Options#BaseX_Standalone) basex -h will cause production of a list of commands, but this is not seen: $ basex -h BaseX 7.7.2 [Standalone] Try help to get more information. $ basex -i xmldatabasefile.xml BaseX 7.7.2 [Standalone] Try help to get more information.
Quoted text · Christian Grün · 2 lines
> > help
Try HELP [...] to get info on a specific command. ADD (TO [path]) [input] Add resource to database. ALTER [DATABASE|USER] [...] Alter database name or user password. CHECK [input] Open or create database. CLOSE Close current database. COPY [name] [newname] Copy database. CREATE [BACKUP|DATABASE|EVENT|INDEX|USER] [...] Create database, index, user, backup or event. CS [query] Run XQuery and set result as new context set. DELETE [path] Delete resources from database. DROP [BACKUP|DATABASE|EVENT|INDEX|USER] [...] Drop database, index, user, backup or event. EXIT Exit application. EXPORT [path] Export database to XML. FIND [keywords] Run a keyword query. FLUSH Flush database. GET [option] Show global option. GRANT [NONE|READ|WRITE|CREATE|ADMIN] (ON [database]) TO [user] Grant user permissions. HELP ([command]) Get help on BaseX commands. INFO ([DATABASE|INDEX|STORAGE]) Show information on current database. INSPECT Perform integrity checks. KILL [name] Kill user sessions. LIST ([name] ([path])) List databases or resources of database. OPEN [name] ([path]) Open database. OPTIMIZE (ALL) Optimize the database. PASSWORD ([password]) Change password. RENAME [path] [newpath] Rename resources in database. REPLACE [path] [input] Replace resources in database. REPO [DELETE|INSTALL|LIST] Install, delete or list packages. RESTORE [name-(date)] Restore database. RETRIEVE [path] Retrieve raw data. RUN [path] Run query or command script. EXECUTE [input] Execute command script. SET [option] ([value]) Set global options. SHOW [BACKUPS|EVENTS|SESSIONS|USERS] Show server information. STORE (TO [path]) [input] Store raw data. XQUERY [query] Run XQuery.
Quoted text · Christian Grün · 1 line
>
AH
Alexander Holupirek20 Dec 2013 00:20 #
Quoted text · Christian Grün · 143 lines
On 19.12.2013, at 23:04, e-letter <inpost at gmail.com> wrote: > On 19/12/2013, Christian Grün <christian.gruen at gmail.com> wrote: >> I would be pleased if you could first check out our documentation; it >> contains all the information you seem to be looking for. >> Am 19.12.2013 22:32 schrieb "e-letter" <inpost at gmail.com>: >> >>> On 19/12/2013, basex-talk-request at mailman.uni-konstanz.de >>> <basex-talk-request at mailman.uni-konstanz.de> wrote: >>>> Today's Topics: >>>> >>>> 4. Re: initial installation observation (Christian Gr?n) >>>> ------------------------------ >>>> >>>> Message: 4 >>>> Date: Thu, 19 Dec 2013 12:29:06 +0100 >>>> Subject: Re: [basex-talk] initial installation observation >>>> >>> >>>>>> You can optionally check out the following Wiki article to see what >>>>>> other startup options may be helpful: >>>>>> >>>>>> http://docs.basex.org/wiki/Start_Scripts >>> >>> Starting the command terminal fails: >>> >>> $ basex >>> BaseX 7.7.2 [Standalone] >>> Try help to get more information. >>> >>>> OPEN xmldatabasefile.xml >>> Stopped at ., 1/21: >>> Syntax: OPEN [name] ([path]) >>> Open database. >>> >>> Opens the database [name], filtered by [path]. >>> >>>> OPEN xmldatabasefile.xml /path/to/file >>> Stopped at ., 1/21: >>> Syntax: OPEN [name] ([path]) >>> Open database. >>> >>> Opens the database [name], filtered by [path]. >>> >>>> OPEN xmldatabasefile.xml, /path/to/file >>> Stopped at ., 1/21: >>> Syntax: OPEN [name] ([path]) >>> Open database. >>> >>> Opens the database [name], filtered by [path]. >>> >>> How to open the database file, please? >>> >>> -- >>> basex772 > > According to the page 'standalone' > (http://docs.basex.org/wiki/Command-Line_Options#BaseX_Standalone) > > basex -h > > will cause production of a list of commands, but this is not seen: > > $ basex -h > BaseX 7.7.2 [Standalone] > Try help to get more information. > > $ basex -i xmldatabasefile.xml > BaseX 7.7.2 [Standalone] > Try help to get more information. > >> > >> help > Try HELP [...] to get info on a specific command. > > ADD (TO [path]) [input] > Add resource to database. > ALTER [DATABASE|USER] [...] > Alter database name or user password. > CHECK [input] > Open or create database. > CLOSE > Close current database. > COPY [name] [newname] > Copy database. > CREATE [BACKUP|DATABASE|EVENT|INDEX|USER] [...] > Create database, index, user, backup or event. > CS [query] > Run XQuery and set result as new context set. > DELETE [path] > Delete resources from database. > DROP [BACKUP|DATABASE|EVENT|INDEX|USER] [...] > Drop database, index, user, backup or event. > EXIT > Exit application. > EXPORT [path] > Export database to XML. > FIND [keywords] > Run a keyword query. > FLUSH > Flush database. > GET [option] > Show global option. > GRANT [NONE|READ|WRITE|CREATE|ADMIN] (ON [database]) TO [user] > Grant user permissions. > HELP ([command]) > Get help on BaseX commands. > INFO ([DATABASE|INDEX|STORAGE]) > Show information on current database. > INSPECT > Perform integrity checks. > KILL [name] > Kill user sessions. > LIST ([name] ([path])) > List databases or resources of database. > OPEN [name] ([path]) > Open database. > OPTIMIZE (ALL) > Optimize the database. > PASSWORD ([password]) > Change password. > RENAME [path] [newpath] > Rename resources in database. > REPLACE [path] [input] > Replace resources in database. > REPO [DELETE|INSTALL|LIST] > Install, delete or list packages. > RESTORE [name-(date)] > Restore database. > RETRIEVE [path] > Retrieve raw data. > RUN [path] > Run query or command script. > EXECUTE [input] > Execute command script. > SET [option] ([value]) > Set global options. > SHOW [BACKUPS|EVENTS|SESSIONS|USERS] > Show server information. > STORE (TO [path]) [input] > Store raw data. > XQUERY [query] > Run XQuery.
$ basex -h BaseX 7.8 beta [Standalone] Usage: basex [-bcdiLoqsuvVwxz] [input] [input] Execute input file or expression -b<pars> Bind external query variables -c<input> Execute commands from file or string -d Activate debugging mode -i<input> Open initial file or database -L Append newlines to query results -o<output> Write output to file -q<expr> Execute XQuery expression -s<pars> Set serialization parameter(s) -u Write updates back to original files -v/V Show (all) process info -w Preserve whitespaces from input files -x Show query execution plan -z Skip output of results $ cat /tmp/foo.xml <foo> <bar/> </foo> $ basex -i /tmp/foo.xml BaseX 7.8 beta [Standalone] Try help to get more information.
Quoted text · e-letter · 1 line
> xquery /
<foo>
  <bar/>
</foo>
Query executed in 12.79 ms.
Quoted text · e-letter · 1 line
> exit
Have a nice day. … what's the problem?
E
e-letter20 Dec 2013 00:32 #
Quoted text · Alexander Holupirek · 18 lines
On 19/12/2013, Alexander Holupirek <alexander.holupirek at uni-konstanz.de> wrote: > $ cat /tmp/foo.xml > <foo> > <bar/> > </foo> > $ basex -i /tmp/foo.xml > BaseX 7.8 beta [Standalone] > Try help to get more information. > >> xquery / > <foo> > <bar/> > </foo> > Query executed in 12.79 ms. >> exit > Have a nice day. > > … what's the problem?
xmldatabasefile:
<?xml version="1.0" encoding="utf-8"?>
<!-- Edited by XMLSpy®, taken from http://www.w3schools.com-->
<?xml-stylesheet type='text/xsl" href="xstylesheetexample.xslt" ?>
<bookstore>
	<book
		category="COOKING">
		<title lang="en">Everyday Italian</title>
		<author>Giada De Laurentiis</author>
		<year>2005</year>
		<price>30.00</price>
	</book>
	<book
		category="CHILDREN"
Quoted text · Alexander Holupirek · 1 line
>
		<title lang="en">Harry Potter</title>
		<author>J K. Rowling</author>
		<year>2005</year>
		<price>29.99</price>
	</book>
	<book
		category="WEB"
Quoted text · Alexander Holupirek · 1 line
>
		<title lang="en">XQuery Kick Start</title>
		<author>James McGovern</author>
		<author>Per Bothner</author>
		<author>Kurt Cagle</author>
		<author>James Linn</author>
		<author>Vaidyanathan Nagarajan</author>
		<year>2003</year>
		<price>49.99</price>
	</book>
	<book
		category="WEB"
Quoted text · Alexander Holupirek · 1 line
>
		<title lang="en">Learning XML</title>
		<author>Erik T. Ray</author>
		<year>2003</year>
		<price>39.95</price>
	</book>
</bookstore>
$ basex -i xmldatabasefile.xml BaseX 7.7.2 [Standalone] Try help to get more information.
Quoted text · Alexander Holupirek · 1 line
> xquery /
Stopped at ., 1/2: [XPDY0002] No context item defined to evaluate 'root()'. The response is wrong?
AH
Alexander Holupirek20 Dec 2013 00:46 #
Quoted text · Alexander Holupirek · 72 lines
On 20.12.2013, at 00:32, e-letter <inpost at gmail.com> wrote: > On 19/12/2013, Alexander Holupirek <alexander.holupirek at uni-konstanz.de> wrote: >> $ cat /tmp/foo.xml >> <foo> >> <bar/> >> </foo> >> $ basex -i /tmp/foo.xml >> BaseX 7.8 beta [Standalone] >> Try help to get more information. >> >>> xquery / >> <foo> >> <bar/> >> </foo> >> Query executed in 12.79 ms. >>> exit >> Have a nice day. >> >> … what's the problem? > > xmldatabasefile: > > <?xml version="1.0" encoding="utf-8"?> > <!-- Edited by XMLSpy®, taken from http://www.w3schools.com--> > <?xml-stylesheet type='text/xsl" href="xstylesheetexample.xslt" ?> > <bookstore> > <book > category="COOKING"> > <title lang="en">Everyday Italian</title> > <author>Giada De Laurentiis</author> > <year>2005</year> > <price>30.00</price> > </book> > <book > category="CHILDREN" > > > <title lang="en">Harry Potter</title> > <author>J K. Rowling</author> > <year>2005</year> > <price>29.99</price> > </book> > <book > category="WEB" > > > <title lang="en">XQuery Kick Start</title> > <author>James McGovern</author> > <author>Per Bothner</author> > <author>Kurt Cagle</author> > <author>James Linn</author> > <author>Vaidyanathan Nagarajan</author> > <year>2003</year> > <price>49.99</price> > </book> > <book > category="WEB" > > > <title lang="en">Learning XML</title> > <author>Erik T. Ray</author> > <year>2003</year> > <price>39.95</price> > </book> > </bookstore> > > $ basex -i xmldatabasefile.xml > BaseX 7.7.2 [Standalone] > Try help to get more information. > >> xquery / > Stopped at ., 1/2: > [XPDY0002] No context item defined to evaluate 'root()'. > > The response is wrong?
$ basex -h
BaseX 7.7.2 [Standalone]
Usage: basex [-bcdiLoqsuvVwxz] [input]
  [input]     Execute input file or expression
  -b<pars>    Bind external query variables
  -c<input>   Execute commands from file or string
  -d          Activate debugging mode
  -i<input>   Open initial file or database
  -L          Append newlines to query results
  -o<output>  Write output to file
  -q<expr>    Execute XQuery expression
  -s<pars>    Set serialization parameter(s)
  -u          Write updates back to original files
  -v/V        Show (all) process info
  -w          Preserve whitespaces from input files
  -x          Show query execution plan
  -z          Skip output of results
$ cat db.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Edited by XMLSpy®, taken from http://www.w3schools.com-->
<?xml-stylesheet type='text/xsl" href="xstylesheetexample.xslt" ?>
<bookstore>
  <book category="COOKING">
    <title lang="en">Everyday Italian</title>
    <author>Giada De Laurentiis</author>
    <year>2005</year>
    <price>30.00</price>
  </book>
  <book category="CHILDREN">
    <title lang="en">Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
    <price>29.99</price>
  </book>
  <book category="WEB">
    <title lang="en">XQuery Kick Start</title>
    <author>James McGovern</author>
    <author>Per Bothner</author>
    <author>Kurt Cagle</author>
    <author>James Linn</author>
    <author>Vaidyanathan Nagarajan</author>
    <year>2003</year>
    <price>49.99</price>
  </book>
  <book category="WEB">
    <title lang="en">Learning XML</title>
    <author>Erik T. Ray</author>
    <year>2003</year>
    <price>39.95</price>
  </book>
</bookstore>
$ basex -c list
name  Resources  Size  Input Path
---------------------------------
0 database(s). $ basex -i db.xml BaseX 7.7.2 [Standalone] Try help to get more information.
Quoted text · e-letter · 1 line
> xquery /
<!-- Edited by XMLSpy®, taken from http://www.w3schools.com-->
<?xml-stylesheet type='text/xsl" href="xstylesheetexample.xslt" ?>
<bookstore>
  <book category="COOKING">
    <title lang="en">Everyday Italian</title>
    <author>Giada De Laurentiis</author>
    <year>2005</year>
    <price>30.00</price>
  </book>
  <book category="CHILDREN">
    <title lang="en">Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
    <price>29.99</price>
  </book>
  <book category="WEB">
    <title lang="en">XQuery Kick Start</title>
    <author>James McGovern</author>
    <author>Per Bothner</author>
    <author>Kurt Cagle</author>
    <author>James Linn</author>
    <author>Vaidyanathan Nagarajan</author>
    <year>2003</year>
    <price>49.99</price>
  </book>
  <book category="WEB">
    <title lang="en">Learning XML</title>
    <author>Erik T. Ray</author>
    <year>2003</year>
    <price>39.95</price>
  </book>
</bookstore>
Query executed in 39.32 ms.
Quoted text · e-letter · 1 line
> exit
See you. $
E
e-letter20 Dec 2013 01:01 #
Made symbolic link in '/usr/local/bin/ to basexhttp ('/usr/local/basex/basex/bin/basexhttp') As normal user:
$ basexhttp
Saving properties in "/usr/local/basex/basex/.basex"...
/usr/local/basex/basex/.basex could not be written.
java.io.FileNotFoundException:
/usr/local/basex/basex/data/.logs/2013-12-19.log (No such file or
directory)
	at java.io.FileOutputStream.openAppend(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:207)
	at org.basex.server.Log.write(Log.java:92)
	at org.basex.server.Log.writeServer(Log.java:68)
	at org.basex.BaseXServer.<init>(BaseXServer.java:113)
	at org.basex.http.HTTPContext.init(HTTPContext.java:365)
	at org.basex.http.BaseXServlet.init(BaseXServlet.java:34)
	at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:534)
	at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:346)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:742)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1252)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:710)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
	at org.eclipse.jetty.server.Server.doStart(Server.java:282)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
	at org.basex.BaseXHTTP.<init>(BaseXHTTP.java:118)
	at org.basex.BaseXHTTP.main(BaseXHTTP.java:48)
Looks like permissions are the problem; the software is not designed to install in a system directory and run using user home directory?
E
e-letterin reply to e-letter, 19 Dec 2013, 22:3220 Dec 2013 10:45 #
Quoted text · e-letter · 47 lines
On 19/12/2013, e-letter <inpost at gmail.com> wrote: > On 19/12/2013, basex-talk-request at mailman.uni-konstanz.de > <basex-talk-request at mailman.uni-konstanz.de> wrote: >> Today's Topics: >> >> 4. Re: initial installation observation (Christian Gr?n) >> ------------------------------ >> >> Message: 4 >> Date: Thu, 19 Dec 2013 12:29:06 +0100 >> Subject: Re: [basex-talk] initial installation observation >> > >>>> You can optionally check out the following Wiki article to see what >>>> other startup options may be helpful: >>>> >>>> http://docs.basex.org/wiki/Start_Scripts > > Starting the command terminal fails: > > $ basex > BaseX 7.7.2 [Standalone] > Try help to get more information. > >> OPEN xmldatabasefile.xml > Stopped at ., 1/21: > Syntax: OPEN [name] ([path]) > Open database. > > Opens the database [name], filtered by [path]. > >> OPEN xmldatabasefile.xml /path/to/file > Stopped at ., 1/21: > Syntax: OPEN [name] ([path]) > Open database. > > Opens the database [name], filtered by [path]. > >> OPEN xmldatabasefile.xml, /path/to/file > Stopped at ., 1/21: > Syntax: OPEN [name] ([path]) > Open database. > > Opens the database [name], filtered by [path]. > > How to open the database file, please? >
basex zip archive was unpacked into a normal user account. Using the bin directory, the basexhttp server starts normally, as described in the documentation. The error shown above still occurs, when using 'bin/basex' executable.
MS
Michael Seiferle21 Dec 2013 00:12 #
Hi e-letter, maybe the docs come in handy:
Quoted text · e-letter · 1 line
> http://docs.basex.org/wiki/Databases
The OPEN command opens a database, which probably unlucky for some ;-), is not a file in your file-system: "In BaseX, a database is a pretty light-weight concept and can be compared to a collection. It contains an arbitrary number of resources, addressed by their unique database path. Resources can either be XML documents or raw files (binaries). Some information on binary data can be found on an extra page." I can once again invite you to work through our documentation http://docs.basex.org/wiki/Getting_Started and some basic XQuery stuff: http://en.wikibooks.org/wiki/XQuery In addition I'd suggest you start exploring XQuery within the BaseXGUI first, most people find it a lot easier to handle in the beginning. Best Michael P.S. A personal remark: Please don’t get me wrong: it is okay to ask questions, even ones that have (seemingly) trivial answers. Yet: you are a lot more likely to get helpful answers if you leave the impression you at least tried to thoroughly read and make use of the information provided.

⚡Generated with XQuery