Results 1 to 2 of 2
  1. #1
    khadaree is offline Member
    Join Date
    Mar 2009
    Posts
    10
    Rep Power
    0

    Default Problem in running jasper report in servlet

    Hi All,
    I am new to this forum. I am facing problem with running the jasper report (developed in ireport) in servlet. When i am compiling and running in command prompt it is working fine and generating the report fine. But when i call the same method to generate the report from servlet it is giving the following errors.

    error net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
    C:\Tomcat 5.0\Second_1237962408859_114740.java:4: package net.sf.jasperreports.engine does not exist
    import net.sf.jasperreports.engine.*;
    ^
    C:\Tomcat 5.0\Second_1237962408859_114740.java:5: package net.sf.jasperreports.engine.fill does not exist
    import net.sf.jasperreports.engine.fill.*;
    ^
    C:\Tomcat 5.0\Second_1237962408859_114740.java:13: package net.sf.jasperreports.engine does not exist
    import net.sf.jasperreports.engine.*;
    ^
    C:\Tomcat 5.0\Second_1237962408859_114740.java:15: package net.sf.jasperreports.engine.data does not exist
    import net.sf.jasperreports.engine.data.*;
    ^

    I have added some errors only, I am getting 56 errors.
    I have added the following jar files in app/web-inf/lib and the classpath is to lib folder.

    1. iText-2.1.5.jar
    2. jasperreports-1.3.4 .jar
    3. poi-2.0-final-20040126.jar
    4. xmlparserv2.jar
    5. commons-digester-1.7.jar
    6. commons-beanutils.jar
    7. commons-collections.jar
    8. commons-logging.jar
    9. xercesImpl.jar
    10. ojdbc14.jar

    I am facing this problem from past 2 days. I have searched for solutions in the google. I wasn't successful.
    Please respond me. waiting for your reply's. Any suggestion are welcome.

    Thanks,
    Khadaree

  2. #2
    b4t0541 is offline Member
    Join Date
    Jul 2009
    Posts
    2
    Rep Power
    0

Similar Threads

  1. jasper report
    By vidhyaprabu in forum New To Java
    Replies: 6
    Last Post: 11-12-2009, 04:31 AM
  2. Replies: 0
    Last Post: 03-04-2009, 10:51 AM
  3. Error With Sql And Jasper Report
    By Heather in forum JDBC
    Replies: 4
    Last Post: 12-03-2008, 12:31 PM
  4. JSP and Jasper Report in Netbeans 6.1
    By ShatireAzam in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-08-2008, 10:43 AM
  5. Jasper report + JPQL
    By tarat in forum Advanced Java
    Replies: 2
    Last Post: 08-01-2008, 07:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •