cancel
Showing results for 
Search instead for 
Did you mean: 

Error with IAspect

Former Member
0 Kudos

Hello all,

Im implementing the example of the article "Using a Composite Application via a Web Dynpro UI". Im using the code in the end of my message (the same as the article) to initialize the start and target location but I got the error " java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IAspect".

I have added the 3 development components as asked previously in the article

(public part types_compilation of DC

caf/core/dict (CAF compartment), public part com.sap.caf.ui.utils of DC caf/UI/ptn/common (CAF compartment) and the public part default of DC

tc/col/runtime (compartment

SAP_JTECHS)).

I think the problem is in the deploy, but Im not sure.

May someone help me ?

Thanks in advance.

Code:

// Initialize location fields:

IAspect aspectList;

IAspectRow aspectRow;

int count;

IWDAttributeInfo attributeInfoStart, attributeInfoTarget;

ISimpleTypeModifiable startLocation, targetLocation;

IModifiableSimpleValueSet valueSetStart, valueSetTarget;

// access the context and get the relevant value nodes:

attributeInfoStart =

wdContext.nodeFindTravel().getNodeInfo().getAttribute("StartLocation");

startLocation = attributeInfoStart.getModifiableSimpleType();

valueSetStart = startLocation.getSVServices().getModifiableSimpleValueSet();

attributeInfoTarget = wdContext.nodeFindTravel().getNodeInfo().getAttribute(

"TargetLocation");

targetLocation = attributeInfoTarget.getModifiableSimpleType();

valueSetTarget = targetLocation.getSVServices().getModifiableSimpleValueSet();

// access the proxy and get all available locations

aspectList = TravelLocationServiceProxy.getAll();

// add wildcards for a general search:

valueSetStart.put("", "");

valueSetTarget.put("", "");

// loop over the result list

for (count = 0; count < aspectList.size(); count++) {

aspectRow = aspectList.getAspectRow(count);

valueSetStart.put(

aspectRow.getAttributeAsString("key"),

aspectRow.getAttributeAsString("name"));

valueSetTarget.put(

aspectRow.getAttributeAsString("key"),

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Helder,

Right click on your project, select Properties, in WebDynpro References -> Library references add "sap.com/cafruntimeuicouplingapilib".

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Thanks Maksim, its working fine now !

former_member182372
Active Contributor
0 Kudos

Well, assign points and close th thread then .

Answers (0)