473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Integrating JASPER Reports to J2EE

20
Hi,

I am trying to invoke JASPER Reports designed using iReport 3.7.0.

JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, param, conn);

I am getting following error,
root cause

javax.servlet.ServletException: org/apache/commons/collections/ReferenceMap

org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:858)
org.apache.jasper.runtime.PageContextImpl.handlePa geException(PageContextImpl.java:791)
org.apache.jsp.index_jsp._jspService(index_jsp.jav a:117)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
org.netbeans.modules.web.monitor.server.MonitorFil ter.doFilter(MonitorFilter.java:368)


root cause

java.lang.NoClassDefFoundError: org/apache/commons/collections
/ReferenceMap
net.sf.jasperreports.extensions.DefaultExtensionsR egistry.<init>(DefaultExtensionsRegistry.java:93)
sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Construc tor.java:513)
java.lang.Class.newInstance0(Class.java:355)
java.lang.Class.newInstance(Class.java:308)
net.sf.jasperreports.engine.util.ClassUtils.instan tiateClass(ClassUtils.java:59)
net.sf.jasperreports.extensions.ExtensionsEnvironm ent.createDefaultRegistry(ExtensionsEnvironment.ja va:80)
net.sf.jasperreports.extensions.ExtensionsEnvironm ent.<clinit>(ExtensionsEnvironment.java:68)
net.sf.jasperreports.engine.util.JRStyledTextParse r.<clinit>(JRStyledTextParser.java:76)
net.sf.jasperreports.engine.fill.JRBaseFiller.<ini t>(JRBaseFiller.java:174)
net.sf.jasperreports.engine.fill.JRVerticalFiller. <init>(JRVerticalFiller.java:74)
net.sf.jasperreports.engine.fill.JRVerticalFiller. <init>(JRVerticalFiller.java:56)
net.sf.jasperreports.engine.fill.JRFiller.createFi ller(JRFiller.java:143)
net.sf.jasperreports.engine.fill.JRFiller.fillRepo rt(JRFiller.java:53)
net.sf.jasperreports.engine.JasperFillManager.fill Report(JasperFillManager.java:417)
avayaLibrary.AVAYADBConnection.playAround(AVAYADBC onnection.java:59)
org.apache.jsp.index_jsp._jspService(index_jsp.jav a:79)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
org.netbeans.modules.web.monitor.server.MonitorFil ter.doFilter(MonitorFilter.java:368)
Jan 6 '10 #1
0 3388

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Grant Collins | last post by:
Hi I am writing a web based application as part of a small project that I am undertaking using servlets beans and jsp. I already have one servlet - bean - jsp page working and I have written...
0
by: Al | last post by:
I would like to add SIP stack to J2EE application server. I know that JCA 1.5 allows doing such thing. But JCA 1.5 is part of J2EE 1.4. Currently the most J2EE vendors support J2EE 1.3. Can anybody...
0
by: Jakke | last post by:
Hi all, I don't know if I'm at right newsgroup but I've got some questions about integrating Crystal Reports into my own application. I'm totally new regarding Crystal Reports. Therefore I've...
0
by: batok | last post by:
Has anybody tried jasper reports ( java ) from python using jpype module ? It would be great to see an example of this. I've tried so many times with jpype but can't make this work out. Any...
3
by: Lord0 | last post by:
Hi there, First of all I apologise for being a PHP noob. Is there a PHP equivalent of Java's Jasper Reports? http://jasperforge.org/sf/projects/jasperreports Basically Jasper is a bunch...
1
by: gsuns82 | last post by:
Hi all, I am new to Jasper reports concept,pls let me the following things. 1.Get me an url where i can download a sample application for jasper reporting. 2. I cant able to get samples from"...
2
by: bjverni | last post by:
Hi, I am calling a stored procedure in my Jasper Reports, but it is giving me an error. Would it possible to execute stored procedures in the field wizard when you create the Jasper Report...
2
by: mkotula | last post by:
Hi, Brand new to jasper and IReport with Oracle. Was able to load and connect IReport to Oracle DB and created my first reports. Unable to connect Jasper to the DB nor import my IReport...
0
by: Sundhas | last post by:
Hey, i want to Use Dynamic japser to create reports of my database i.e MYSQL. Plus, i want to know that can i send attirbutes to dynamic jasper which a user is going to select from the front end...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.