Current Position:Home > NoClassDefFound error when using custom Java package in scripting QPAC

NoClassDefFound error when using custom Java package in scripting QPAC

Update:10-11Source: network consolidation
Advertisement
Hi,
I compiled a little Java-package (.jar), which contains a class that uses
com.adobe.workflow.datatype.form.FormDataTypeInstanceImpl.
I put my library in the lib folder of JBoss (...\server\all\lib).
Then I'm was trying to invoke my custom class in the scripting QPAC. But I'm constantly getting the error message
NoClassDefFound com\adobe\workflow\datatype\form\FormDataTypeInstanceImpl. I already put
adobe-wkf.jar (and various others) in the lib folder of JBoss. Without ever succeeding. Unfortunately.
I'm going mad about this.
Is there a way to address a custom package in the scripting QPAC, which uses
FormDataTypeInstanceImpl?
Steve

The Best Answer

Advertisement
Removing the LiceCycle jars from the lib folder did not work. I still get the same error message.
What I wanted to do is provide some basic utilities, without having to spend a lot of time designing QPAC user interfaces.
My utility class contains methods like this one:
@param 
pFormData
@return
@throws 
ParserConfigurationException
@throws 
SAXException
@throws 
IOException
public static 
org.w3c.dom.Document formToXml
FormDataTypeInstanceImpl pFormData
throws 
ParserConfigurationException, SAXException, IOException 
byte
data = pFormData.getXFAData
InputStream objXMLInputStream = 
new 
ByteArrayInputStream
data
// create new Document object
DocumentBuilderFactory objFactory = DocumentBuilderFactory.newInstance
DocumentBuilder objBuilder = objFactory.newDocumentBuilder
org.w3c.dom.Document objDocument = objBuilder.parse
objXMLInputStream
return 
objDocument;
Even without ever invoking the aforementioned method, I get the error
NoClassDefFound: FormDataTypeInstanceImpl. Which is pretty weird.
Do I have to write my own classloader?
Steve

Recommended Content

Database error: [Table 'ac_posts' is marked as crashed and should be repaired]

SELECT * FROM ac_posts WHERE `ID` IN (4563478,1006853,1203382,1177503,1153761,4215547,2445123,3780428,2281919,1893879,709019,4546404,793859,5107002,3269231,751011,4375615,2186847,2526986,1723627,3450218,4245290,3480735,998570,3581608,4312935,2107637,2278975,104799,4242115,4640499) LIMIT 15;