Hello,
I would like to upgrade my xindice version from 1.0 to 1.1b1. I tried it, but it don't work. I downloaded the war file copied it to "webapps" to my Tomcat(4.1.18) restarted Tomcat twice. I reloaded it by the Tomcat manager site, and in my shell say this:
20.08.2003 15:05:15 org.apache.xindice.server.XindiceServlet destroy
INFO: Database successfully closed
20.08.2003 15:05:16 org.apache.xindice.server.XindiceServlet init
WARNUNG: The database root directory has been set to /Users/niehoff/jakarta-tomcat-4.1.18/webapps/xindice-1.1b1/WEB-INF/./db/. Keep in mind that if a war upgrade will take place the database will be lost.
20.08.2003 15:05:16 org.apache.xindice.core.Database setConfig
INFO: Database points to /Users/niehoff/jakarta-tomcat-4.1.18/webapps/xindice-1.1b1/WEB-INF/./db
20.08.2003 15:05:17 org.apache.xindice.server.XindiceServlet init
INFO: Database successfully started
so far so good, but wenn I want to connect my Application said:
"XML:DB Exception occured: org.xmldb.api.base.XMLDBException: A connection to the Database instance 'db' could not be created. Error: Connection refused"
I tried the simple Example1 from teh Website(http://xml.apache.org/xindice/dev/guide-developer.html), but this don't works too.
I tried to connect with "XMLdbGUI" and make the changes with copy some jar files... .
This don't work. When i start it says:
... NFO AWT-EventQueue-0 org.apache.xindice.core - Database points to /Users/niehoff/XMLdbGUI/././db INFO AWT-EventQueue-0 org.apache.xindice.client.embed - Database name: 'db' apple.awt.EventQueueExceptionHandler Caught Throwable : java.lang.IncompatibleClassChangeError: Implementing class at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) ...
What is wrong???
P.S:
Are there any known problems with the "substring" Function in a XPath Statement? I have a problem of searcheing for a date in form "2002-08-15" with the substring Function. For the year i am doing somethink like this: //document[substring(./date, 1,4) = 2002]
For the month i am doing somethink like this: //document[substring(./date, 6,2) = 08]
For the day i am doing somethink like this: //document[substring(./date, 9,2) = 15]
For "year" and "day" it works, but not for "month" why that???