Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
jdbc and ClassNotFoundException
dzish
Hi,
sometimes on my version of WebViewer there appeares exception something about ClassNotFoundException of com.jdbc...TimeUtil
I found it could be because of two libraries of jdbc connector in application. I have two, the first in WEB-INF/lib and the second in WEB-INF/platform/plugins/org.eclipse.birt.report.data.oda.jdbcxxxxx. Both have the same version.
I tried to delete library in platform/plugin directory. WebViewer works. Reports are reported. Do you think is it correct?
Find more posts tagged with
Comments
JasonW
In BIRT 3.7 this is not an issue you just put the driver in the web-inf/lib directory or the in the cp of your app server. In BIRT 2.6.2 and lower it needs to be in the plugins directory unless you add a key to the app context pointing to the driver. For example add this script to the beforeOpen event of the datasource.
reportContext.getAppContext().put("OdaJDBCDriverClassPath","locationofdriver.jar");
If it is working without this maybe the parent classloader of the report engine is picking it up.
Jason