Jump to content
We've recently updated our Privacy Statement, available here ×

0.4.6 bundled with wrong common-logging.jar


Recommended Posts

By: Albert L. - looks

0.4.6 bundled with wrong common-logging.jar

2003-05-08 08:27

I was migrating from 0.4.4 to 0.4.6 only today, and while recompiling reports, exceptions were thrown.

 

Downloading the latest common logging 1.0.3 jar seems to solve my problem.

 

http://www.apache.org/dist/jakarta/commons/logging/binaries/

 

 

 

 

 

By: Teodor Danciu - teodord

RE: 0.4.6 bundled with wrong common-logging.jar

2003-05-11 04:46

 

Hi,

 

Can I see such an exception?

 

teodord@hotmail.com

 

Thank you,

Teodor

 

 

 

 

 

By: Albert L. - looks

RE: 0.4.6 bundled with wrong common-logging.j

2003-05-12 00:15

After further testing, I found that exceptions thrown is due to another jar package clashing. I'm also using FirebirdSQL / JayBird jdbc driver which uses a version of log4j-core.jar.

 

http://www.firebirdsql.org/

 

3 scenarios :

 

1) Without JayBird's log4j-core.jar in classpath, existing JasperReports 0.4.6 bundled commons-logging.jar works without problem.

 

2) With the latest commons-logging.jar (1.0.3) replacement, JasperReports works without problem even if log4j-core.jar is in classpath.

 

3) With the original JasperReports 0.4.6 bundle, together with JayBird log4j-core.jar in classpath, exceptions were thrown while compiling JasperReports XML file.

 

java.lang.NoClassDefFoundError: org/apache/log4j/ConsoleAppender

at org.apache.commons.logging.impl.Log4JCategoryLog.initialize(Log4JCategoryLog.java:132)

at org.apache.commons.logging.impl.Log4JCategoryLog.<init>(Log4JCategoryLog.java:118)

at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:153)

at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:285)

at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)

at org.apache.commons.digester.Digester.<init>(Digester.java:345)

at dori.jasper.engine.xml.JRXmlDigester.<init>(JRXmlDigester.java:116)

at dori.jasper.engine.xml.JRXmlLoader.prepareDigester(JRXmlLoader.java:428)

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:370)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:102)

at apps.test.UserClass.compileJasper(UserClass.java:34)

at apps.test.UserClass.main(UserClass.java:24)

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...