on 01-19-2011 7:44 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you sayan ghosh, My problem is solved with your solution.
Edited by: pradeep_546 on Jan 19, 2011 7:36 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.