You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by "Mabanza, N" <NM...@ufh.ac.za> on 2004/05/10 15:52:04 UTC

Error message when running Examples

Hii Everyone,

I am using xindice-1.1b4. I am having the following error message when I am running  the Example1.java example

C:\jim\XmlDatabases\xindice-1.1b4\Templates>java Example1
log4j:WARN No appenders could be found for logger (org.apache.xindice.client.xml
db.xmlrpc.DatabaseImpl).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.IncompatibleClassChangeError: Implementing
class
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
        at org.apache.xindice.client.xmldb.XindiceCollection.<init>(XindiceColle
ction.java:97)
        at org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.<init>(Collecti
onImpl.java:82)
        at org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl.getCollection(Dat
abaseImpl.java:354)
        at org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseIm
pl.java:137)
        at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
        at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
        at AbstractExample.getCollection(AbstractExample.java:54)
        at Example1.main(Example1.java:37)

Please find below the setting for my Path, classpath, Xindicehome and java home

My classpath
.;C:\jim\XmlDatabases\xindice-1.1b4\dist\xindice-1.1b4.jar;C:\jim\XmlDatabases\xindice-1.1b4\build\endorsed\xalan-2.5.2.jar;C:\jim\XmlDatabases\xindice-1.1b4\build\endorsed\xerces-2.6.0.jar;C:\jim\XmlDatabases\xindice-1.1b4\build\endorsed\xml-apis.jar;C:\jim\XmlDatabases\xindice-1.1b4\java\lib\commons-logging-1.0.3.jar

Path
C:\j2sdk1.4.0\bin;C:\jim\XmlDatabases\xindice-1.1b4\bin

Xindice_Home
C:\jim\XmlDatabases\xindice-1.1b4

Java_Home
C:\j2sdk1.4.0

Can anyone have an idea how to solve this problem..