Jump to content
We've recently updated our Privacy Statement, available here ×

2002 JI Open Discussion

Members
  • Posts

    1,481
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by 2002 JI Open Discussion

  1. By: Neil H - neilhay Can I generate a report from collection? 2003-01-15 10:42 I will like to generate a report from Java collection Hash etc.) - is that possible? By: Teodor Danciu - teodord RE: Can I generate a report from collection? 2003-01-15 23:37 Hi, Yes you can. You either implement your custom JRDataSource or use the supplied JRBeanCollectionDataSource. Check the "datasource" sample for details. I hope this helps. Teodor
  2. By: jhl - jhl French character / mySql 2003-01-15 08:45 Hi Teodor, I'm having trouble to retreive french characters from database in the generation of view/report. The problem does not occur if text is static. it occurs only when filling report with fields values from mySql database. mySql is configured with iso-8859-1 encoding. JDBC is configured with iso-8859-1 encoding. a "System.out.println" just before fos.write in the exportReportToFile is Ok. characters are OK. But, the html file contains only "?" character instead of "馱uot;. same result in the viewer. a "objValue = new String(resultSet.getBytes(field.getName()),"iso-8859-1" );" in getFieldValue of JRResultSetDataSource for String class do not solve it. I've already read mails in the forum with this character/database problem but with no correct answer ... Any idea ? Thanks jhl
  3. By: jhl - jhl French character / mySql 2003-01-15 08:43 Hi Teodor, I'm having trouble to retreive french characters from database in the generation of view/report. The problem does not occur if text is static. it occurs only when filling report with fields values from mySql database. mySql is configured with iso-8859-1 encoding. JDBC is configured with iso-8859-1 encoding. a "System.out.println" just before fos.write in the exportReportToFile is Ok. characters are OK. But, the html file contains only "?" character instead of "馱uot;. same result in the viewer. a "objValue = new String(resultSet.getBytes(field.getName()),"iso-8859-1" );" in getFieldValue of JRResultSetDataSource for String class do not solve it. I've already read mails in the forum with this character/database problem but with no correct answer ... Any idea ? Thanks jhl
  4. By: Max Po - maxpo ReportsElements 2003-01-15 02:40 Hi, Is it possible to set dynamically the "y" and "height" parameter of a reportElement? I want to make a report with one of its componets has the size variable, depending on a database field. Thanks. By: Teodor Danciu - teodord RE: ReportsElements 2003-01-15 05:43 Hi, This is not possible. Thank you, Teodor
  5. By: Fishee - fishee Plugin error 2003-01-14 23:44 i encountered 2 errors, which are:- - "An error occurred inside a plug-in contained on this page" - "The plugin did not initialize properly" whenever the length of a page's URL exceed a certain amount of characters. But when i cut down the parameters passed to the next page (which obviously would shorten the length of the URL), the report would display without any problem. Is there a solution to this? By: Yeap - hzyeap RE: Plugin error 2003-01-15 02:02 Yes, i encounter the same problem. when my URL like http://localhost:8888/reports.do?method=viewreport&currentyear=2003&currentmonth=1&userid=Hasnudin It will pop up a windows "An error occurred inside a plug-in contained on this page" and "The plugin did not initialize properly" but when i shorten the URL like reports.do?method=vr&y=2003&m=1&u=Has will be ok. Anyone please help to solve this problem. (i am using windows 2000 and OC4J)
  6. By: fangzj - fangzj report generate problem 2003-01-14 01:37 When the generated report is only one page, it works fine. If the report has more than one pages, it seems all data mixed on the first page, other pages has page number, but no data. Anything I missing? thanks! By: fangzj - fangzj RE: report generate problem 2003-01-14 18:07 It works when I delete columnCount in report define xml file. By: Teodor Danciu - teodord RE: report generate problem 2003-01-14 23:26 Hi, Can I see the PDF that presents this problem? And the XML? teodord@hotmail.com Thank you, Teodor
  7. By: ervin chua joy - notinthisworld JTable in jasperfillmanager 2003-01-14 02:41 how can i use the Jtable in the jasperfillmanager(new JRTableModelDataSource())); do i really need to use datamodel for my table? can't i use ordinary jtable pls help.. By: Teodor Danciu - teodord RE: JTable in jasperfillmanager 2003-01-14 03:41 Hi, Check the "datasource" sample for details about how to use this type of data source. The reporting engine is only interested in "pure data" and this is why it only needs a TableModel, not the entire JTable. However, JTable has a getModel() method that you could use. I hope this helps. Teodor By: ervin chua joy - notinthisworld RE: JTable in jasperfillmanager 2003-01-14 04:09 should i use jtable.getModel()?? i tried that and it didn't work By: Teodor Danciu - teodord RE: JTable in jasperfillmanager 2003-01-14 05:04 Hi, If you want to use the JRTableModelDataSource to wrap a TableModel object, you have to make sure you have declared a report field for each column in the TableModel, having the same name. If not, you could still access the colmun values by index, if you declare report fields like: COLUMN_1, COLUMN_5 or COLUMN_100 I hope this helps. Teodor By: ervin chua joy - notinthisworld RE: JTable in jasperfillmanager 2003-01-14 05:54 what does classCastException error means????? By: Teodor Danciu - teodord RE: JTable in jasperfillmanager 2003-01-14 06:04 Hi, It means (in your case) that even if you declared corresponding report fields for each table column, their type does not seem to correspond. It's like a type mismatch between the TableModel columns and the report fields. I hope this helps. Teodor By: ervin chua joy - notinthisworld RE: JTable in jasperfillmanager 2003-01-14 14:23 what should i do then?? tnx By: ervin chua joy - notinthisworld RE: JTable in jasperfillmanager 2003-01-14 06:16 what should i do then?? tnx By: Teodor Danciu - teodord RE: JTable in jasperfillmanager 2003-01-14 23:22 Hi, If this is the exact case, then you should pay attention to the "class" attribute that you choose for each report field you declare in the report. It has to correspond exactly to the type of the values found in the corresponding TableModel column. I hope this helps. Teodor
  8. By: Elba - elbas parameters in dynamic query string 2003-01-13 16:23 Hi Teodor, I have a problem with dynamic query string, I'm using the syntax : $P!{param_name}, to allow to the user to provide this parameter or not. So, when the two parameters are not provided, my messages on the console about compiling, filling and printing in pdf are successfully, but I can't see anything on the page, nothing is displayed. But when I provide only one of the parameters even both, I got an error message like: java.sql.SQLException: Invalid column name 'SCFI' NESTED BY : dori.jasper.engine.JRException: Error executing report query : select elec.ce_marca, lab.lab_nombre, nom.nom, cli.cli_empresa from C_ELECTRONICA elec, LABORATORIOS lab, NOMS nom, CLIENTES cli where elec.CE_LABORATORIO=lab.ID_REGISTRO and elec.CE_NORMA=nom.ID_REGISTRO and elec.CE_EMPRESA=cli.ID_REGISTRO and nom.nom=NOM-016-SCFI-1993 and cli.cli_empresa=null The parameters provided use '-' and ',' . How can I fix that? elbas By: Teodor Danciu - teodord RE: parameters in dynamic query string 2003-01-13 23:46 Hi, You hav to quote the value that you are filtering on, since it is a character sequence and not a column nam i guess: ... and nom.nom='NOM-016-SCFI-1993' ... or ... and nom.nom="NOM-016-SCFI-1993" ... I hope this helps. Teodor By: Elba - elbas RE: parameters in dynamic query string 2003-01-14 09:03 I'm still have the problem, when both parameters are provided, the report is ok but when one of the parameters are missing, or all the parameters are missing, I got the message: This file cannot be opened because it has no pages. I'm trying with: select e.marca, lab.name, nom.nom, cli.empresa from table1 e, table2 lab, table3 nom, table4 cli where e.lab=lab.ID and e.nom=nom.ID and nom.nom='$P!{FiltroNorma}' and cli.cli_empresa='$P!{FiltroEmpresa}' It's wrong the ! in the query? elbas By: Teodor Danciu - teodord RE: parameters in dynamic query string 2003-01-14 23:18 Hi, There is nothing wrong. Is just that when one of the parameters are missing, the query filter becomes something like this: (parameter FiltroNorma missing) ... and nom.nom='' ... or worse ... and nom.nom='null' ... I'm sure with such a filter, the query will return no rows and by default, the engine will not create any pages. If you want it to create something however, use the "whenNoDataType" attribute. But I think the way you have created your query is not approapriate as I'm sure that when one of the parameters is missing, you want it to be ignored in the filter. That means that the WHERE clause should be build at runtime, depending on the mentioned conditions. I hope this helps. Teodor
  9. By: marc - marcw718 can I print a thin line between each row? 2003-01-10 13:09 How can I print a thin line between each row? Also, how can I make the rows print in alternating colors? Thanks, Marc By: Krishna S - krishna_s RE: can I print a thin line between each row? 2003-01-10 14:08 Hi Marc, I don't know how to print a thin line. Here is what i tried w/ bands ( alternate colors ): For each table cell, have two overlapping text fields ( one of them w/ background color and another with out background color) and based chose the right text field based on the row count. See "1. Dynamic Element Formatting" in the page http://jasperreports.sourceforge.net/tips.tricks.html On problem I found w/ the above approach is: some times if the cell streches ( beacuse the field is larger than the allocated space ) it looks awkward. If you find any other soln. pls post here Rgds., By: Krishna S - krishna_s RE: can I print a thin line between each row? 2003-01-10 14:09 Hi Marc, I don't know how to print a thin line. Here is what i tried w/ bands ( alternate colors ): For each table cell, have two overlapping text fields ( one of them w/ background color and another with out background color) and based chose the right text field based on the row count. See "1. Dynamic Element Formatting" in the page http://jasperreports.sourceforge.net/tips.tricks.html On problem I found w/ the above approach is: some times if the cell streches ( beacuse the field is larger than the allocated space ) it looks awkward. If you find any other soln. pls post here Rgds., By: Krishna S - krishna_s RE: can I print a thin line between each row? 2003-01-10 14:27 Regd., line here is a thought: Pass alternate empty rows to Jasper API. And in the design insert a thin row with background color ? Rgds., By: Moisey Blehman - rhal RE: can I print a thin line between each row? 2003-01-14 09:11 Just put this code in the end of your detail section: <line> <reportElement x="0" y="13" width="230" height="0" forecolor="#808080" positionType="Float"/> <graphicElement stretchType="NoStretch" pen="Thin"/> </line> y="13" - your detail section band height width="230" - your detail section width. You can see more on this in the demo section of jasper reports ("jasper" directory...)
  10. By: Bill Fritz - bfritz2 Implementing your own JRHyperLinkListener 2003-01-08 14:42 I have create a report that uses hyperlinkType="RemoteAnchor". When I view the report (using JasperViewer) I would like the referenced report to appear. I know I need to implement my own JRHyperLinkListener to manage this event. However, I would like a liitle more information on what is involved in order to do this. Thanks, Bill By: Teodor Danciu - teodord RE: Implementing your own JRHyperLinkListener 2003-01-09 03:25 Hi, The JRViewer component itself implements this listener interface to respond to your clicks in the JasperViewer. It deals only with some simple types of hyperlink references like the local references. You will have to create your own viewer that uses the JRViewer component, just like the supplied JasperViewer does. Then, you implement this JRHyperlinkListener interface in one of your classes and add an instance of it to the JRViewer component using the addHyperlinkListener() method. You can see this in the "webapp" sample, where the ViewerFrame class represent such a new viewer. You can click on the Google link and it will redirect the browser to that URL. However, only adding the new listener, will not suppress the display of those "recommendations" on the console, but this is something I could fix for you in the next version, so that you don' have to remove the original listener just to get rid of them. I hope this helps. Teodor By: Bill Fritz - bfritz2 RE: Implementing your own JRHyperLinkListener 2003-01-14 06:39 I have followed your advice (thank you by the way) and have everything working. I have another question concerning memory use efficiency. A little background information for the problem will help. I have created a top level report with summary information which has links to individual reports (each with its own set of subreports, etc.). The links are of type hyperlinkType="RemoteAnchor" and they all refer to .jrprint files. I have implemented my own JRHyperLinkListener as you described. Here is a code fragment for that. try { this.pnlMain.remove(viewer); viewer = new JRViewerPlus(hyperlink.getHyperlinkReference(), false); viewer.addHyperlinkListener(this); this.pnlMain.add(viewer, BorderLayout.CENTER); this.pnlMain.revalidate(); } catch (JRException e) { JOptionPane.showMessageDialog(this, e.getMessage()); } My questiion is: Is there a more efficient way of handling this link other than creating a new JRViewerPlus object each time the link event occurs? It is likely that the user will go back and forth from the top level report to these individual reports many times. I looked at the source code, but the methods that I need (in JRViewer) like loadReport are all private and I do not have access to them. Any suggestions would be most appreciated. Thanks, Bill By: Teodor Danciu - teodord RE: Implementing your own JRHyperLinkListener 2003-01-14 07:10 Hi, Make public or protected all the methods or fields you need. Then, if everything is OK, we'll make all these modifications available in the main version of the library. This way I could have some feedback from you in this direction. Thank you, Teodor
  11. By: Catalina Ramos - cataandrea Rotate text Vertically 2003-01-13 10:50 Hi In my report, I have a "vertical text", this is a word with one letter per line. So, the height of the <staticText> is longer than the band, because is a narrow <staticText>. When I compile the xml, I received a warning and I can't view the word in the report. Is there a correct way to do this?? Thanks for any suggestion By: Teodor Danciu - teodord RE: Rotate text Vertically 2003-01-13 23:41 Hi, It depends on what you want to do with this text element. Normally, the elements should not be placed outside their band limits. Those elements that go beyond the band bottom will not be printed. However, those that go beyond the band top will get printed (negative Y). This might be your way out. You could ignore the warning in this case. I hope this helps. Teodor By: Catalina Ramos - cataandrea RE: Rotate text Vertically 2003-01-14 05:35 Thank you, Teodor. It really works!!!
  12. By: ervin chua joy - notinthisworld JTable in jasperfillmanager 2003-01-14 03:01 how can i use the Jtable in the jasperfillmanager(new JRTableModelDataSource())); do i really need to use datamodel for my table? can't i use ordinary jtable pls help..
  13. By: Chuck Deal - cdeal JasperDesign - set methods 2002-11-08 09:07 I'm working with JasperEdit trying to add a properties dialog to access the values of an existing report. I have been using a JasperDesign object to retrieve the values of the loaded report. I am working on the Report Parameters piece of the dialog and I have found that JasperDesign does not have a setParameters method. Is this an oversight or is there another way that I can set the Parameters list. I haven't gone through the entire object yet, but I guess I expected that every get method in JRBaseReport would have a set method in JasperDesign. Was this a bad assumption? Thanks! Chuck By: Teodor Danciu - teodord RE: JasperDesign - set methods 2003-01-14 00:19 Hi, Here's a late answer: You could alter the parameters list using the addParameter() and removeParameters() methods. Thank you, Teodor
  14. By: marc - marcw718 print title and header if no data is returned 2003-01-10 13:10 If my query does not return any data, nothing gets printed in my report. How can I print the report title and column header when no data is returned from the query? I tied using: <band height="50"> <printWhenExpression>new Boolean("true" == "true")</printWhenExpression> but it does not work. Thanks, Marc By: Giulio Toffoli - gt78 RE: print title and header if no data is returned 2003-01-11 16:19 You must set tag: whenNoDataType in jasperReport element. Accepted values: NoPages [default] BlankPage AllSectionsNoDetail Ciao Giulio By: marc - marcw718 RE: print title and header if no data is returned 2003-01-13 06:52 Great, thanks for the help. That did it. -Marc
  15. By: Muralidhar bp - pmurli Getting data from Multiple tables 2003-01-12 01:14 Hello, What are subreports and how this can be used. And one more query is .......... select b.BRANCH_CODE, b.BRANCH_NAME, count(c.customer_id) from TF_PAR_BRANCH_PERSONALIZATION b, TF_M_CUSTOMER c where b.branch_code=c.branch_code group by b.BRANCH_CODE, b.BRANCH_NAME THis query gets the data from two tables and is it necessary to use sub reports. Please help me, it is very urgent. Thanx Murli By: Teodor Danciu - teodord RE: Getting data from Multiple tables 2003-01-13 01:25 Hi, If you can retrieve all the data you need in a single SQL query, using joins like this, you don't necessarily need subreports. The actual number of tables joined in the query is not important. JasperReports is interested only in the ResultSet. It can work with only one ResultSet per report/subreport. Only if you have multiple queries you'll need subreports. I hope this helps. Teodor
  16. By: Muralidhar bp - pmurli Report encountered this error : 2003-01-11 22:57 Hello, I have developed a small web reports and I am getting this error. Plzz help me. Thanx Murli java.sql.SQLException: Column not found at sun.jdbc.odbc.JdbcOdbcResultSet.findColumn(JdbcOdbcResultSet.java:1790) at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:383) at dori.jasper.engine.JRResultSetDataSource.getFieldValue(JRResultSetDataSource.java:207) at dori.jasper.engine.fill.JRBaseFiller.next(JRBaseFiller.java:702) at dori.jasper.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:158) at dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:457) at dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:373) at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:114) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:217) at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:138) at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:106) at servlets.ListOfCustomerNumberServlet.service(ListOfCustomerNumberServlet.java:66) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) NESTED BY : dori.jasper.engine.JRException: Unable to get value for field 'BranchCode' of class 'java.lang.Integer' at dori.jasper.engine.JRResultSetDataSource.getFieldValue(JRResultSetDataSource.java:272) at dori.jasper.engine.fill.JRBaseFiller.next(JRBaseFiller.java:702) at dori.jasper.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:158) at dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:457) at dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:373) at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:114) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:217) at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:138) at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:106) at servlets.ListOfCustomerNumberServlet.service(ListOfCustomerNumberServlet.java:66) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) By: Teodor Danciu - teodord RE: Report encountered this error : 2003-01-13 01:13 Hi, There is a name mismatch between the columns returned in the ResultSet by the query and the report fields that you have declared in your report. For each report field there has to be a column with the same name in the ResultSet. Check the "BranchCode" field. I hope this helps. Teodor
  17. By: Boris Klug - bklug Line spacing with isStretchWithOverflow 2003-01-08 09:16 Hello! I write out a table with data, normaly the data per row is in all fields one line. In some rows, the data can be in one field so big that it wraps into a new line. It does it nicely when I use the isStretchWithOverflow attribute. The problem is now that the line spacing does no longer fit: The first line of the multi text field is no longer on the same line like the other field. I try to emulate the behaviour using ascii chars: 1) All field are one line: aaa bbbb ccc 2) Now "ccc" wraps and the base line of "ccc" is no longer in sync with "aaa" and "bbb" aaa bbbb ccc ccc The ouput generate pdf files. Any help? By: Boris Klug - bklug RE: Line spacing with isStretchWithOverflow 2003-01-10 01:01 Me again - nobody knows about this problem? By: Teodor Danciu - teodord RE: Line spacing with isStretchWithOverflow 2003-01-10 01:30 Hi, I'm aware of this problem. It's just that it is a very delicate one and did not find a proper solution yet. I'll try my best for the next version. Thank you, Teodor By: Boris Klug - bklug RE: Line spacing with isStretchWithOverflow 2003-01-13 00:17 Hello Teodor! thank you for the reply. After reading your Utilmate Guide ( ;-) ), I think I just will use another textfield for the second line which will be removed when empty.
  18. By: Trevor G - v2cib198 Column footer location 2003-01-10 14:15 is there any way to move the column footer to the very end of a column rather then at the end of the page. By: Giulio Toffoli - gt78 RE: Column footer location 2003-01-11 16:17 Create a fake group and use group footer. Giulio
  19. By: Trevor G - v2cib198 Sum of multiple pages 2003-01-10 14:14 How do i get the sum of a column over multiple pages? It seems to only add up the page.
  20. By: Trevor G - v2cib198 How do i supress the column footer? 2003-01-10 13:26 How do i supress the column footer to the last page? the column footer to only show up on the last page. By: Trevor G - v2cib198 RE: How do i supress the column footer? 2003-01-10 14:09 I figured it out i used the printWhenExpression on the band to wait until the last page
  21. By: marc - marcw718 print title and header if no data is returned 2003-01-10 13:06 If my query does not return any data, nothing gets printed in my report. How can I print the report title and column header when no data is returned from the query? I tied using: <band height="50"> <printWhenExpression>new Boolean("true" == "true")</printWhenExpression> but it does not work. Thanks, Marc
  22. By: Neil H - neilhay PDF generation issue 2003-01-02 12:56 When i create a PDF file using WSAD (Web Sphere Application Development tool), verythinking looks fine and are aligned ok. But when i create a file using a batch file in Dos environemt, some of the alignment gets screwed up. my dos command look like this: java -cp "C:Program FilesIBMApplication DeveloperworkspaceTeraIcwebApplicationWEB-INFclasses";"C:Program FilesSQLLIBjavadb2java.zip"; com.company.reports.ProcessReports "123" "1" "12/09/2002" "C:reports\" any suggestion will be great! Thanks! By: Teodor Danciu - teodord RE: PDF generation issue 2003-01-10 05:20 Hi, Can I see this alignment problem? teodord@hotmail.com Thank you, Teodor
  23. By: Anne Dirkse - dirkse Help with Thumbnails/Images 2003-01-08 08:45 Hi There -- I am creating a report using Jasper that I just can't figure out how to do properly. The main content of the report is images and descriptions of them. The images are large and take up a full page each in the PDF. I also need to include thumbnails of those image in the beginning of the report. Each page of the report, including the thumbnails page, needs to be sequentially numbered. I couldn't figure out how to display the same image twice, so I, in blatant disregard of resource conservation and good style, made a subreport that was just the thumbnails, and included that in the other report with the large versions of the images. The problem is, I couldn't then get the pages to line up sequentially, and I always got a blank page at the end of the thumbnails. I have tried working around this and have hit brick wall after brick wall, so I'm hoping that some of you have some suggestions for how I should accomplish this. Thanks, Anne By: Teodor Danciu - teodord RE: Help with Thumbnails/Images 2003-01-10 05:00 Hi, May I see the reports? XML and PDF. teodord@hotmail.com Thank you, Teodor
  24. By: Irfan Ali - umapinc error running sample/webapp 2003-01-08 10:05 Hello everyone, Can anyone show me how to run the webapp under samples folder. I am getting following errors when I try to run it through my browser. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 77 in the jsp file: /webapp/jsp/compile.jsp Generated servlet error: [javac] Compiling 1 source file /home/jakarta-tomcat-4.1.18/work/Standalone/localhost/JasperReports/webapp/jsp/compile_jsp.java:7: package dori.jasper.engine does not exist import dori.jasper.engine.*; ^ /home/jakarta-tomcat-4.1.18/work/Standalone/localhost/JasperReports/webapp/jsp/compile_jsp.java:63: cannot resolve symbol symbol : variable JasperCompileManager location: class org.apache.jsp.compile_jsp JasperCompileManager.compileReportToFile(application.getRealPath("/reports/WebappReport.xml")); ^ 2 errors at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) Any help in this regard is highly appreciated. Thanks, Irfan By: Teodor Danciu - teodord RE: error running sample/webapp 2003-01-10 04:58 Hi, The jasperreports.jar is not in the classpath. It should be placed in the WEB-INF/lib directory of your web application. Thank you, Teodor
  25. By: Mario Garcia - mariogg Problems with filling 2003-01-09 00:02 Hello, I have been working for the first time with the jasperreports and I have a little problem when I try to run my application. I've packed my application into a JAR file including all the libraries from the jasperreports package. The problem is that when I'm running the application from JBuilder it works fine, but when I try to run the JAR file, the reports are not filled and appear completely empty. Does anybody know what is happenning? Can anybody tell me any other way to distribute my application, I mean should I include the jasperreports in the JAR file or not? If not how can I configure jasperreports? Thanks so much in advance! By: Teodor Danciu - teodord RE: Problems with filling 2003-01-10 04:46 Hi, "Completely empty" means several blank pages or no pages at all? Can I see a correct PDF and then an empty one? teodord@hotmail.com Thank you, Teodor
×
×
  • Create New...