Issue
When trying to deploy the sample ReaderExtensions application to the application server you may receive the following exception:
java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown Source)
Reason
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.
Solution
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)
