Skip to Content
author's profile photo Former Member
Former Member

Getting java.lang.NoClassDefFoundError in JDO

Hi all,

I am getting the above error when I was trying the Getting started with JDO example in NDS help. I am getting this error after the run Ant on biuld.xml i.e. while enhancing the class files. I have added the logging.jar in Build path.

The complete stack trace is as below:

enhance.Employee:

[java] java.lang.NoClassDefFoundError: com/sap/tc/logging/LogController

[java] at com.sap.jdo.common.model.jdo.JDOModelFactoryImpl.createJDOModel(JDOModelFactoryImpl.java:66)

[java] at com.sap.jdo.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.<init>(EnhancerMetaDataJDOModelImpl.java:64)

[java] at com.sap.jdo.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.<init>(EnhancerMetaDataJDOModelImpl.java:85)

[java] at com.sap.jdo.enhancer.Main.initEnhancerMetaData(Main.java:446)

[java] at com.sap.jdo.enhancer.Main.createEnhancer(Main.java:461)

[java] at com.sap.jdo.enhancer.Main.process(Main.java:152)

[java] at com.sap.jdo.enhancer.Main.main(Main.java:117)

[java] Exception in thread "main"

[java] BUILD FAILED: file:C:/Workspace/JDOWebModuleProject/build.xml:36: Java returned: 1

Any help will be appreciated.

Regards,

Jaydeep

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2005 at 03:31 PM

    Hi Jaydeep,

    you have to add the "$"-entry in the classpath-property too. it is only added in the classpath.check-property in JDO-examle.

    Regards,

    Thomas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 05:21 AM

    hi

    the class LogController is not found at run time. If you are using a webdynpro project add the jar in the lib folder using the navigator. this would ship your files needed at runtime.

    regards

    vln

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.