You don't need to add the .class file to the /lib dir. You yust must do this:
xindiceadmin add_xmlobject -i org.apache.xindice.examples.HelloWorldXMLObject -n Hello -c /db/addressbook If you are in the directory where the class file is. (change class name to yours) Greets Dirk Bromberg [EMAIL PROTECTED] > -----Urspr�ngliche Nachricht----- > Von: Nutan Kaul [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 15. Mai 2002 21:03 > An: [email protected] > Betreff: Need help creating XML object > > > Hi, > I am using xindice 1.0 on Unix and trying to build an XML > object using the exaples given in the User's guide. I have > changed the > org.apache.xindice.examples.XPathQueryXMLObject.java to > org.apache.xindice.examples.XPathQueryXMLObjectNK.java and > have compiled it and copied the XPathQueryXMLObjectNK.class > file to $XINDICE_HOME/java/lib The java classpath points to > the right jar files. > > Now, when I tri to install the xml object, I get 'Can not > create xml object" and subsequently 'duplicate xml object' error. > > > xindiceadmin add_xmlobject -i > org.apache.xindice.examples.XPathQueryXMLObjectNK -n NKXpath > -c /db/addressbook ERROR : XMLObject Cannot Create > > >xindiceadmin add_xmlobject -i > org.apache.xindice.examples.XPathQueryXMLObjectNK -n NKXpath > -c /db/addressbook ERROR : XMLObject Duplicate Object > > When I try to delete object, it does not find the object. > > Can someone please tell me what is it I am doing wrong? > > Thanks a lot in advance. > > -Nutan > >
<<attachment: winmail.dat>>
