Expand my Community achievements bar.

Following Java SDK tutorial getting exception.

Avatar

Level 1

Hi guys,

I am following the tutorial below on learning how to use the sdk. I pretty mch copy and pasted the cody, imported all the jar files, there's no red marks or syntax errors.

http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/wwhelp/wwhimpl/common/html/wwhelp....

I am getting the following runtime exceptions when I run the program. My server is up and running and I am sure I am using at correct URL since I can go to it in my browser and log in to ther server.

com.adobe.edc.sdk.SDKException

: The following class could not be found. Check the classpath for required jars: javax/ejb/EJBException -- An error occured while performing this operation(error code bin: 1, hex: 0x1)

at com.adobe.edc.sdk.impl.ExceptionHandler$IllegalStateExceptionTranslator.getSDKException(

ExceptionHandler.java:388)

at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(

ExceptionHandler.java:438)

at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(

ExceptionHandler.java:397)

at com.adobe.livecycle.rightsmanagement.client.impl.scf.SCFConnection.registerPolicy(

SCFConnection.java:112)

at com.adobe.livecycle.rightsmanagement.client.impl.PolicyManagerImpl.registerPolicy(

PolicyManagerImpl.java:83)

at CreatePolicy.main(

CreatePolicy.java:49)

Caused by: java.lang.NoClassDefFoundError:

javax/ejb/EJBException

at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.evaluateMessageDispatcher(

ServiceClientFactory.java:587)

at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(

ServiceClient.java:215)

at com.adobe.livecycle.rightsmanagement.client.impl.scf.SCFConnection.registerPolicy(

SCFConnection.java:107)

... 2 more

Caused by:

java.lang.ClassNotFoundException: javax.ejb.EJBException

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(

Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 5 more

0 Replies