ClassCastException

Ben McCann <[email protected]>
Newsgroups gmane.text.xml.xindice.user
Message-ID <[email protected]>
Hi,
I am trying to query a Xindice database within a .jsp page through the 
use of a Java Bean.  Within Tomcat I am getting 
"java.lang.ClassCastException: 
org.apache.xindice.client.xmldb.embed.DatabaseImpl".  The following code 
is in my Bean:
          String driver = 
"org.apache.xindice.client.xmldb.embed.DatabaseImpl";
          Class c = Class.forName(driver);
          Database database = (Database) c.newInstance();   << Line 
creating the exception
          DatabaseManager.registerDatabase(database);

Any thoughts?

Thanks,
Ben McCann
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.