Posts tagged "customAssembly"

LiveCycle ReaderExtensions7: ClassCastException trying to deploy the sample application

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)

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