4 Replies Latest reply on Jul 31, 2017 12:48 PM by James R Green

    Accessing AEM 6.2 livecycle application manager with java

    James R Green Level 3



      I am attempting to connect to the livecycle part of AEM 6.2 JEE in order to update assets. But at the moment I cannot connect successfully and perform getApplications() on the application manager. Below is a snippet of the code I am using:



       //Create service factory Properties
         Properties connectionProps = new Properties();
        connectionProps.setProperty("DSC_DEFAULT_SOAP_ENDPOINT", "");
        connectionProps.setProperty("DSC_TRANSPORT_PROTOCOL", "SOAP");
        connectionProps.setProperty("DSC_SERVER_TYPE", "JBoss");
        connectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");
        connectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");
         // Create the service client factory
         ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
        ApplicationManagerClient appMgrClient = new ApplicationManagerClient(myFactory);
         //Create an application called Sample1, version 1.0 is created
         try {
      // appMgrClient.createApplication("Sample1");
         List list = appMgrClient.getApplications();
        } catch (ApplicationManagerClientException e) {

      I based this on code from ApplicationManager (AEM forms on JEE Java API Reference)

      I have also tried ApplicationManager instead of ApplicationManagerClient



      I get an exception when executing this code:


      ALC-DSC-099-000: com.adobe.idp.applicationmanager.application.ApplicationManagerException: java.lang.NoClassDefFoundError: javax/ejb/EJBException


      I have also had the below error from other tests I have performed:


      ALC-DSC-099-000: com.adobe.idp.applicationmanager.application.ApplicationManagerException: java.lang.ClassNotFoundException: org.apache.axis.soap.SOAPConstants not found by com.adobe.livecycle.dsc.clientsdk.api [496]


      I think I am missing dependencies but do not know which ones. Has anyone used the application manager on AEM forms 6.2 recently and has a working example?

      I am particular interested in the pom files and any additional classes that needed adding.