Reputation: 301
My Report works fine in iReport designer. But when I try to run it on JasperServer it is giving me the following exception:
java.lang.Exception: 1 - oracle.jdbc.driver.OracleDriver
I have ojdbc6.jar in the classpath.
Upvotes: 1
Views: 1345
Reputation: 1
Open iReport, go to Tools > Otions > Ireport > CLASSPATH
, Then Add your oracle ODBC jar file there.
Upvotes: 0
Reputation: 301
I have resolved the issue myself.
The problem was I haven't restarted the jasper server. I had put the jar in the following path: C:/Program Files/jasperreports-server-cp-4.5.0/apache-tomcat/lib
After having the jar in the classpath, I restarted the jasper server. Even then, it was not working and I restarted the PC and now it's working.
Thanks simont and mdhahlman for responding.
Upvotes: 1