You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jeanna Geier <jg...@apt-cafm.com> on 2007/02/06 19:04:15 UTC

java.lang.NoClassDefFoundError

Hello List-

I'm new to Batik/FOP and am hoping someone on this list can help me track
down a problem we're having with our program..

Our program is supposed to (note the words "supposed to" =)) display reports
using Batik/FOP, however, when I click on the the name of the report I want
generated in our program, it's bringing up a new window with the title
"FOP-AWT Preview", but nothing is displayed.

It's throwing the following exception:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
org/apache/fop/fo/ElementMapping$Maker

and here's the stack trace:

        at org.apache.fop.apps.Driver.<init>(Driver.java:221)
        at
apt.reporting.ReportGenerator.generateAWTReport(ReportGenerator.java:65)
        at apt.gui.panels.ReportPanel.viewReport(ReportPanel.java:279)
        at
apt.gui.panels.ReportPanel.listStandardReportsMouseClicked(ReportPanel.java:
134)
        at apt.gui.panels.ReportPanel.access$200(ReportPanel.java:27)
        at apt.gui.panels.ReportPanel$3.mouseClicked(ReportPanel.java:97)
        at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
        at java.awt.Component.processMouseEvent(Component.java:5491)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1774)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:242)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:163)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

In my project I've included the fop-0.20.5 & Batik_1.6 Libraries.

Any thoughts or ideas on why this error is occurring or how I could go about
tackling it would be greatly appreciated; as I said, I'm new to all of this
(inherited the program) and this is my first interaction with FOP.

If any other information would be helpful, please just let me know.

Thanks in advance for your time and assistance!
-Jeanna


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: java.lang.NoClassDefFoundError

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Feb 6, 2007, at 19:04, Jeanna Geier wrote:

> <snip />
> In my project I've included the fop-0.20.5 & Batik_1.6 Libraries.

Errmm, sorry, but that's a big NO-NO :)

FOP 0.20.5 is not compatible with Batik 1.6. You'll have to use the  
Batik version shipped with FOP 0.20.5, or --better-- you can try FOP  
0.93, which should work nicely with Batik 1.6.

That said, I'm not sure whether this is actually the cause of the  
error...


Cheers,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: java.lang.NoClassDefFoundError

Posted by Jeanna Geier <jg...@apt-cafm.com>.
Hello List-

I'm new to Batik/FOP and am hoping someone on this list can help me track
down a problem we're having with our program..

Our program is supposed to (note the words "supposed to" =)) display reports
using Batik/FOP, however, when I click on the the name of the report I want
generated in our program, it's bringing up a new window with the title
"FOP-AWT Preview", but nothing is displayed.

It's throwing the following exception:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
org/apache/fop/fo/ElementMapping$Maker

and here's the stack trace:

        at org.apache.fop.apps.Driver.<init>(Driver.java:221)
        at
apt.reporting.ReportGenerator.generateAWTReport(ReportGenerator.java:65)
        at apt.gui.panels.ReportPanel.viewReport(ReportPanel.java:279)
        at
apt.gui.panels.ReportPanel.listStandardReportsMouseClicked(ReportPanel.java:
134)
        at apt.gui.panels.ReportPanel.access$200(ReportPanel.java:27)
        at apt.gui.panels.ReportPanel$3.mouseClicked(ReportPanel.java:97)
        at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
        at java.awt.Component.processMouseEvent(Component.java:5491)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1774)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:242)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:163)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

In my project I've included the fop-0.20.5 & Batik_1.6 Libraries.

Any thoughts or ideas on why this error is occurring or how I could go about
tackling it would be greatly appreciated; as I said, I'm new to all of this
(inherited the program) and this is my first interaction with FOP.

If any other information would be helpful, please just let me know.

Thanks in advance for your time and assistance!
-Jeanna


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org