abrahama Posted May 16, 2007 Share Posted May 16, 2007 Hi Friends,We are using latest Jasper Server and Jasper Reports in our reporting application.We need Text export and CSV Export. After going through the forum posts and by verifying the examples, I have created Text servlet and CSV servlets and included in the JasperReports jar.web.xml configured for take caring the new servlets. I created ReportTxtExporter and ReportCsvExporter and placed in the jasperserver-war-jar jar file.action.xml,viewReportFlow.xml files corrected for the new files. But in the login time the following error is getting. org.springframework.webflow.FlowArtifactException: Unable to obtain a Action flow artifact with id 'reportTxtExporter': make sure there is a valid [interface org.springframework.webflow.Action] exported with this id; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reportTxtExporter' defined in ServletContext resource [/WEB-INF/flows/actionBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [com.jaspersoft.jasperserver.war.action.ReportTxtExporter]; constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The import com.jaspersoft.jasperserver.api cannot be resolved The import javax.servlet cannot be resolved The import net cannot be resolved The import net cannot be resolved The import net cannot be resolved The import org.springframework cannot be resolved AbstractReportExporter cannot be resolved to a type RequestContext cannot be resolved to a type ExecutionContext cannot be resolved to a type JRException cannot be resolved to a type JRTxtExporter cannot be resolved to a type JRTxtExporter cannot be resolved to a type RequestContext cannot be resolved to a type RequestContext cannot be resolved to a type HttpServletResponse cannot be resolved to a type Kindly help me to sort out this issue. I compiled the java classes and prepared the jar files with the latest compiled classes. But even after that it is showing the above mentioned error while login Thanks in advanceAbraham Link to comment Share on other sites More sharing options...
abrahama Posted May 16, 2007 Author Share Posted May 16, 2007 Hi Friends, The error which I mentioned was a copilation mistake.I completed the Text Export and CSV export sucessfully.The copiled class file contained the mentioned errors. I once agaian compiled it correctly and got the error solved. Thanks once agaian to all forum members.Expecially the people responded to earlier CSV export errors and Text export errors problem in the forum. Because I referred all such reply mails Abraham Link to comment Share on other sites More sharing options...
smohan Posted May 21, 2007 Share Posted May 21, 2007 abraham will you please help me to create a Text exporter ? Link to comment Share on other sites More sharing options...
abrahama Posted May 22, 2007 Author Share Posted May 22, 2007 Dear smohan,What is your exact requirement.What kind of system you are using now?Abraham Link to comment Share on other sites More sharing options...
leeck Posted August 29, 2007 Share Posted August 29, 2007 Hi, Can you post your servlet here ? Thank you. Link to comment Share on other sites More sharing options...
abrahama Posted August 29, 2007 Author Share Posted August 29, 2007 Dear leeck,I am attaching the CsvServlet herewithRegardsAbraham [file name=CsvServlet.zip size=1661]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/CsvServlet.zip[/file]Post edited by: abrahama, at: 2007/08/29 13:33 Link to comment Share on other sites More sharing options...
leeck Posted August 31, 2007 Share Posted August 31, 2007 Can I have the source and export to text as well ? Thank you. Link to comment Share on other sites More sharing options...
abrahama Posted August 31, 2007 Author Share Posted August 31, 2007 Hi,CsvServlet and TxtServlet Source code attached HerewithRegardsAbraham [file name=servlets.zip size=3356]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/servlets.zip[/file] Link to comment Share on other sites More sharing options...
leeck Posted September 3, 2007 Share Posted September 3, 2007 Thank you Brother. Link to comment Share on other sites More sharing options...
leeck Posted September 3, 2007 Share Posted September 3, 2007 Is this correct import net.sf.jasperreports.engine.export.JRTxtExporter; or this one:import net.sf.jasperreports.engine.export.JRTextExporter; May be you have your own JRTxtExporter.class ? Link to comment Share on other sites More sharing options...
leeck Posted September 3, 2007 Share Posted September 3, 2007 I've tested the servlets but it split 1 row to 2 rows ?How to correct it ? Thanks. Link to comment Share on other sites More sharing options...
abrahama Posted September 3, 2007 Author Share Posted September 3, 2007 Dear lee,Txt is the usageYou said you are getting 2 rows in the output report.In our case there is no problem. Kindly check your JRXML Configuration and alignmentsRegardsAbraham Link to comment Share on other sites More sharing options...
leeck Posted September 19, 2007 Share Posted September 19, 2007 You are using session. What about generate directly from .jasper file ? Link to comment Share on other sites More sharing options...
abrahama Posted September 26, 2007 Author Share Posted September 26, 2007 Dear Mr.Leeck,Sorry for the time delay.From your query, I consider that you are using Ireport Plugin for developing Jasper JRXML. To get the Preview of the report you prepared, you can execute it using the Build -> Execute it with Active Connection Option..The .Jasper file will be created in your default folder and result can be viewed using the default viewer specified in the Build pane of I Report.But if you have choosen CSV export as the defualt viewer then you have to specify the application to which the csv should be read in the Options -> Settings -> External Programs -> CSV Viewer section You can specify the field separator in the Options -> export options.RegardsAbraham Link to comment Share on other sites More sharing options...
ohm_g7 Posted May 28, 2009 Share Posted May 28, 2009 I won't to export retort to txt andI download servlet from this topic.But I dob't know how to integrate it to my server.Please tell me. Thank you for reply. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now