Problem in running jasper report in servlet
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
C:\Tomcat 5.0\Second_1237962408859_114740.java:5: package net.sf.jasperreports.engine.fill does not exist
C:\Tomcat 5.0\Second_1237962408859_114740.java:13: package net.sf.jasperreports.engine does not exist
C:\Tomcat 5.0\Second_1237962408859_114740.java:15: package net.sf.jasperreports.engine.data does not exist
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.
2. jasperreports-1.3.4 .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.