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 Nutan Kaul <nk...@mail.arc.nasa.gov> on 2002/05/15 21:03:03 UTC
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
Re: Need help creating XML object
Posted by Nutan Kaul <nk...@mail.arc.nasa.gov>.
Hi Dirk,
I am in the dir where my class file is
(org.apache.xindice.examples.XPathQueryXMLObjectNK.class)
but I still can not create the object:
xindiceadmin add_xmlobject -i
org.apache.xindice.examples.XPathQueryXMLObjectNK -n MyXpath1 -c
/db/addressbook
ERROR : XMLObject Cannot Create
Thanks for your help.
-Nutan
----- Original Message -----
From: "Dirk Bromberg" <Di...@t-online.de>
To: <xi...@xml.apache.org>
Sent: Wednesday, May 15, 2002 12:53 PM
Subject: AW: Need help creating XML object
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
bromberg@tzi.de
> -----Ursprüngliche Nachricht-----
> Von: Nutan Kaul [mailto:nkaul@mail.arc.nasa.gov]
> Gesendet: Mittwoch, 15. Mai 2002 21:03
> An: xindice-users@xml.apache.org
> 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
>
>
AW: Need help creating XML object
Posted by Dirk Bromberg <Di...@t-online.de>.
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
bromberg@tzi.de
> -----Ursprüngliche Nachricht-----
> Von: Nutan Kaul [mailto:nkaul@mail.arc.nasa.gov]
> Gesendet: Mittwoch, 15. Mai 2002 21:03
> An: xindice-users@xml.apache.org
> 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
>
>