EXist Native Database (Native XML) installation and configuration __ Database

Source: Internet
Author: User
Tags reserved wrapper tomcat

EXist native Databases (Native XML database) installation and configuration
Original copyright @ Xiaoning. 2005. All Rights reserved

Environmental requirements: Install jdk1.4.2 above, the project runs jdk1.5;
If you have the requirements to run JSP, you can install tomcat5.0, for exist to install Tomcat is optional, because it can load the servlet class, but the configuration is slightly load, I do not understand this aspect, so it is not recommended. Home:http://exist-db.org/ exist service installation file download address
Http://ovh.dl.sourceforge.net/sourceforge/exist/eXist-snapshot-20050314.jar(or HTTP/// Jaist.dl.sourceforge.net/sourceforge/exist/exist-1.0b2-build-1107.jar)

Database Service Installation:

Copy the downloaded file to c:/run cmd input command line: Java-jar c:/exist-snapshot-20050314.jar pop Up "izpack-installation of eXist" window Next,next, Choose File storage address, recommended in: C:/exist Next,done installation end to test Http://localhost/eXist/index.xml


Original copyright @ Xiaoning. 2005. All Rights reserved


Configuration:

Starting the Service Method 1
Start the "eXist Native XML Database" service method, starting with Control Panel, management tools-
Run cmd
Knock
net start "EXist Native XML Database" Shutdown Service Method 1
Start with settings, Control Panel, management tools, services, close the "eXist Native XML Database" Service Method 2
Run cmd
Knock
net stop "EXist Native XML Database"
Additional notes:
About the above 1, 22 points, can be completed at the DOS command line, and if you do not load the service to perform the operation, in order to complete the above 1, 2 completed the role
Start Service: C:/exist/bin/startup.bat
Close service: C:/exist/bin/shutdown.bat
Check that the environment variable settings are correct system properties, environment variables, new exist_home=c:/exist classpath= original content plus%exist_home%/exist.jar;%exist_home%/exist- Modules.jar;%exist_home%/examples.jar;%exist_home%/lib/core/xml-commons-resolver-1.1.jar;%exist_home%/lib/ Corelog4j-1.2.9.jar-1.2.9.jar;%exist_home%/lib/core/xmldb.jar;%exist_home%/lib/core/xmldb.jar;
%exist_home%/lib/core/xmlrpc-1.2-patched.jar;
%exist_home%/lib/core/xml-apis.jar;%exist_home%/lib/core/xml-commons-resolver-1.1.jar

Original copyright @ Xiaoning. 2005. All Rights reserved
To run the client Database manager:
Command: C:/exist/bin/client.bat user name: admin password: null connection string: XMLDB:EXIST://LOCALHOST:8080/EXIST/XMLRPC
Create a new collection: File->create collection-> Enter "Tonybooks" (shortcut key CTRL + N)
Double-click "Tonybooks"

Import the required *.xml files
File->store file/strore Direction shortcut key (ctrl+s)
Then select the *.xml file that holds the data
(Related import *.xml file operation, to be edited) test database service (source file location: C:/exist/webapp/index.xml, note not files in the Tomcat directory, do not confuse)
Run Http://localhost:8080/exist/index.xml.
Run Http://localhost:8080/exist/status. Input example program (this operation is also necessary, it loads a lot of instance database, very useful)
Browse addresses
Http://localhost:8080/exist/admin/admin.xql
User name: admin password: null
Click Examples Setup on the left menu
Make sure the download starts successfully exist as a service (optional)

Download Address:http://kent.dl.sourceforge.net/sourceforge/wrapper/wrapper_win32_3.1.2.zip

Replace all files under the original C:/exist/tools/wrapper after decompression

Run the Installtestwrapper-nt.bat and Testwrapper.bat tests in the Bin directory, and the window appears as normal

Note that if you want to run the exist service later, you need to click the command:
C:/exist/bin/startup.bat
There is no need to run other services, such as net start, it is not necessary to close the


Original copyright @ Xiaoning. 2005. All Rights reserved
Retrieving files using client programs
Run: C:/exist/bin/client.bat
The operation results are as follows

Create a new collection (CTRL + N) and click
The result of the operation is as follows: Enter name Shakespeare

Then double-click Shakespeare to select a storage file (Ctrl+s),
Select the Shakespeare file shelf, where it is located in C:/exist/samples. Then select this folder as the storage location (note that the folder is selected, not the file), and then the following window appears
In addition to allowing Shakespeare to run, you also create a "set"/db/library, and then put the file Samples/biblio.rdf in the "collections"/db/library.


Finally, with Xinclude test, you should put BIBLIO.RDF passageway Samples/xinclude collection/db/xinclude

Original copyright @ Xiaoning. 2005. All Rights reserved
Retrieving documents
The client can also provide an image-based interface that can be found in the toolbar to retrieve the database,
Enter Shakespeare collection, enter
Speech[speaker= "Juliet" and. &= "Romeo"]
Then click the Submit button.
The results are as follows

Original copyright @ Xiaoning. 2005. All Rights reserved
Close the database
Run:
Java–jar Start jar shutdown

(Copy all files under C:/exist/lib/endorsed to c:/j2sdk/lib/endorsed)
Original copyright @ Xiaoning. 2005. All Rights reserved

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.