on 01-09-2006 10:34 AM
Hi,
Everytime I import a Web Dynpro DC from our NWDI I see 'import cannot be resolved' errors when I open for example the Component Controller implementation. An Organize Imports does not fix this. If I rightclick inside the code and select 'Show in Package Explorer' it jumps to the .java file for the implementation (within the gen_wdp folder). In that same tree I can see the IPrivate*.java files as well.
I also tried Repairing and Rebuilding the project. All to no avail...
Why is this happening and how can I resolve it?
Kind regards,
Pascal Willemsen
Hi Pascal,
Do the generated .java-files contain any compilation errors?
If for example the bindings in the imported DC are broken, broken JAVA-files will be generated in gen_wdp, and you won't be able to import them in your Component Controller.
Usually, for me at least, this depends on broken data-bindings.
Regards
Mattias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If I open the generated Java files in gen_wdp I see loads of errors (all '...cannot be resolved...'), but the Tasks view contains no errors at all (answer to Armin).
A development component build runs and seems to succeed without problems.
It seems that the Web Dynpro's contain a circular dependency, which I think is the cause of the problem:
1. wdThis in the Component Controller is an IPrivateComponent instance.
2. IPrivateComponent extends IPublicComponent.
3. IPublicComponent has a gen_delegate member which is an InternalComponent instance.
4. InternalComponent implements IPrivateComponent.
I guess NWDS doesn't know where to start...?
Hi Armin
my NWDS is Sp14 .when i try to create DC it giving error called "com.sap" not resolved.so all defalut generated code by webdynpro gives errors.all imports also showing error.it also shows some jar file are not available.but if i create Project instead of DC it works well.How to resolve this?Please help
Thanks
Prasad
Pascal, Thanks so much for the solution mentioned, opening and closing the project helped me too.
MSR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sometimes a Project -> Reload helps. Do you see any errors in the "Tasks" view?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.