File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Java : avalon framework configuration exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java : avalon framework configuration exception" Watch "Java : avalon framework configuration exception" New topic
Author

Java : avalon framework configuration exception

Parth Pateld
Greenhorn

Joined: Nov 01, 2011
Posts: 29
Hello,
I am converting xml file to PDF using FOP.jar and avalon-framework-api-4.3.jar and some other jar files.
My program is working fine if i run it on my desktop machine.
Now i have created jar file of my swing application and put it on server using JWS(Java Web Start).
But now if i am trying to convert xml file to pdf file on server end using JWS, it is showing me "avalon framework configuration exception"

How can i solve this exception ?
Parth Pateld
Greenhorn

Joined: Nov 01, 2011
Posts: 29
can any one help me on this topic...??
Parth Pateld
Greenhorn

Joined: Nov 01, 2011
Posts: 29
how to solve org.apache.avalon.framework.configuration.ConfigurationException exception comes while converting xml file to pdf file using Swing application which embedded in JWS application.

I could not found any solution for this

Thank you in advance.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20049
    
  30

Can you please show the entire stack trace, and the code of the method it's thrown from?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Parth Pateld
Greenhorn

Joined: Nov 01, 2011
Posts: 29
Following is the Entire stack trace of error :

:ERROR::java.lang.NoClassDefFoundError: org/apache/avalon/framework/configuration/ConfigurationException
at org.apache.fop.apps.FopFactory.<init>(FopFactory.java:149)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:165)
at sc_automation_gui_final.cmos28.javafiles.DatasheetToPDF.convertXMLtoPDF(DatasheetToPDF.java:98)
at sc_automation_gui_final.SC_AUTOMATION_GUI_FINALView.makePDF_ButtonMouseClicked(SC_AUTOMATION_GUI_FINALView.java:715)
at sc_automation_gui_final.SC_AUTOMATION_GUI_FINALView.access$500(SC_AUTOMATION_GUI_FINALView.java:29)
at sc_automation_gui_final.SC_AUTOMATION_GUI_FINALView$6.mouseClicked(SC_AUTOMATION_GUI_FINALView.java:251)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
org/apache/avalon/framework/configuration/ConfigurationException**********Processing...


Follwing is the code which i was using for converting xml to pdf.
I have created a Swing application to convert XML to PDF and embedded this Swing application in JWS, so that everyone can access it through Web.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java : avalon framework configuration exception
 
It's not a secret anymore!