LiveCycle ReaderExtensions7: ClassCastException trying to deploy the sample application


 When trying to deploy the sample ReaderExtensions application to the application server you may receive the following exception:

 at Source)


 This is caused by the DocumentServicesLibrary.jar which appears in too many places in the ear files. It should not have been included in LiveCycle-security.ear file.


Workaround 1:

If you already have LiveCycle 7.2 installed, then all you need to do is edit customAssembly.xml in the components\pdfagent and delete the line with DocumentServicesLibrary.jar in it. Run LCM and redeploy.

Workaround 2:

Include AdobeCSAUtils.jar in your project and use:

connectionfactory = Utilities.serviceLookup("DataManagerService"); 
DataManager dataManager = DataManagerHelper.narrow((org.omg.CORBA.Object)connectionfactory.getConnection()); 
connectionfactory = Utilities.serviceLookup("PDFManipulation"); 
PDFFactory pdfFactory = PDFFactoryHelper.narrow((org.omg.CORBA.Object)connectionfactory.getConnection());

reference: (1-32712143)

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 0.0/10 (0 votes cast)

Comments are closed.