Assistance Needed with Step 5C of Aspose.Words Installation on JasperServer 8.2

I am currently installing Aspose.Words for JasperServer to meet our specific requirements for exporting reports to Word format. While following the installation guide, I encountered an issue at Step 5C.

The step instructs me to add the following snippet to the file located at:

\apache-tomcat\webapps\jasperserver\WEB-INF\applicationContext-remote-services.xml

<util:map id="exportParametersMap">
    ...
    <!-- Aspose.Words for JasperReports START -->
    <entry key="aw_doc" value-ref="aw_exportParameters"/>
    <entry key="aw_docx" value-ref="aw_exportParameters"/>
    <entry key="aw_html" value-ref="aw_exportParameters"/>
    <entry key="aw_odt" value-ref="aw_exportParameters"/>
    <entry key="aw_rtf" value-ref="aw_exportParameters"/>
    <entry key="aw_txt" value-ref="aw_exportParameters"/>
    <!-- Aspose.Words for JasperReports END -->
</util:map>

However, when I open the applicationContext-remote-services.xml file, I’m unable to locate where to insert this snippet. The file doesn’t seem to contain an existing <util:map id="exportParametersMap"> section or any similar structure.

I have successfully completed all the other steps in the installation process without any issues. Could anyone please assist me by clarifying:

  • The exact location within the applicationContext-remote-services.xml file where this snippet should be inserted.
  • If the file structure has changed in recent versions, could someone provide an updated guide or example?
  • Any additional steps that might be required to integrate this snippet properly.

Any guidance would be immensely helpful, as we are keen to evaluate Aspose.Words’ capabilities with JasperServer to ensure it meets our needs.

Thank you

@skhalid.ccm

Could you please specify the exact version of Aspose.Words for JasperServer you are using and any specific error messages you are encountering?

I am using the latest version of Aspose.Word - Aspose.Words for JasperReports 24.10

Hi @skhalid.ccm

I checked Installation instruction and find that Step 5C optional and could be used if you have problem with Step 5B

I don’t have anything in the referenced file for Step 5B and my environment uses REST. I was able to do the rest of the parts for Step 5C other than that last part.

I checked applicationContext-remote-services.xml file

It could be that <util:map id="exportParametersMap"> removed in new versions of xml because exportParameters is deprecated in newer version of JasperReports.
But Aspose Words for Jasper Reports uses this depricated functionality for working.

And you can add <util:map id="exportParametersMap"> manually, like this:

<beans profile="jrs">
    <util:map id="remoteExportersMap" key-type="java.lang.String" value-type="com.jaspersoft.jasperserver.remote.ReportExporter">
        <entry key="pdf" value-ref="remotePdfExporter"/>
        <entry key="html" value-ref="remoteHtmlExporter"/>
        <entry key="xlsx" value-ref="remoteXlsxExporter"/>
        <entry key="xls" value-ref="remoteXlsExporter"/>
        <entry key="rtf" value-ref="remoteRtfExporter"/>
        <entry key="csv" value-ref="remoteCsvExporter"/>
        <entry key="xml" value-ref="remoteXmlExporter"/>
        <entry key="odt" value-ref="remoteOdtExporter"/>
        <entry key="ods" value-ref="remoteOdsExporter"/>
        <entry key="docx" value-ref="remoteDocxExporter"/>
        <entry key="pptx" value-ref="remotePptxExporter"/>
        <entry key="json" value-ref="remoteJsonMetadataExporter"/>
        <entry key="data_csv" value-ref="remoteCsvMetadataExporter"/>
        <!-- Aspose.Words for JasperReports START -->
        <entry key="aw_doc" value-ref="remoteAwDocExporter"/>
        <entry key="aw_docx" value-ref="remoteAwDocxExporter"/>
        <entry key="aw_html" value-ref="remoteAwHtmlExporter"/>
        <entry key="aw_odt" value-ref="remoteAwOdtExporter"/>
        <entry key="aw_rtf" value-ref="remoteAwRtfExporter"/>
        <entry key="aw_txt" value-ref="remoteAwTxtExporter"/>
        <!-- Aspose.Words for JasperReports END -->
    </util:map>
    <util:map id="exportParametersMap">
        <!-- Aspose.Words for JasperReports START -->
        <entry key="aw_doc" value-ref="aw_exportParameters"/>
        <entry key="aw_docx" value-ref="aw_exportParameters"/>
        <entry key="aw_html" value-ref="aw_exportParameters"/>
        <entry key="aw_odt" value-ref="aw_exportParameters"/>
        <entry key="aw_rtf" value-ref="aw_exportParameters"/>
        <entry key="aw_txt" value-ref="aw_exportParameters"/>
        <!-- Aspose.Words for JasperReports END -->
    </util:map>
</beans>

I did something similar to that earlier and it didn’t seem to work. I can try it again. Would this work with JasperServer 8.2.0 or would we need to downgrade to 8.0.0 to make it work?

@skhalid.ccm
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSJR-382

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Ok. Here is a screenshot of the error message we are seeing on the server side:
image.png (40.6 KB)