Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Problem with adobe api for LC

Avatar

Former Community Member
Hello to all,

I'm trying to write code that retrive a file from registry but I ALWAYS get the following error:



root cause



java.lang.NoClassDefFoundError: com/adobe/ebxml/registry/services/query/filter/Clause

java.lang.Class.getDeclaredConstructors0(Native Method)

java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)

java.lang.Class.getConstructor0(Class.java:1930)

java.lang.Class.newInstance0(Class.java:278)

java.lang.Class.newInstance(Class.java:261)

org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)

org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)

org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:78)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

java.lang.Thread.run(Thread.java:534)



What about this?

I'm using Eclipse 3.1 (adobe has advised to me) and jboss 3.2.



I'm very very tyred to see this error :-(((

Any help?



Thank you!!!!!



I'm goind to became crazy.. ;-P



Sorry for my poor english.



Roberto.
4 Replies

Avatar

Former Community Member
This class is found in adobe-registry-api.jar which is found in /components/registry/registry-sdk/lib/ . Make sure it's in your classpath when you run your code.



If you haven't already, then take a look at this Eclipse plugin, it is one of the most usefull ones I've ever found: http://www.alphaworks.ibm.com/tech/jarclassfinder .



Chris

Adobe Enterprise Developer Support

Avatar

Former Community Member
Hi Cris,

thank you for your answer :-)



I have cerate a new project whit NetBeans and my class with adobe-registry-api.jar works.

So I think that it was a problem about eclipse.

Now I have the same problem with another class: org.apache.commons.codec.binary.Hex



By the way.. I have tried to install jarclassfidner plugin, but with Help -> Software Updates -> Find and Install -> Search for new features to install -> (and so on)

eclipse doesn't find it.. :-(



any suggestion?



Thank you very much Cris :-)

Bye.

Avatar

Former Community Member
It's part of the Jakarta Commons project: http://jakarta.apache.org/commons/ .



As for installing the plugin, I'm not sure, I just downloaded and unzipped the .zip file like it says in the installation instructions.



Chris

Adobe Enterprise Developer Support

Avatar

Former Community Member
Ok, I have discarded eclipse :-) now I use Netbeans 5.0 and I don't see that error any more.



By thw way I have some problems with adobe-registry-api.jar;

Do anyone use this API write programs that use liveCycle registry?

I would like get the document from registry, the version of them, and so on.

I found some example from adobe, but also these examples have problem with data type, classes and so on.

Every problem leads back to adobe-registry-api.jar and whichever other class is correctly used from Netbeans.



Someone have any idea or suggestion?



Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you! :-)



Bye,

Roberto.