Exception when running JasperReports on JasperServer - jasper-reports

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.

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.

Open iReport, go to Tools > Otions > Ireport > CLASSPATH, Then Add your oracle ODBC jar file there.

Related

Adding & configure .jar files in the jasper svn repository

I have created a jasper report using Jaspersoft Studio 6.19.1. This report utilizes a referenced jar file. The report works fine when running it locally. However, I'm getting an error when running the report from the repository. The error is unable to resolve referenced java class. My question what is the correct way to add and configure a jar file to the server?
Thank you

Driver not found using crystal reports with [ucanaccess] jdbc driver

How can I use Crystal Reports with ucanaccess jdbc driver? I'm getting "Driver not found" error. I copied the ucanaccess jar file to Business objects in program files (C:\Program Files (x86)\Business Objects\Common\3.5\java), edited CRConfig.xml file and already had JDBC (JNDI) configured in Crystal Reports. MySQL, JTDS, Oracle and SQLite drivers work fine.
UCanAccess has dependencies - HSQLDB and Jackcess, with additional Jackcess dependencies - so the UCanAccess driver is more than just the "ucanaccess jar" file itself. See this answer for details on the other jar files you will need to make available to Crystal Reports if you want to use UCanAccess.

Getting java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespacePrefixList on creating the web service in eclipse

I am trying to create a web service using axis2.
I have created it.
I am following the below steps for getting the wsdl info.
Right click Project -> Run on server -> Next.
No class found error is coming. Is any jar file is required.
Please guide me how to resolve this.
Error: java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespaceMap at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:437) at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396) at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109) at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:232) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:154) at
You can download and include the XmlSchema jar in the lib folder of your dynamic web project /WebContent/WEB_INF folder.
But, this will only solve the problem temporarily. On creating WS client the XMLSchema jar will not get included. So check the compatibility of the version of your server with axis2 version (like Tomcat 6 created problem with axis2 1.7 but works fine with axis2 1.5.2).
On successful compatibility the XMLSchema jar will get included in the respective folder automatically.
You can correct your issue by referencing the XmlSchema jar in the lib folder. You can find the latest version of the jar file in the link below.
http://www.java2s.com/Code/Jar/x/DownloadXmlSchema142jar.htm

Eclipse Helios Deployment Issue

I am using Helios Version of Eclipse. I am having an issue using that. I have created a Dynamic Web project there. I have some .jar files under WebRoot/WEB-INF/lib folder. With all other .jar files I have a .jar file called iText-2.1.5.jar. I am using GlassFish server as a Application Server. Now issue is, when I am trying to add this project to the server only previously mentioned .jar file adding seperately into the server . When I am trying to publish any change into the server it is showing an error message like 'Publish failed using Ant publisher Could not delete [.JAR] file....' . To avoid this problem everytime I have to stop the server and manually delete the .jar file from the specific location and then restart the server. This is very time consuming process. Can you guys please solve this problem?
Thanks is advance.
Somnath Guha

NetBeans not finding JasperReports scriptlet

I'm using JasperReports 3.7.6 with NetBeans 6.9.1 and iReport 3.7.6. I have a report that uses scriptlets. When I run it from iReport everything is fine because I can tell iReport where to find the .jar file with the scriptlets. When I run that same report from a JSF-2.0 application the fields that rely on the scriptlet are not being populated correctly - i.e. the scriptlet isn't being called. I've tried putting the scriptlet in the project's library folder and I've tried copying the package containing the scriptlet into the project. Neither has worked. I'm not sure how I can get the report to call the scriptlets when it is run from my JSF project. Can anyone shed some light on this for me?
Ugh. What is it with me and rookie mistakes? I have my JSF project pulling the .jasper files from a specific locations. To that end I have my iReport compiling the reports to that particular file location. At some point in the past week I was fiddling with another report and didn't want it to go to the same location as my project reports ... so I changed the compile location in iReport. It was after that when I created all the scriptlet functionality. When I added the scriptlet functionality and compiled the reports, I forgot to change the compile location back to the project report folder. The reports were compiling elsewhere. So my project was using the old versions of the report files. Updating the compile location in iReport and recompiling the reports fixed the issue. The .jar file in my library works fine.