Jrtx styles in Eclipse and tomcat

0

Hi folks,

first of all, happy new year ;)

I use a stylesProject.jrtx in my Java project.

The jrtx file is available at ths location in my Java project : /src/main/webapp/WEB-INF/editions/rapports/commun

I also have a parameter ($P) called commun_subreport_dir pointing on this folder in my project, and it works fine when dealing with a subreport placed in it.

Compiling jrxml files in my project also works fine.

But when executing the rendering of the report through my java project, I get in my Eclipse console :

net.sf.jasperreports.engine.JRException: Byte data not found at: ./stylesProject.jrtx.

Here is the extract of my jrxml file, defining the jrtx using a parameter :

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.5.1.final using JasperReports Library version 6.5.1  -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="entetehuissierredevable" pageWidth="340" pageHeight="270" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="340" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="1938418a-4001-4d0c-9ac8-cfed31dd6149">
    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
    <property name="com.jaspersoft.studio.unit." value="pixel"/>
    <property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
    <template>$P{COMMUN_SUBREPORT_DIR} + "stylesProject.jrtx"</template>
 
    <parameter name="COMMUN_SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
        <defaultValueExpression><![CDATA["./"]]></defaultValueExpression>
    </parameter>

My question is : how do I have to reference my jrtx style? I can't user Jasper's repo because we don't use it at all.

Best regards,

Thomas, from France

grototo's picture
10
Joined: Feb 28 2010 - 11:40pm
Last seen: 5 days 17 hours ago

0 Answers:

No answers yet
Feedback
randomness