cancel
Showing results for 
Search instead for 
Did you mean: 

Getting java.lang.NoClassDefFoundError in JDO

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Thomas that solved my problem.

Regards,

Jaydeep

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Lakshminarayanan,

I am doing a web module project and the

logging.jar

is in the build path. Any thing else I need to do?

Regards,

Jaydeep