Hi,

I was a little to fast stating, that the cmd line tool was working OK.

I can add, list and delete collections, but I cannot add documents to the 
database:

C:\>xindice add_collection -c xmldb:xindice://localhost:8765/db -n addressbook
[DEBUG] DatabaseImpl - -Using SAX Driver: 'xerces'
[DEBUG] DatabaseImpl - -Using Service Location: '/xindice/'
[DEBUG] CollectionImpl - -Using URL: 'http://localhost:8765/xindice/'
[DEBUG] CollectionImpl - -Using URL: 'http://localhost:8765/xindice/'
Created : xmldb:xindice://localhost:8765/db/addressbook

C:\>xindice add_document -c xmldb:xindice://localhost:8765/db/addressbook -f 
C:\Xindice\xindice-1.1
b3\build.xml -n build.xml
[DEBUG] DatabaseImpl - -Using SAX Driver: 'xerces'
[DEBUG] DatabaseImpl - -Using Service Location: '/xindice/'
[DEBUG] CollectionImpl - -Using URL: 'http://localhost:8765/xindice/'
Exception in thread "main" java.lang.NoSuchMethodError
        at 
org.apache.xindice.tools.command.StringSerializer.startElement(StringSerializer.java:244)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at 
org.apache.xindice.tools.command.AddDocument.execute(AddDocument.java:131)
        at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:336)
        at org.apache.xindice.tools.XMLTools.process(XMLTools.java:213)
        at org.apache.xindice.tools.XMLTools.main(XMLTools.java:124)

C:\>

Can anyone help me?

Kind Regards
Kim Daugaard




                                                                                
                                                                           
                        Kim Daugaard                                            
                                                                           
                                               To:       
xindice-users@xml.apache.org                                                    
                  
                        01/28/2004 11:53       cc:                              
                                                                           
                        AM                     Subject:  Re: Xindice 1.1b3 
install/configuration frustrations on Windows XP(Document link: Kim Daugaard)   
                                                                                
                                                                           
                                                                                
                                                                           



Hi Andrew,


Yes, thats progress - and tanks to you I have come futher.

My environment variables was correct, but as I was queueing a Xindice instance 
on my local PC I did
not think of supplying the port number. Port 8080 was used by Jetty so I 
installed Tomcat with port
8765.

Trying:

xindice ac -c xmldb:xindice://localhost:8765/db -n test

-did work!

C:\Xindice\xindice-1.1b3\bin>xindice ac -c xmldb:xindice://localhost:8765/db -n 
test
[DEBUG] DatabaseImpl - -Using SAX Driver: 'xerces'
[DEBUG] DatabaseImpl - -Using Service Location: '/xindice/'
[DEBUG] CollectionImpl - -Using URL: 'http://localhost:8765/xindice/'
[DEBUG] CollectionImpl - -Using URL: 'http://localhost:8765/xindice/'
Created : xmldb:xindice://localhost:8765/db/test

If you know how to change the default port for the command line tool, I would 
like to be informed.

I am now working on getting XMLdbGUI up and running.

Kim Daugaard




                                                                                
                                                                 
              [EMAIL PROTECTED]                                                 
                                                                  
              .com                   To:       xindice-users@xml.apache.org, 
[EMAIL PROTECTED]                                                   
                                     cc:                                        
                                                                 
              01/27/2004 04:55       Subject:  Re: Xindice 1.1b3 
install/configuration frustrations on Windows XP                                
              PM                                                                
                                                                 
              Please respond                                                    
                                                                 
              to xindice-users                                                  
                                                                 
                                                                                
                                                                 
                                                                                
                                                                 
                                                                                
                                                                 




In a message dated 1/27/2004 3:31:10 PM GMT Standard Time, [EMAIL PROTECTED] 
writes:

 Hi Andrew

 Thanks.

 I am with you to step 10.  I did build (1.1b3) from source so I have 
config\commands.xml


Kim,

That's progress. :)

 Still the command line tool does not work. What I do not understand is: If 
Xindice is running as a
 plug-in under Tomcat, what should then CLASSPATH be set to? Running Xindice 
1.0 CLASSPATH was set
 to
 C:\Xindice\xml-xindice-1.0\java\lib\Xindice.jar

 Xindice 1.1b3 does not have this .jar file

 Kind Regards
 Kim Daugaard


I have the following environment variables set (adjust to your circumstances):
JAVA_HOME - c:\j2sdk1.4.2_03
CATALINA_HOME - c:\Tomcat 5.0.18
XINDICE_HOME - c:\xindice-1.1b3

I have nothing in CLASSPATH relating to Xindice. As I mentioned in a later 
email I downloaded and
installed the binary which included a jar file after the war file and before 
the source zip. I don't
know if that jar is helping make it work or not. <shrug/>

I navigate to c:\xindice-1.1b3\bin and type "xindice" and the batch file runs 
successfully. It shows
a set of accepted parameters/switches.

I was able to create a test collection using the following (and also confirm it 
was added by
navigating to database.xml in the browser). The Command window output is also 
shown.

C:\xindice-1.1b3>xindice ac -c xmldb:xindice://localhost:8080/db -n test
[DEBUG] DatabaseImpl - -Using SAX Driver: 'xerces'
[DEBUG] DatabaseImpl - -Using Service Location: '/xindice/'
[DEBUG] CollectionImpl - -Using URL: 'http://localhost:8080/xindice/'
[DEBUG] CollectionImpl - -Using URL: 'http://localhost:8080/xindice/'
Created : xmldb:xindice://localhost:8080/db/test

You say "does not work". The actual error message(s) would be more helpful.

Andrew Watt




Reply via email to