cancel
Showing results for 
Search instead for 
Did you mean: 

Missing DC

Former Member
0 Kudos

Greetings, SDN members.

I am struggling with an issue I can't overcome for a couple of hours now.

I have a Java WebDynpro DC component, which makes use of libraries, such as com.sap.security.api.sda and others.

Part of my code makes use of KM functionality, for example a class called com.sapportals.wcm.repository.IMutablePropertyMap, and many others.

When I try to build my DC there is a build error, which states that "The Build terminated with errors".

I can't find the required DC for this class, and several others (build log below).

Looks like there are classes missing, although the code compiles fine, as I have all required libraries imported as jars.

I assume this happens because I need to use a DC instead of regular external JAR?

[javac] ERROR: import com.sapportals.wcm.repository.Content;

package com.sapportals.wcm.repository does not exist

[javac] ERROR: import com.sapportals.wcm.repository.ICollection;

[javac] ERROR: ^

package com.sapportals.wcm.repository does not exist

[javac] ERROR: import com.sapportals.wcm.repository.IMutablePropertyMap;

[javac] ERROR: ^

package com.sapportals.wcm.repository does not exist

[javac] ERROR: import com.sapportals.wcm.util.name.Name;

[javac] ERROR: ^

package com.sapportals.wcm.util.uri does not exist

[javac] ERROR: import com.sapportals.wcm.util.uri.RID;

[javac] ERROR: ^

package com.sapportals.wcm.util.usermanagement does not exist

[javac] ERROR: import com.sapportals.wcm.util.usermanagement.WPUMFactory;

[javac] ERROR: ^

package com.sapportals.portal.security.usermanagement does not exist

[javac] ERROR: com.sapportals.portal.security.usermanagement.IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);

[javac] ERROR: ^

[javac] ERROR: symbol : variable WPUMFactory

[javac] ERROR: com.sapportals.portal.security.usermanagement.IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);

[javac] ERROR: ^

[javac] ERROR:

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182374
Active Contributor
0 Kudos

Hi Ivan,

You're right, you need add the relevant DC as 'Used DC' to your project.

As far as I remember SAP doesn't KM DC so you need to create an external library, add the KM jars and use the new library DC in your project.

Regards,

Omri

Former Member
0 Kudos

Hi Omri,

The project was compiling fine, I don't remember what I did that caused this error.

The libraries that appear in the log were used previously.

Any ideas?

former_member182374
Active Contributor
0 Kudos

Hi Ivan,

If you were able to compile the project before without errors it means that you already have a library project (DC) with the relevant jars.

Which entries do you see in the 'Used DC' of your project?

Do you have an old version of the project? (from the old version you can see which DC is used)

Regards,

Omri