Natty’s blog

Stay hungry. Stay foolish. — Steve Jobs

[Resin] JasperReport on resin

Posted by natty on September 25, 2008

หากเราไม่มี jasperserver บน resin แล้วเราต้องการให้มันสามารถใช้งานกับ .jrxml และ compile ได้ เราจำเป็นจะต้องมี lib ดังต่อไปนี้ หากต้องการใช้ในทุก project ก็เอาไปวางไว้ที่ resin/lib

common-collection
common-logging
poi
iReport
commons-javaflow
itext
jasperreports
common-digester
common-beanutils

java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
เกิดจากการไม่มี common-logging

javax.servlet.ServletException: net.sf.jasperreports.engine.JRException:java.lang.reflect.InvocationTargetException
สาเหตุหนึ่งอาจ เกิดจากการไม่มี common-collection

2 Responses to “[Resin] JasperReport on resin”

  1. juacompe said

    InvocationTargetException น่าจะเป็นการเรียกปลายทางแล้วเกิด Exception ซึ่งสาเหตุน่าจะมีหลายแบบ

    การไปฟันธงว่าเกิดจากไม่มี common-collection อาจจะแคบไปนะ ;)

  2. natty said

    แก้ให้แล้วค่ะ ขอบคุณ juacompe

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>