Vadim Gritsenko wrote:
Jonathan Melhuish wrote:
Vadim Gritsenko wrote:
Jonathan Melhuish wrote:
"Could not locate Xindice driver class! Ensure the necessary jars are on your classpath: xindice.jar, xmldb.jar, xmldb-sdk.jar is a good guess"
Add to your JSP:
<%= new org.apache.xindice.client.xmldb.embed.DatabaseImpl() %>
If it fails you'll know that classpath is the problem. You have to have xindice-*.jar and all xmldb-*.jar's in WEB-INF/lib of your webapp.
Thanks, that was indeed the problem. I didn't realise that, even if you've already installed the WAR, you still have to:
If you have installed WAR file, it means that you have an xindice-*.jar in the tomcat/webapps/xindice/WEB-INF/lib folder. If you are trying to write JSP connecting to this xindice server, and this JSP resides in *another* web application - then you have to copy xindice-*.jar file there too, so you have client classes.
Hope it clears up the issue.
Yes, that makes sense, thanks!
As soon as I've actually got it working, I'll put a quick page up on the Wiki...
Cheers,
Jon