cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in JDO

Former Member
0 Kudos

Hi All

I trying to do a small java application in JDO.

I have written all required classes.But Still i am getting

the follwing error while running the Ant on build.xml

Buildfile: C:\WokSpaceForB1\GettingStartedJDOWeb\webContent\build.xml

enhance:

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:/WokSpaceForB1/GettingStartedJDOWeb/webContent/build.xml:31: Java returned: 1

Total time: 1 second

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi satya,

Seems to be a classpath problem.

As the stack trace says, the compiler cannot find the class <b>com/sap/tc/logging/LogController</b>. Please check the classpath of your project and see if the logging jars are added or not(Project->Properties->Java Build Path). If it is not there then you need to do that.

(Search for <b>logging.jar</b> in your NWDS installation directory and add it.)

Regards,

Guru.

PS: Reward points for helpfull replies.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Guruvinder

The jar file logging.jar is in many packages in my

NWDS installed directory.In that which have to add.I think

from any package we can add the jar file.

Even though i am adding the jar file to the project

still the same error is comming

ragards

Satyam

Former Member
0 Kudos

Hi Satya,

Goto Project->Properties->Java Build Path-> Add External Jar Files-> add the logging.jar that is present in the \plugins\com.sap.tc.ap\ folder.

The exact path on my machine was,

D:\Program Files\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP-JEE\DCs\sap.com\tc\logging\_comp\gen\default\public\default\lib\java\logging.jar

I hope this will solve the problem.

Regards,

Guru.

PS:Reward points for helpfull replies.

Former Member
0 Kudos

Hi Satya!

I had the same problem

try to do this:

in the build.xml add the reference 'logging at line:

<property name="classpath" value="$;$;$;$"/>

hope this will help you

bye!