Jasper report Jsp

HI
i have created a jasperreport with ireport, created an .jrxml file.The report work fine when i launched it from jcreator with all the libraries added to the classpath.
then i created an javabean to include it into an JSP file with the same code.
i copy all the libraries to the WEB-INF/lib . When i call the page i have this message
ch jrxmlErrors were encountered when compiling report expressions class file: E:\WINDOWS\system32\classic_1188065918796_290680.java:4: package net.sf.jasperreports.engine does not exist import net.sf.jasperreports.engine.*; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:5: package net.sf.jasperreports.engine.fill does not exist import net.sf.jasperreports.engine.fill.*; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:14: package net.sf.jasperreports.engine does not exist import net.sf.jasperreports.engine.*; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:15: package net.sf.jasperreports.engine.data does not exist import net.sf.jasperreports.engine.data.*; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:21: cannot find symbol symbol: class JREvaluator public class classic_1188065918796_290680 extends JREvaluator ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:28: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_RESOURCE_BUNDLE = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:29: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_CLASS_LOADER = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:30: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_FORMAT_FACTORY = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:31: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_TIME_ZONE = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:32: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_DATA_SOURCE = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:33: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_LOCALE = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:34: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_URL_HANDLER_FACTORY = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:35: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_PARAMETERS_MAP = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:36: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_CONNECTION = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:37: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_IS_IGNORE_PAGINATION = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:38: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_VIRTUALIZER = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:39: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_SCRIPTLET = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:40: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 private JRFillParameter parameter_REPORT_MAX_COUNT = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:41: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Client_prenom = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:42: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Facturepr_t210 = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:43: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Facturepr_net = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:44: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Client_clcode = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:45: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Client_cp = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:46: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Facturepr_t850 = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:47: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Facturepr_fatot = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:48: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Facdet_qteliv = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:49: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Facdet_qtecmd = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:50: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Facdet_faprxht = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:51: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Facdet_pslib = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:52: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Client_genre = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:53: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Facdet_fanum = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:54: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Client_ville = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:55: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 private JRFillField field_Client_adresse = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:56: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 private JRFillVariable variable_PAGE_NUMBER = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:57: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 private JRFillVariable variable_COLUMN_NUMBER = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:58: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 private JRFillVariable variable_REPORT_COUNT = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:59: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 private JRFillVariable variable_PAGE_COUNT = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:60: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 private JRFillVariable variable_COLUMN_COUNT = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:61: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 private JRFillVariable variable_SUM_Facturepr_fatot_1 = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:62: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 private JRFillVariable variable_SUM_Facturepr_fatot_2 = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:63: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 private JRFillVariable variable_SUM_Facturepr_t850_1 = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:64: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 private JRFillVariable variable_SUM_Facturepr_t210_1 = null; ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:87: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_RESOURCE_BUNDLE = (JRFillParameter)pm.get("REPORT_RESOURCE_BUNDLE"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:88: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_CLASS_LOADER = (JRFillParameter)pm.get("REPORT_CLASS_LOADER"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:89: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_FORMAT_FACTORY = (JRFillParameter)pm.get("REPORT_FORMAT_FACTORY"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:90: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_TIME_ZONE = (JRFillParameter)pm.get("REPORT_TIME_ZONE"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:91: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_DATA_SOURCE = (JRFillParameter)pm.get("REPORT_DATA_SOURCE"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:92: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_LOCALE = (JRFillParameter)pm.get("REPORT_LOCALE"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:93: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_URL_HANDLER_FACTORY = (JRFillParameter)pm.get("REPORT_URL_HANDLER_FACTORY"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:94: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_PARAMETERS_MAP = (JRFillParameter)pm.get("REPORT_PARAMETERS_MAP"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:95: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_CONNECTION = (JRFillParameter)pm.get("REPORT_CONNECTION"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:96: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_IS_IGNORE_PAGINATION = (JRFillParameter)pm.get("IS_IGNORE_PAGINATION"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:97: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_VIRTUALIZER = (JRFillParameter)pm.get("REPORT_VIRTUALIZER"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:98: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_SCRIPTLET = (JRFillParameter)pm.get("REPORT_SCRIPTLET"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:99: cannot find symbol symbol : class JRFillParameter location: class classic_1188065918796_290680 parameter_REPORT_MAX_COUNT = (JRFillParameter)pm.get("REPORT_MAX_COUNT"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:108: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Client_prenom = (JRFillField)fm.get("Client_prenom"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:109: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Facturepr_t210 = (JRFillField)fm.get("Facturepr_t210"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:110: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Facturepr_net = (JRFillField)fm.get("Facturepr_net"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:111: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Client_clcode = (JRFillField)fm.get("Client_clcode"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:112: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Client_cp = (JRFillField)fm.get("Client_cp"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:113: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Facturepr_t850 = (JRFillField)fm.get("Facturepr_t850"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:114: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Facturepr_fatot = (JRFillField)fm.get("Facturepr_fatot"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:115: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Facdet_qteliv = (JRFillField)fm.get("Facdet_qteliv"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:116: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Facdet_qtecmd = (JRFillField)fm.get("Facdet_qtecmd"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:117: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Facdet_faprxht = (JRFillField)fm.get("Facdet_faprxht"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:118: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Facdet_pslib = (JRFillField)fm.get("Facdet_pslib"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:119: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Client_genre = (JRFillField)fm.get("Client_genre"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:120: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Facdet_fanum = (JRFillField)fm.get("Facdet_fanum"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:121: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Client_ville = (JRFillField)fm.get("Client_ville"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:122: cannot find symbol symbol : class JRFillField location: class classic_1188065918796_290680 field_Client_adresse = (JRFillField)fm.get("Client_adresse"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:131: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 variable_PAGE_NUMBER = (JRFillVariable)vm.get("PAGE_NUMBER"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:132: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 variable_COLUMN_NUMBER = (JRFillVariable)vm.get("COLUMN_NUMBER"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:133: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 variable_REPORT_COUNT = (JRFillVariable)vm.get("REPORT_COUNT"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:134: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 variable_PAGE_COUNT = (JRFillVariable)vm.get("PAGE_COUNT"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:135: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 variable_COLUMN_COUNT = (JRFillVariable)vm.get("COLUMN_COUNT"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:136: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 variable_SUM_Facturepr_fatot_1 = (JRFillVariable)vm.get("SUM_Facturepr_fatot_1"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:137: cannot find symbol symbol : class JRFillVariable location: class classic_1188065918796_290680 variable_SUM_Facturepr_fatot_2 = (JRFillVariable)vm.get("SUM_Facturepr_fatot_2"); ^ E:\WINDOWS\system32\classic_1188065918796_290680.java:138: cannot find symbol symbol : class JRFillVariable location: class cl
Thanks Py

package net.sf.jasperreports.engine does not exist import net.sf.jasperreports.engine.*; ^ It's clear from the exception that you hadn't set the classpath properly.
Message was edited by:
sachindev

Similar Messages

  • Generate Jasper report in JSP

    Hi all,
    im currently doing some research on jasper. Im totally new to this and wish if somebody can give some tips on how to start off..Below are some of my questions..
    1. After compile and create the report design using iReport, does it means when we've got our XML response from server ,we just feed in the fields accordingly to the .jasper file we've created earlier on OR we have to concurrently design,and compile report and send XML request to server...
    2. Can provide me with some ideas of how to generate jasper report in JSP where the whole process is inclusive of passing XML request to server..retrieving data..formatting..passing result set to XML response ...may i know when is the process of generating jasper start off in between of this?
    Please advise, im really blurred at the moment...
    Thx a million...
    chEers,
    cyunntan

    Probably it�s better to ask it at JasperReports Forums:
    http://sourceforge.net/forum/?group_id=36382

  • View jasper report in jsp page

    i have developed a java code that could connect to the databse n compile xml code into jasper report. report is generated when it is executed in dos prompt. however i wan the report to appear after a button "print" in a jsp page is pressed. how do i do dat? how do i ask my jsp page to execute my curret java code to generate a report?

    same

  • Export Jasper Report Through JSP(using parameters)

    Hi All ;
    Please I need A help ;
    I need to use a Jasper Report in my jsp pages using parameters ;
    can some one tell me how i can do it by steps & with example ;
    note that i use Oracle Data Base;
    Regards;

    I would start off reading a JasperReports tutorial.
    Here is a list of all JasperReports tutorials available on the world wide web:
    http://www.google.com/search?q=jasperreports+tutorial

  • How do i display jasper reports using jsp

    Can anyone help me to display jasper reports in jsp pages
    Thanx in advance

    hi
    Thank you for such a great answer.
    I have a problem here,
    When i generate report using this code all other report formats are generated very good, but the html report is not generated properly. i get nullpx in the img src e.g
    <td><img alt="" src="nullpx" style="width: 20px; height: 1px;"/></td>
    Please help me
    and
    Thanks in advance
    snkr
    Following is the html code of the generated report.
    start--------------------------------------
    =======================================================
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <style type="text/css">
    a {text-decoration: none}
    </style>
    </head>
    <body text="#000000" link="#000000" alink="#000000" vlink="#000000">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr><td width="50%"> </td><td align="center">
    <a name="JR_PAGE_ANCHOR_0_1"/>
    <table style="width: 620px" cellpadding="0" cellspacing="0" border="0" bgcolor="white">
    <tr>
    <td><img alt="" src="nullpx" style="width: 200px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 200px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 135px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 45px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 20px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 30px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 60px;"/></td>
    <td colspan="5" valign="middle" style="text-align: center;"><span style="font-family: sansserif; font-size: 20.0px; font-weight: bold;">
                       Report Background Demo
    </span></td>
    <td colspan="2"><img alt="" src="nullpx" style="width: 65px; height: 60px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Parent_ID</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Product_ID:</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Name:</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Colour Cosmetcis</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Lipsticks</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-321</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Eye Shadow</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Shankar</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322-002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Parikchya</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-323</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">first</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">first</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">hair Cleaner</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Kumar</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Magilla Gorilla</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-003</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">astrigent</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">003</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test1</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 96px;"/></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 170px;"/></td>
    </tr>
    </table>
    </td><td width="50%"> </td></tr>
    </table>
    </body>
    </html>
    end------------------------------
    ========================================================

  • How do i display Jasper Report Using Jsp

    Hi,
    Can anyone give me the code snippet of how to display a jasper report using jsp
    Thanx in advance
    --H                                                                                                                                                                                                                                           

    JasperReport jasperReport =
    JasperCompileManager.compileReport(file);
    JasperPrint jasperPrint = JasperFillManager.fillReport(
    jasperReport, null, conn);
    JasperExportManager.exportReportToHtmlFile(
    jasperPrint, tDest);
    JasperViewer.viewReport(jasperPrint);
    //replace file -> .jrxml file source path
    conn -> database connection name
    tDest -> .html file destination

  • Help in Jasper Reports embedd with jsp

    Hello,
    I am developing one small web application with the help of JSP and servlet. I want to use jasper reports in this. I am getting problem in creating jasper report. I have .jrxml format report. I want to embedd it in my jsp class. I am getting values from database by help of servlet. And then sending control in jsp page.I don't have any idea. I have download jasper ireport designer and cerated one report. Please tell me how to embedd it in jsp page.
    Thanks in advance
    Manveer

    Hi Manveer
    From your servlet class you can create the Jasper report and send the url of the file to the JSP.
    In your JSP you just give the link to that file.
    Regards
    Dilip.

  • Compilation error when i add jasper reports packages to my jsp file

    hi all,
    tell mi the solution its very urgent,
    i have created a jasper report(for eg:ss.jrxml) if i wnt to add this report file to my jsp or servlet,i have to import some jasper reports packages and also adding that report file(jrxml file) to myjsp page in try block using jasperreport class.but,if i compiled this file or when i open this jsp file in web browser it shows error like
    net.sf.jasperreports.engine.*(this is my one of report package used in my jsp) does not exist and jasperreport(this is one of class file in jasperreports to connect) cannot find symbol.
    pls,help mi wat to do to support this packages while running in weblogic server.

    To add libraries to your webapp you need to place the appropriate JARs in the */WEB-INF/lib * directory of your web application folder.
    If you're using an IDE follow whatever are the appropriate steps to add libraries/ external JARs to your project.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Jasper Report XHTML as a part of JSP

    Hi
    I want to display XHTML version of jasper report file as a part of JSP file. Report should be generated as per the input and display at the bottom of search criteria. How to do this. can i integrate jsperviewer as a part of jsp page.
    Thanks and Regards,
    Narayanan. G

    Found something for you that might be useful:
    http://itunes.apple.com/us/app/igroup-sms/id377378452?mt=8

  • How to call Jasper Reports from a Servlet?

    hi! i am a newbie in Jasper Reports. Can somebody tell me how i am supposed to let my jasper-created report appear in my web app? i am using JSP/Servlet framework, and basically what i need my app to happen is when i click on my View summary page button, my PDF-generated jasper report would automatically display without me having to save a pdf file in my disk. Codes would be really greatly appreciated.. thanks in advance...

    Hello,
    welcome to the JDC forums. You've opened three threads (which is good as you ask 3 different questions). I suggest you edit the 2 other rheads ( ["tree and table"|http://forums.sun.com/thread.jspa?threadID=5416646&tstart=0] and ["open internal frame"|http://forums.sun.com/thread.jspa?threadID=5416647&tstart=0] ) so that each one deals with one question at a time.
    I also suggest that you take the time to write your posts, and don't use SMS abbreviations. It shows some respect and will help attract people to answer you. If you're in such a hurry that you can't even afford spelling full words, then you're screwed anyway.
    Good luck.

  • Opening new web page using servlet and jasper report. ?

    Hello,
    I am developing one small web application and implementing jasper report in it. I am using jasper report with servlet. Which is generating one pdf file and displaying in same browser. But I want to open this report in new browser. Which is only display that report window. I am trying it. response.setContentType("application/pdf");
                   /response.addHeader("Content-Disposition", "attachment; filename=" // this is basically for downloading pdf file.
                             + request.getParameter("D:/rnext/30-oct-2009/sms/web/jsp/Reports/allstudentsofwholecollege.jasper") + "");
          response.setContentType("application/pdf");
          response.setContentLength(bytes.length);
          servletOutputStream.write(bytes, 0, bytes.length);
          servletOutputStream.flush();
          servletOutputStream.close();In this code it is showing me attachement file of report.
    When I changed the response.addHeader(Content-Disposition", "inline; filename=" // this is basically for downloading pdf file.)
    It is opening in same window. Please help if you can. It is urgent. please help.
    Thanks in advance.
    Manveer

    Use target attribute with link you have placed on you JSP page. [Look Here|http://www.w3schools.com/tags/att_a_target.asp]
    Also remove Content-Disposition header if you want to open file in browser.
    In latest browsers it might be possible you will see new tab opened rather then whole new browser window, This depends on browser settings.

  • How to run multiple sqls in one jasper report

    Hello!
    Is there any one that can help me in integrating/ viewing my xml file to the web. I have my GUI in jsp format, the jsp makes a call to the bean class and then finally bean class hit my reports java class.The report java class generates the report and shows it in the new window.
    The problem is with writing mutiple sql queries and showing the result from multiple sql queires in one report.
    I do not know how to write multiple queries for just 1 report. I can give a simple example of my problem also.
    My report is as follows:
    First Name Middle Name Last name
    Sandeep               Pathak
    Now First and Middle Name come from 1st sql query and Last Name comes from 2nd sql query.
    I want to join the result obtained from both the sql queries in one Jasper Report (not as 2 separate sections but as one section).
    My problem is how to view my report in the web. furthermore, how to make complex query in jasperassistant, like multiple table in one query, because i�m integrating multiple query in one form or sheets of paper.
    Please help me in this.
    Thanks
    Sandeep
    Calance
    India

    Hi Sheldon,
    we never have issues when we combine standard objects, like a cliear with a load inforprovider, or the master data integration you mentioned in your document. However, from the moment we combine a script logic with a standard package (like a move) it does not work .The data package contains the task needed for the script and for the move. the process chain is called up but always comes in error in the first step (BPC modify dynamically ) ... there is also no log when checking the view status ...
    I can sent you some screenshots if you like ...
    D

  • Problems with jasper report pdf exporting

    Hello,
    I coded a simple servlet to view a jasper report (created with iReport) after clicking on the right button in the jsp.
    Here is the problem:
    net.sf.jasperreports.engine.JRRuntimeException: Error evaluating expression :
         Source text : (java.awt.Image)it.businesslogic.ireport.chart.DefaultChartFactory.drawChart(new String[]{"chartName=Pie3D","depthFactor=0.2","titlePosition=1","width=245","plotBackground=[255,255,255]","serie1=SERIE_CONTA_RISPOSTE","serie0=SERIE_RISPOSTA","foregroundAlpha=0.33","tooltips=false","chartBackground=[255,255,255]","subtitle=","title=","legend=true","quality=2","height=168","antialias=true"}, (it.businesslogic.ireport.IReportScriptlet)$P{REPORT_SCRIPTLET})
         net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:604)
         net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:343)
         net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:311)
         net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:275)
         net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1302)
         net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:631)
         net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:228)
         net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)
         net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:730)
         net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:632)
         net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63)
         net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)
         net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234)
         net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:203)
         customer_care.servlet.Reporting.getReport(Reporting.java:74)
         customer_care.servlet.Reporting.processRequest(Reporting.java:50)
         customer_care.servlet.Reporting.doGet(Reporting.java:89)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Here is the code:
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            byte[] byte_array = null;
            try{
                File reportFile = new File(this.getServletConfig().getServletContext().getRealPath("/reports/torte_call_center_agenzie.jasper"));
                if (!reportFile.exists()) throw new JRRuntimeException("File jasper non trovato");
                String nomeFile = reportFile.getPath();
                Map parameters = new HashMap();
                parameters.put("codice_questionario", "2");   //just for testing
                ConnettitiAlDB c = new ConnettitiAlDB();
                Connection conn = c.Connettiti(Conf.db_principale);
                byte_array = JasperRunManager.runReportToPdf(fullpath_filename, parameters, connessione);
                conn.close();
            catch(JRException e){
                e.printStackTrace();
            catch(SQLException e) {
                e.printStackTrace();
            response.setContentType("application/pdf");
         response.setContentLength(byte_array.length);
         ServletOutputStream ouputStream = response.getOutputStream();
         ouputStream.write(byte_array, 0, byte_array.length);
         ouputStream.flush();
         ouputStream.close();
         }Any suggestion? That would be vital to me!
    Thanks in advance

    catching the JRRuntimeException and printing its stacktrace i saw that the jfree chart lib was missing.
    i put it in my libraries but now i got this error:
    java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfContentByte.transform(Ljava/awt/geom/AffineTransform;)V
         net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1468)
         net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:484)
         net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:448)
         net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:413)
         net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:250)
         net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:188)
         net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:205)
         customer_care.servlet.Reporting.getReport(Reporting.java:77)
         customer_care.servlet.Reporting.processRequest(Reporting.java:50)
         customer_care.servlet.Reporting.doGet(Reporting.java:92)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    com.lowagie.text.pdf.PdfContentByte.transform is inside the iText library.
    I had an old version so I updated it but nothing changed.
    Any suggestion?
    Thanks

  • Trying to generate a pdf with jasper reports

    Fellas,
    i hav trying to generate a pdf with jasper reports, but i cant. I create a file .jasper with iReports. This is my code:
    emite.java
    package utilitarios;
    //import net.sf.jasperreports
    import net.sf.jasperreports.engine.*;
    import net.sf.jasperreports.view.JasperViewer;
    import java.sql.*;
    import java.util.*;
    import javax.swing.*;
    import java.util.HashMap;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class emitebl {
    private static Connection getConnection( ) throws ClassNotFoundException, SQLException{
    String driver = "org.postgresql.Driver";
    String url = "jdbc:postgresql://localhost/sist";
    String user = "usuario";
    String password = "";
    Class.forName(driver);
    Connection con = DriverManager.getConnection( url, user, password );
    return con;
    public void geraRelatorio( ) throws JRException, Exception{
    Connection con = getConnection( );
    Statement stm = con.createStatement( );
    String query = "SELECT * FROM emissaobl WHERE id=4";
    ResultSet rs = stm.executeQuery(query);
    JRResultSetDataSource jrRS = new JRResultSetDataSource(rs);
    Map parameters = new HashMap();
    JasperFillManager.fillReportToFile("emitebl.jasper",parameters,jrRS);
    JasperExportManager.exportReportToPdfFile("emitebl.jrprint");
    JasperViewer.viewReport("emissao_bl.pdf",false);
    } emissao.jsp:
    <%@ page import="utilitarios.*" %>
    <%
    new emitebl().geraRelatorio();
    %>Following the error message exception:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: emitebl.jasper
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.emissaobl.exportapdf_jsp._jspService(exportapdf_jsp.java:76)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    root cause
    net.sf.jasperreports.engine.JRException: emitebl.jasper
         net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:73)
         net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:270)
         utilitarios.emitebl.geraRelatorio(emitebl.java:37)
         org.apache.jsp.emissaobl.exportapdf_jsp._jspService(exportapdf_jsp.java:54)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)where i hav to put the .jasper file?

    Hi,
    If you have placed your .jrxml file say in C:\reports, and when you use compileReportToFile(jrxmlFileName), then the jasper file will be created in the same directory C:\report with the same file name with .jasper extension. If you want a pdf report then specify the same location and file name with '.pdf' extension as destination .
    Hope this helps

  • Jasper Reports error LINUX "sun.misc.Unsafe.ensureClassInitialized(Native "

    I have a servlet generating Reports using jasper reports. Its working perfectly on windows machine but on LINUX RHEL 4 SERVER it is throwing some error which is I am trying to tackle.
    TOMCAT :5.0.28
    JDK 1.4.2_08
    I installed the deprecated libraries for X-windows server.
    I think its JRloader which is throwing error but i have no clue how should I remove it.
    I hope someone knows this problem.
    error
    javax.servlet.ServletException
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:682)
         org.apache.jsp.Login.MCRServlet_jsp._jspService(MCRServlet_jsp.java:220)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NoClassDefFoundError
         sun.misc.Unsafe.ensureClassInitialized(Native Method)
         sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:20)
         sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
         java.lang.reflect.Field.acquireFieldAccessor(Field.java:779)
         java.lang.reflect.Field.getFieldAccessor(Field.java:760)
         java.lang.reflect.Field.getLong(Field.java:398)
         java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1478)
         java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:47)
         java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:335)
         java.security.AccessController.doPrivileged(Native Method)
         java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:333)
         java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)
         java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:453)
         java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
         java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
         java.util.ArrayList.readObject(ArrayList.java:554)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
         net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:88)
         net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:64)
         ReportGenerator.ReportServlet.getCompiledReport(ReportServlet.java:210)
         ReportGenerator.ReportServlet.doPost(ReportServlet.java:55)
         ReportGenerator.ReportServlet.doGet(ReportServlet.java:39)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    jaumev wrote:
    I have exactly th e same problem.
    Have someone solved it?
    Thanks in advancePlease, don't resurrect old threads. Start a new thread if you have a specific question. I'm locking this one.
    Kaj

Maybe you are looking for

  • Attachment disappear when forwarding a mail with attachment in a rule

    Could anyone verify my problem please? I have upgraded to Mountain Lion and Mail 6.1 I have a rule set up in Mail to forward certain messages. However, since the upgrade, all messages being forwarded has all attachments striped. It appears that the p

  • Challeging Traversal of Vector and Array

    Hi there ! I would like to render the values of this Vector and Array . How do I print it out to the browser ? try ResultSet rset = stmt.executeQuery(myQuery); System.out.println(" Finish Execute Query !!! "); /* Array Contruction */ int numColumns =

  • What does the garmin45.vi actually do?especially all the stuff at the bottom of the diagram page.cheers

    see above Attachments: Garmin45.vi ‏621 KB timeset.bat ‏1 KB bargraph.llb ‏66 KB

  • Slideshow Quality Query

    Hey, I'm doing a slideshow for our class's graduation in iMovie. We are going to put in a few titles, some movies, but mostly pictures. The slideshow will be shown through a projector on to a white screen. My question is: When the slideshow is comple

  • Update database records

    Hello, I am in the process of updating 100,000 records using Oracle 9i. Currently I am reading all records from the database using .NET, read the CLOB(which contains XML file) field and find and replace the text and updating each one. At the end I co