david.tessierlive.com Posted April 5, 2016 Share Posted April 5, 2016 I am trying to set up a new JDBC connection to an Intersystems Cache data source, and I'm struggling to know if it can even be done.Since there was no Intersystems Cache option in the JDBC driver drop down, I added the driver string manually -> com.intersys.jdbc.CacheDriverI then added the URL manually in the following format -> jdbc:Cache://123.123.123.123:12345/namespaceI also found the JDBC driver and have added it to the Jar File Path -> cachedb.jarBased on the error message, I am wondering if it's even possible to connect to intersystems databases with the JDBC connector. What do you think? When I try to connect, I get the following error:Exception, if you want to see more information look into the details.Reason: java.lang.ClassNotFoundException: com.intersys.jdbc.CacheDriver cannot be found by net.sf.jasperreports_6.2.1.finalThe Details:net.sf.jasperreports.engine.JRRuntimeException: java.lang.ClassNotFoundException: com.intersys.jdbc.CacheDriver cannot be found by net.sf.jasperreports_6.2.1.finalat net.sf.jasperreports.data.jdbc.JdbcDataAdapterService.getConnection(JdbcDataAdapterService.java:173)at net.sf.jasperreports.data.jdbc.JdbcDataAdapterService.contributeParameters(JdbcDataAdapterService.java:128)at net.sf.jasperreports.data.AbstractDataAdapterService.test(AbstractDataAdapterService.java:128)at com.jaspersoft.studio.data.wizard.AbstractDataAdapterWizard$3.runOperations(AbstractDataAdapterWizard.java:162)at com.jaspersoft.studio.utils.jobs.CheckedRunnableWithProgress$1.run(CheckedRunnableWithProgress.java:59)at java.lang.Thread.run(Thread.java:745)Caused by: java.lang.ClassNotFoundException: com.intersys.jdbc.CacheDriver cannot be found by net.sf.jasperreports_6.2.1.finalat org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)at java.lang.ClassLoader.loadClass(ClassLoader.java:357)at java.lang.Class.forName0(Native Method)at java.lang.Class.forName(Class.java:348)at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:174)at net.sf.jasperreports.data.jdbc.JdbcDataAdapterService.getConnection(JdbcDataAdapterService.java:145)... 5 more Link to comment Share on other sites More sharing options...
hozawa Posted April 5, 2016 Share Posted April 5, 2016 It seems like it's unable to find the jdbc jar file. Place the file in apache-tomcat/lib and restart tomcat. Link to comment Share on other sites More sharing options...
Solution david.tessierlive.com Posted April 7, 2016 Author Solution Share Posted April 7, 2016 cachedb.jar is not the proper JDBC connection driver. The correct one is cachejdbc.jar. Once I tried to connect with that driver, it worked fine. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now