aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBoss Seam and JasperReports HELP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss Seam and JasperReports HELP" Watch "JBoss Seam and JasperReports HELP" New topic
Author

JBoss Seam and JasperReports HELP

Tasneem Bhyat
Greenhorn

Joined: Dec 17, 2008
Posts: 4
Hi All

I am in desperate need of some help please. I am trying to use JasperReports for the first time. I am using iReport to generate the .jasper file and then using Eclipse to display the report. The problem I am having is with a standalone Java program, with a main().. it runs fine..But when I try to get the report via my JSF web application, I get the following error...

Caused by: java.lang.ExceptionInInitializerError
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:203)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:168)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:152)
at com.ericsson.mst.admin.report.SurveySearchActionBean.doJasperReportForUsersForSurvey(SurveySearchActionBean.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
... 117 more
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:555)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:259)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.<clinit>(JRXmlDigesterFactory.java:176)
... 127 more
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:420)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:548)
... 131 more
Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)
... 132 more
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9336
    
110

Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log


Wild guess - You are probably packaging jar file(s) containing org.apache.commons.logging.* classes, in your application. If yes, then remove those jars from your application since JBoss already ships them (Note: This is an easier workaround, if you are not worried out the versions of these jars)


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss Seam and JasperReports HELP
 
Similar Threads
Problem in using HTTPS
Problem in deployment
Sorting Problem in JSP
Unable to start Tomcat from Eclipse
Initial SessionFactory creation failed.java.lang.ExceptionInInitializerError