Jasperreports:5.5.1 jar not recognized at Runtime

issue-acknowledged

(anjan) #1

2015-06-22 05:30:03.094 [qtp260404352-15] DEBUG
eu.minihouse.myunidoc.doc.jasper.JasperExportServiceImpl - loaded
compiled head report USAGE_REPORT
2015-06-22 05:30:03.094 [qtp260404352-15] DEBUG
eu.minihouse.myunidoc.doc.jasper.JasperExportServiceImpl -
@@@@@@@@@@@@@@@@@@@@@@@Before calling jrxml
datasource@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2015-06-22 05:30:03.094:WARN:oejs.ServletHandler:Error for /print
java.lang.NoClassDefFoundError: Could not initialize class
net.sf.jasperreports.engine.util.xml.JRXPathExecuterUtils
at
net.sf.jasperreports.engine.data.JRXmlDataSource.(JRXmlDataSource.java:187)

    at 

eu.minihouse.myunidoc.doc.jasper.JasperExportServiceImpl.exportDocument(JasperExportServiceImpl.java:48)

    at 

eu.minihouse.myunidoc.doc.jasper.JasperExportServiceImpl.exportDocument(JasperExportServiceImpl.java:32)

    at 

eu.minihouse.myunidoc.doc.impl.DocumentFactoryImpl.createDocument(DocumentFactoryImpl.java:78)

    at 

eu.minihouse.myunidoc.server.pdf.DocumentRequestHandler.handleRequest(DocumentRequestHandler.java:80)

    at 

org.springframework.web.context.support.HttpRequestHandlerServlet.service(HttpRequestHandlerServlet.java:68)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at 

org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)

    at 

eu.minihouse.myunidoc.hydra.server.filter.GWTCacheControlFilter.doFilter(GWTCacheControlFilter.java:58)

    at 

org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)

    at 

org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)

    at 

org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)

    at 

org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)

    at 

org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)

    at 

org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)

    at 

org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)

    at 

org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)

    at 

org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)

    at 

org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

    at 

org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)

    at 

org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)

    at 

org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)

    at org.eclipse.jetty.server.Server.handle(Server.java:370)
    at 

org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)

    at 

org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)

    at 

org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)

    at 

org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)

    at 

org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)

    at 

org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)

    at 

org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

    at 

org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

    at java.lang.Thread.run(Unknown Source)

(François Guillot) #2

You have to add the missing jar to your runtime dependencies (see dependency management section of the user guide)
It’s hard to say more, given that you only pasted the stacktrace


(anjan) #3

I have added the below dependency in build.gradle, but still getting same error

runtime(‘net.sf.jasperreports:jasperreports:5.5.1’) {
exclude group: ‘eclipse’
}


(François Guillot) #4

Ok but how does this fit in your build.gradle script? How and when do you call Jasper reports?


(anjan) #5

I am calling from one module into another module that time i need this dependency.


(waleeed00) #6

I have added the below dependency in build.gradle, but still getting same error

waleeed