Jump to content
Changes to the Jaspersoft community edition download ×

Jasper Text Export and CSV Export


abrahama

Recommended Posts

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 advance

Abraham

Link to comment
Share on other sites

  • Replies 14
  • Created
  • Last Reply

Top Posters In This Topic

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

  • 3 months later...
  • 3 weeks later...

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.

Regards

Abraham

Link to comment
Share on other sites

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...