Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Upgrade jasper reports

No longer need to remove outdated jasperreports-2.0.5.jar files!
  • Loading branch information...
commit 011a3d9da8cd9c1ed556f8a02439ea4858cd96a6 1 parent d4bfe3d
@NathanNeff authored
View
28 DEVELOPER_NOTES.markdown
@@ -69,40 +69,12 @@ I just ran the following hack:
sudo mkdir /usr/share/tomcat6/.grails
sudo chmod 777 /usr/share/tomcat6/.grails
-## Remove jasperreports-2.0.5
-
-After Grails installs the necessary plugins, it's a wise move to remove the troublesome
-jasperreports-2.0.5.jar file from your ~/.grails directory. See below for details.
-
# Building War File
Run the tests and the application itself before building the .war file.
Also, see the jasperreports-2.0.5 kludge below.
-## Remove outdated jasperreports-2.0.5.jar when building War file
-
-The jasper reports plugin (0.9.7) is shipped with two jasperreports-X-X-X.jar files.
-
-Grails puts both .jar files into the .war, and the outdated .jar file might be used
-when generating the Call List report or the Graduation Report. This will produce an error
-like this one:
-
- Parse Error at line 2 column 412: Document root element "jasperReport", must match DOCTYPE root "null".
- org.xml.sax.SAXParseException: Document root element "jasperReport", must match DOCTYPE root "null".
- <snip>
- Caused by: net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: Document root element "jasperReport", must match DOCTYPE root "null".
- at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:243)
- at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226)
-
-The solution is to DELETE the older jasperreports-X-X-X file from your ~/.grails directory
-before building the war file. Example:
-
- cd ~/.grails
- find . -name 'jasperreports*jar'
- # Zap the one with the older version number
-
-
# Upgrading Enrollio
If you've downloaded Enrollio before the Grails 1.2 upgrade, you should
View
4 application.properties
@@ -1,5 +1,5 @@
#Grails Metadata file
-#Sat Oct 01 23:22:45 CDT 2011
+#Sat Oct 29 16:15:00 GMT-06:00 2011
app.grails.version=1.3.6
app.name=enrollio
app.servlet.version=2.4
@@ -10,7 +10,7 @@ plugins.commentable=0.7.5
plugins.dynamic-jasper=0.6
plugins.functional-test=1.2.7
plugins.hibernate=1.3.6
-plugins.jasper=0.9.7
+plugins.jasper=1.2.2
plugins.navigation=1.3.1
plugins.rendering=0.4.2
plugins.searchable=0.5.5
View
12 web-app/reports/graduationCertificate.jrxml
@@ -13,35 +13,35 @@
<staticText>
<reportElement x="216" y="27" width="492" height="80"/>
<textElement textAlignment="Center">
- <font fontName="Tlwg Typist" size="58" isBold="true"/>
+ <font fontName="SansSerif" size="58" isBold="true"/>
</textElement>
<text><![CDATA[Byte WORKS]]></text>
</staticText>
<staticText>
<reportElement x="160" y="107" width="605" height="54"/>
<textElement textAlignment="Center">
- <font fontName="Sawasdee" size="32" isBold="true"/>
+ <font fontName="SansSerif" size="32" isBold="true"/>
</textElement>
<text><![CDATA[CERTIFICATE OF EXCELLENCE]]></text>
</staticText>
<staticText>
<reportElement x="160" y="161" width="605" height="54"/>
<textElement textAlignment="Center">
- <font fontName="Sawasdee" size="24" isBold="true"/>
+ <font fontName="SansSerif" size="24" isBold="true"/>
</textElement>
<text><![CDATA[Is Hereby Granted To:]]></text>
</staticText>
<staticText>
<reportElement x="104" y="438" width="717" height="73"/>
<textElement textAlignment="Center">
- <font fontName="Sawasdee" size="20" isBold="true"/>
+ <font fontName="SansSerif" size="20" isBold="true"/>
</textElement>
<text><![CDATA[For Completing Byte WORKS Earn-A-Computer Program through Dedication, Imagination, and Respect of Fellow Classmates and Instructors]]></text>
</staticText>
<staticText>
<reportElement x="103" y="567" width="368" height="79"/>
<textElement markup="html">
- <font fontName="Sawasdee" size="24" isBold="true" isItalic="true"/>
+ <font fontName="SansSerif" size="24" isBold="true" isItalic="true"/>
</textElement>
<text><![CDATA[Nathan Neff, <br />Vice President, BWORKS]]></text>
</staticText>
@@ -62,7 +62,7 @@
<textField>
<reportElement x="471" y="527" width="294" height="38"/>
<textElement textAlignment="Right">
- <font fontName="Sawasdee" size="24" isBold="true" isUnderline="false"/>
+ <font fontName="SansSerif" size="24" isBold="true" isUnderline="false"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{graduationDateParam}]]></textFieldExpression>
</textField>

0 comments on commit 011a3d9

Please sign in to comment.
Something went wrong with that request. Please try again.