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 Wei Ding <We...@nicta.com.au> on 2004/04/20 08:21:21 UTC
Can't run Example1.java
I can run JSP example in xindice-1.1b4\java\examples\addressbook. But I
can not run the Example1.java in xindice-1.1b4\java\examples\guide.
My configuration:
Windows XP Pro
J2SDK 1.4.2_04
Xindice 1.1b4
Tomcat 5.0.18
I can compile Example1.java. But when I run it, the errors come out:
trying to register database
Exception in thread "main" java.lang.AbstractMethodError:
org.apache.xindice.cli
ent.xmldb.DatabaseImpl.getNames()[Ljava/lang/String;
at
org.xmldb.api.DatabaseManager.registerDatabase(Unknown Source)
at
org.apache.xindice.examples.AbstractExample.ensureInitialized(Abstrac
tExample.java:45)
at
org.apache.xindice.examples.AbstractExample.getCollection(AbstractExa
mple.java:53)
at
org.apache.xindice.examples.Example1.main(Example1.java:37)
Press any key to continue . . .
I think the problem about from DatabaseManager.registerDatabase.
Help me, please. Thanks a lot.
Re: Can't run Example1.java
Posted by Vadim Gritsenko <va...@reverycodes.com>.
Wei Ding wrote:
> I can run JSP example in xindice-1.1b4\java\examples\addressbook. But
> I can not run the Example1.java in xindice-1.1b4\java\examples\guide.
>
>
>
> My configuration:
>
> Windows XP Pro
>
> J2SDK 1.4.2_04
>
> Xindice 1.1b4
>
> Tomcat 5.0.18
>
>
>
> I can compile Example1.java. But when I run it, the errors come out:
>
>
>
> trying to register database
>
> Exception in thread "main" java.lang.AbstractMethodError:
>
> <>org.apache.xindice.cli
> ent.xmldb.DatabaseImpl.getNames()[Ljava/lang/String;
Seems like mismatch between xmldb API version and driver implementation
class. Check your classpath, see that there is no outdated xmldb API
anywhere in the classpath.
Vadim