Jump to content
Changes to the Jaspersoft community edition download ×

Problem with the Report Format(Newbie


Recommended Posts

By: Arsenio - jaspinoy

Problem with the Report Format(Newbie)

2003-01-16 19:19

Hello World!

 

I have a problem figuring out how to get my report working. I am using JRTableModelDataSource as DataSource but i get this error everytime i run my report.

 

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

at org.apache.commons.beanutils.ConvertUtils.<clinit>(ConvertUtils.java:318)

at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:280)

at org.apache.commons.digester.Digester.endElement(Digester.java:757)

at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)

at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)

at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)

at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)

at org.apache.commons.digester.Digester.parse(Digester.java:1170)

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

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

at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1016)

at ph.edu.smu.Repos.smuSheet.getReport(smuSheet.java:615)

at ph.edu.smu.Repos.smuSheet.access$1400(smuSheet.java:35)

at ph.edu.smu.Repos.smuSheet$13.actionPerformed(smuSheet.java:463)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)

at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)

at java.awt.Component.processMouseEvent(Component.java:5021)

at java.awt.Component.processEvent(Component.java:4818)

at java.awt.Container.processEvent(Container.java:1525)

at java.awt.Component.dispatchEventImpl(Component.java:3526)

at java.awt.Container.dispatchEventImpl(Container.java:1582)

at java.awt.Component.dispatchEvent(Component.java:3367)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3074)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)

at java.awt.Container.dispatchEventImpl(Container.java:1568)

at java.awt.Window.dispatchEventImpl(Window.java:1581)

at java.awt.Component.dispatchEvent(Component.java:3367)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

org.xml.sax.SAXParseException: Error at (13, 26: org/apache/commons/logging/LogFactory

at org.apache.commons.digester.Digester.createSAXException(Digester.java:1766)

at org.apache.commons.digester.Digester.createSAXException(Digester.java:1795)

at org.apache.commons.digester.Digester.endElement(Digester.java:763)

at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)

at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)

at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)

at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)...........

 

I guess i have a problem the way i format my report in my XML file. Could anyone in the forum show me the right way. Below is my XML file.

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN"

"http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport name="BasicReport" >

<field name="ID" class="java.lang.String">

<field name="Last" class="java.lang.String">

<field name="First" class="java.lang.String">

<detail>

<band height="20">

<textField>

<textFieldExpression class="java.lang.String">

$F{ID}

</textFieldExpression>

</textField>

 

<textField>

<textFieldExpression class="java.lang.String">

$F{Last}

</textFieldExpression>

</textField>

 

<textField>

<textFieldExpression class="java.lang.String">

$F{First}

</textFieldExpression>

</textField>

 

 

</band>

</detail>

</jasperReport>

Thanks a lot!

Arsenio

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...