Skip to Content
avatar image
Former Member

LinkageException when binding DCs


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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 24, 2004 at 10:44 AM

    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



    Add comment
    10|10000 characters needed characters exceeded