cancel
Showing results for 
Search instead for 
Did you mean: 

While importing com.sap.security.api jar in webdynpro gives error in DC

pradeep_kumar5
Active Participant
0 Kudos

Hi Experts,

I am developing one component using DC in NWDS 7.2, in that webdynpro application I am using IUser in com.sap.security.api api while importing it gives error no such package found, so i added tat Jar file, ( Right click on webdynpro application --> properties --> libraries --> add variable --> Home- Eclipse --> Extend --> plugins --> com.sap.security.api ). Then i import com.sap.security.api.IUser successfully, it doesn't shows error in webdynpro application, while building software component in development infrastructure perspective it gives errors like

[echo] output dir: C:\workspace2.jdi\LocalDevelopment\t\242E103BF5AB8B5E377DE8EC28EE0551\classes

[javac] Compiling 144 source files to C:\workspace2.jdi\LocalDevelopment\t\242E103BF5AB8B5E377DE8EC28EE0551\classes

[javac] ERROR: C:\workspace2.jdi\LocalDevelopment\t\242E103BF5AB8B5E377DE8EC28EE0551\gen_wdp\packages\com\sap\glx\wdcomp\initiatoruicomponent\InitiatorUIComponentView.java:26: package com.sap.security.api does not exist

[javac] ERROR: import com.sap.security.api.IUser;

[javac] ERROR: ^

[javac] ERROR: C:\workspace2.jdi\LocalDevelopment\t\242E103BF5AB8B5E377DE8EC28EE0551\gen_wdp\packages\com\sap\glx\wdcomp\initiatoruicomponent\InitiatorUIComponentView.java:354: cannot find symbol

[javac] ERROR: symbol : class IUser

[javac] ERROR: location: class com.sap.glx.wdcomp.initiatoruicomponent.InitiatorUIComponentView

[javac] ERROR: IUser user = wdClientUser.getSAPUser();

[javac] ERROR: ^

[javac] ERROR: C:\workspace2.jdi\LocalDevelopment\t\242E103BF5AB8B5E377DE8EC28EE0551\gen_wdp\packages\com\sap\glx\wdcomp\initiatoruicomponent\ProductionMaterialMaster.java:155: cannot find symbol

[javac] ERROR: symbol : class IUser

[javac] ERROR: location: class com.sap.glx.wdcomp.initiatoruicomponent.ProductionMaterialMaster

[javac] ERROR: IUser user = wdClientUser.getSAPUser();

[javac] ERROR: ^

[javac] WARNING: Note: Some input files use or override a deprecated API.

[javac] WARNING: Note: Recompile with -Xlint:deprecation for details.

[javac] WARNING: Note: Some input files use unchecked or unsafe operations.

[javac] WARNING: Note: Recompile with -Xlint:unchecked for details.

[javac] 3 errors

Error: C:\workspace2.jdi\LocalDevelopment\t2\242E103BF5AB8B5E377DE8EC28EE0551\default\logs\build.xml:280: Compile failed; see the compiler error output for details.

at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)

at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

Actually there are no erros in webdynpro application.I don't understand why it is displaying errors in development component in development infrastructure perspective.

Regards,

Pradeep Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pradeep

External jar files cannot be added to a Webdynpro DC by " ( Right click on webdynpro application --> properties --> libraries --> add variable --> Home- Eclipse --> Extend --> plugins --> com.sap.security.api )".

External jar files in a DC can only be added through a library DC.

Please follow the this [link|] where a similar problem has been addressed.

Moreover I guess the com.sap.security.api has been deprecated in C.E. 7.2. But it should still work.

Regards,

Sayan Ghosh

Answers (1)

Answers (1)

pradeep_kumar5
Active Participant
0 Kudos

Thank you sayan ghosh, My problem is solved with your solution.

Edited by: pradeep_546 on Jan 19, 2011 7:36 PM