Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Error when Creating a ServiceClientFactory instance JAVA API

Avatar

Level 2

When invoking Assembling a PDF document  quick start I'm having a compilation error when creating a ServiceClientFactory instance:

//Create a ServiceClientFactory instance

ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);

The error is: The type com.adobe.idp.Context cannot be resolved. It is indirectly referenced from required .class files

All the required jars are a path.

What esle can be a problem ?

Thanks, Yan

1 Accepted Solution

Avatar

Correct answer by
Level 10

UM.JAR file likely to be missing.

Download the file from here and add it to your classpath.

Let me know if it works.

Nith

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

UM.JAR file likely to be missing.

Download the file from here and add it to your classpath.

Let me know if it works.

Nith

Avatar

Level 8

The com.adobe.idp.Context is in the adobe-usermanager-client.jar file.  Make sure that is in your build path.

Avatar

Level 2

Thanks! After adding the um.jar it compiled but now it fails in a run time with error:

java.lang.NoClassDefFoundError: org/apache/axis/soap/SOAPConstants

although we are using the axis.jar.

Any clue what is the problem ? Which JVM should we use?

Avatar

Level 8

Since you are using SOAP, you need to have the AXIS jars available.  They are in the LiveCycle_ES_SDK\client-libs\thirdparty directory:

 activation.jar (required for SOAP mode)
axis.jar (required for SOAP mode)
commons-codec-1.3.jar (required for SOAP mode)
  commons-collections-3.1.jar  (required for SOAP mode)
commons-discovery.jar (required for SOAP mode)
commons-logging.jar (required for SOAP mode)
dom3-xml-apis-2.5.0.jar (required for SOAP mode)
jaxen-1.1-beta-9.jar (required for SOAP mode)
jaxrpc.jar (required for SOAP mode)
log4j.jar (required for SOAP mode)
mail.jar (required for SOAP mode)
saaj.jar (required for SOAP mode)
wsdl4j.jar (required for SOAP mode)
xalan.jar (required for SOAP mode)
xbean.jar (required for SOAP mode)
xercesImpl.jar (required for SOAP mode)