cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError:

0 Kudos

Hi!

I have a Wed Dynpro DC which use a Java Model.

The Java Model is in a Java DC (A) it has one Attribute with getter and Setter

The WD call to the Java DC (A) class works but when I call form the class an other class form an other Java DC (B)I get an java.lang.NoClassDefFoundError:

I have made the public parts (assembly, build) in the Java DC (B) and I have added the tow public part to the Java DC(A) but it doesn’t work.

Therefore I have added the public parts from Java DC(B) to the Web Dynpro DC but it doesn’t work.

The tow classes in the java DC’s implements the interface Serializable.

The class in Java DC (B) has only an empty constructor without Parameters.

What have I do to, to solve my problem

Thanks!

Hermann

Accepted Solutions (0)

Answers (1)

Answers (1)

luciano_leitedasilva
Contributor
0 Kudos

Hi Hermann,

I've faced with the same error same weeks ago and I've solve it editing my public part files.

At the public part SDA, I've changed the compliation by assembly.

It seen like it before I change:

...

<name>B_sda</name>

<purpose>compliation</purpose>

<caption></caption>

...

And like that after be changed:...

<name>B_sda</name>

<purpose>assembly</purpose>

<caption></caption>

...

So, in my environment this is a bug, because I've created a DC and a SDA public part.

I hope to have helped!

Regards,

Luciano

0 Kudos

Hi Luciano!

Thanks for your answer.

I have made that you have written but my problem is continue existing.

I have tested in a second way in this case the public part was OK but i get the NoClassDef... error.

Has anyone a example for my that works without errors.

Regards,

Hermann

luciano_leitedasilva
Contributor
0 Kudos

Herman,

How can I share a web dynpro project with you? I did a simple exemplo right now and works fine!

DC Java - xxxxx.com/aaaa

DC Java - xxxxx.com/bbbb

DC Web Dynpro - xxxxx.com/cccc

the cccc use the aaaa that use the bbbb.

Regards,

Luciano

0 Kudos

HI Luciona!

My scenario is also but it doesn't work.

About share the project, if you wont you can send the project to me by e-mail

my address: herm@networld.at

regards,

Hermann