Bonjour a tous,

j'ai un problème pour debuter avec la base de données eXist.
J'en suis a tester les différents exemples fournis avec.

J'ai un problème de compilation avec un de ces exemples (sous eclipse)

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import org.xmldb.api.DatabaseManager;
import org.xmldb.api.base.Database;
 
 
public class XQueryExample {
 
    protected static String URI = "xmldb:exist://";
 
    protected static String driver = "org.exist.xmldb.DatabaseImpl";
 
 
    public static void main( String args[] ) {
        try {
 
            //test de connexion a la base
 
            Class cl = Class.forName( driver );
            Database database = (Database) cl.newInstance();
            database.setProperty( "create-database", "true" );
            DatabaseManager.registerDatabase( database );
 
 
        } catch ( Exception e ) {
            e.printStackTrace();
        }
    }
j'obtiens cette erreur a l'execution :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
	at org.exist.xmldb.DatabaseImpl.<clinit>(DatabaseImpl.java:64)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at XQueryExample.main(XQueryExample.java:26)

quelqu'un pourrait il m'expliquer pourquoi ca fonctionne pas.


Merci d'avance a tous