cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro DC doesn't "see" classes from libraries DC... why?

former_member186148
Active Participant
0 Kudos

Hello SCN!

There is a problem in using classes from one DC in another. Let me explain.

First of all, we have two tracks with SC in each of them. One of those SCs (COMMON_SC) contains common-using classes, components, libraries etc. The second one (PROJ_SC) contains our project. There're two DCs in COMMON_SC which important for now: External Library DC called "javalibs" and J2EE / Enterprise Application DC called "j2eelibs".

"javalibs" DC contains third-party JAR-files needed for our projects. This DC has two PP: COMPILE type and ASSEMBLY type; each of these parts includes JAR-files of this DC. Permissions for both of these PP is unrestricted (I've got a message "Access is implicitly unrestricted"). "j2eelibs" has no PP and has a dependency from "javalibs" (only "build-time" for ASSEMBLY PP of "javalibs"). "j2eelibs" has the same permissions settings as settings for "javalibs".

PROJ_SC has some DCs one of them, WebDynpro DC called "wd_views" is interesting for now. This DC is dependent from "j2eelibs" DC (only Runtime dependency with "strong").

Situation. All classes in JARs from "javalibs" DC were accessible in "wd_views" DC. Since of we have to use another third-party libraries we performed following operations: add them to "javalibs" DC, manage entries in DC's public parts, check-in, activate, release activity with these libraries, create transport request and approve it, import COMMON_SC in PROJ_SC track, update DCs in NWDS. Everything was processed without any errors, but now we don't able to use classes from libraries recently added but we still can use classes from libraries which were added long time ago.

Why it's happened and how we can use classes from recently added libraries?

We use NWDS 7.2

Regards, Lev

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos
you have to add dependency to javalib dc(compilation pp) for build time.
did you add new lib to the two pp of the javalib dc?
former_member186148
Active Participant
0 Kudos
Jun Wu wrote:
did you add new lib to the two pp of the javalib dc?
Yes I did.

Jun Wu wrote:

you have to add dependency to javalib dc(compilation pp) for build time.

When I tried to add dependency to javalib DC for wd_views DC I've got an error message "Grant list does not allow references"

junwu
Active Contributor
0 Kudos
check the permission of your javalib dc
former_member186148
Active Participant
0 Kudos

As I wrote early, this DC has "Access is implicitly unrestricted" at permissions for each of it's pp.

junwu
Active Contributor
0 Kudos
check the dependency at SC level.
PROJ_SC should add dependency to COMMON_SC
former_member186148
Active Participant
0 Kudos

PROJ_SC already had dependency to COMMON_SC for "Build time" context

junwu
Active Contributor
0 Kudos
"build time"? do we have this for sc dependency?
former_member186148
Active Participant
0 Kudos

I open SLD, choose "Software catalog" -> "Software components", find my SC by name, open tab "Dependencies" in properties of SC and check dependencies for each type of context - "installation time", "MetaDataRequest" and "BuildTime". SC has dependencies (include dependency from COMMON_SC) only for "BuiltTime" context.

junwu
Active Contributor
0 Kudos
have you check permission tab of the DC? not the permission of the pp.