Showing results for 
Search instead for 
Did you mean: 

LinkageException when binding DCs

Former Member
0 Kudos


I am seeing the following.

WebDynpro DC A has jar files of several java projects.

WebDynpro DC B uses jar files in A.

WebDynpro DC C uses jar files in A and needs interface views in B.

I set up the dependencies in the DC definitions as follows

B uses A.

C uses B.

C uses A.

When I run C, I get the following exception

java.lang.LinkageError: Class com/company/blah violates loader constraints

The class is a class that exists in A.

If I remove the linkage from C to B, it works fine, but I still need to access the view in B. How can this be solved?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Tom, you create circular dependency between classloaders and then complains about errors

You have to re-organize your sources between DCs to resolve this dependency.

For example, you can create Z with classes common for C & B. Then you will have:

B uses A

B uses Z

C uses Z

C uses A

(probably A uses Z)

This will resolve linkage error