Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Subject: How to reference standard SAP DC to a Java DC

Hello SAP Java Gurus:

At our client, we have a

a) Java DC -- contains some business logic

b) extlibs DC -- contains external Jar files

c ) ejb DC -- contains session beans EJB

d) ear DC -- for bundling a, b, c

Java DC, ejb DC both use extlibs DC so, accordingly

public parts were exposed out of extlibs DC and 'Used

DC' relation was established between a-c, and c-b.

The purpose of ear DC is just to bundle a, b, c and

deploy them to the server. So we created public parts

of a, b, c and then created 'Used DC' relationship btwn

d and a, b, c. Everything is compiling, deployed and

working fine.

Now, we added a new functionality in to a)Java DC

which needed some two new standard SAP delivered

DCs (1) Connector.jar -- j2eeca

(2)GenericConnector.jar --- tc/conn/connectorframework

So, we added these standard DCs as 'Used DC' to Java

DC for both build time and runtime(strong). The code

compiled well and when deployed and run, it is giving

an exception "java.lang.NoClassDefFoundError:


This class and package structure exists in the standard

SAP DC -- tc/conn/connectorframework. This was

given as both build time and runtime(strong) reference

to Java DC !! Why the code in Java DC is failing to use

it during the runtime ??

To do some testing, we gave the same build time and

runtime references to those two standard SAP DCs to

the other two DCs too, i.e., ejb DC and ear DC, but

no use, same error.

Does anyone have any ideas over this ?

Your suggestions are highly appreciated.

Best Regards,

Prasad Nutalapati

Former Member replied

Hi prasad,

Open application-j2ee-engine.xml

and add library/service reference as

the refernce may be library or service or sharing. please do as per your requirment.

for this check the DC tc/conn/connectorframework in development configuration perspective. where you can see the type of DC. i.e. it is library of service

this will solve the problem.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question