Expand my Community achievements bar.

java.lang.NoClassDefFoundError: Lcom/adobe/service/ConnectionFactory;

Avatar

Former Community Member
Hi,<br /><br />I am trying to run the livecycle assembler sample code.<br /><br />When I call invoke method on Assembler bean object,I get NoClassDefFoundError.I have added all the library jars in my classpath as listed in the documentation.<br /><br />assembler7EJBclient.jar<br />adobe-common.jar<br />AdobeCSAUtils.jar<br />datamanager-client.jar<br /><br />I would appreciate if someone can point me to missing jar file needed here.<br /><br />Here is the stack trace.<br /><br />java.lang.NoClassDefFoundError: Lcom/adobe/service/ConnectionFactory;<br /> at java.lang.Class.getDeclaredFields0(Native Method)<br /> at java.lang.Class.privateGetDeclaredFields(Unknown Source)<br /> at java.lang.Class.getDeclaredField(Unknown Source)<br /> at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source)<br /> at java.io.ObjectStreamClass.access$400(Unknown Source)<br /> at java.io.ObjectStreamClass$3.run(Unknown Source)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> at java.io.ObjectStreamClass.<init>(Unknown Source)<br /> at java.io.ObjectStreamClass.lookup(Unknown Source)<br /> at java.io.ObjectOutputStream.writeObject0(Unknown Source)<br /> at java.io.ObjectOutputStream.writeArray(Unknown Source)<br /> at java.io.ObjectOutputStream.writeObject0(Unknown Source)<br /> at java.io.ObjectOutputStream.writeObject(Unknown Source)<br /> at org.jboss.invocation.MarshalledValue.<init>(MarshalledValue.java:57)<br /> at org.jboss.invocation.MarshalledInvocation.writeExternal(MarshalledInvocation.java:477)<br /> at java.io.ObjectOutputStream.writeExternalData(Unknown Source)<br /> at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)<br /> at java.io.ObjectOutputStream.writeObject0(Unknown Source)<br /> at java.io.ObjectOutputStream.writeObject(Unknown Source)<br /> at sun.rmi.server.UnicastRef.marshalValue(Unknown Source)<br /> at sun.rmi.server.UnicastRef.invoke(Unknown Source)<br /> at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)<br /> at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)<br /> at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:67)<br /> at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)<br /> at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)<br /> at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)<br /> at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)<br /> at $Proxy1.invoke(Unknown Source)
2 Replies

Avatar

Former Community Member
This error is due the DocumentServicesLibrary.jar not being available to the server. Its not a client issue. Doublecheck the install docs for instructions on where the jar goes. I believe it goes in the server/all/lib directory for most JBoss configurations.

Don

Avatar

Former Community Member
am developing a sample class using netbeans.

i have all the software windows 2003(adobe lifecycle assembler 7.2/ bea 8.1 sp4) installed on same box



I was running into similar issue as described above but that got fixed when added DocumentServicesLibrary.jar to class path in netbeans



when i try to debug my class . its throwing me a error

after this statement



ctx=asm.login(username,pasword)



printstacktrace() is



Assembler 7 is unreachable - failed to unmarshal class com.adobe.idp.Context; nested exception is: java.io.InvalidObjectException

: inauthentic principal assertion



Any thoughts - I am using the sample code provide in developer guide ..