Question
Why is Jasper embedded in CF8
I'm trying to invoke the Jasper Report engine directly from
ColdFusion. I've ran into a bit of a snag because CF has compiled
Jasper into it's main JAR and so there is no way to override it.
The below code can be ran in ColdFusion 8 and you'll see the path
and file CFUSION.JAR
<cfobject type="java" class="net.sf.jasperreports.engine.JasperRunManager" action="create" name="jrrm" >
<cfobject type="java" class="net.sf.jasperreports.engine.JasperCompileManager" action="create" name="jrcm" >
<cfoutput>#jrrm.getClass().getProtectionDomain().getCodeSource().getLocation().toString()#</cfoutput>
Since .JAR files are just .ZIP files I extracted it and noticed a NET.SF.JASPERREPORTS path directly in the CFUSION jar. It's all compiled code so I have no idea what version of Jasper it is.
I'm tempted to just plop the new version in the CFUSION jar and rebuilt it. What I can't determine is what within CF is even using Jasper...does anyone on here having any ideas...or an idea on how to find out? And rebuilding this JAR seems like a bit too hacky.
<cfobject type="java" class="net.sf.jasperreports.engine.JasperRunManager" action="create" name="jrrm" >
<cfobject type="java" class="net.sf.jasperreports.engine.JasperCompileManager" action="create" name="jrcm" >
<cfoutput>#jrrm.getClass().getProtectionDomain().getCodeSource().getLocation().toString()#</cfoutput>
Since .JAR files are just .ZIP files I extracted it and noticed a NET.SF.JASPERREPORTS path directly in the CFUSION jar. It's all compiled code so I have no idea what version of Jasper it is.
I'm tempted to just plop the new version in the CFUSION jar and rebuilt it. What I can't determine is what within CF is even using Jasper...does anyone on here having any ideas...or an idea on how to find out? And rebuilding this JAR seems like a bit too hacky.
