on 03-20-2012 5:05 AM
Hi,
Firstly, if you are new to Web Dynpro, Java & NWDS, I'd suggest you try reading SAP Help and completing tutorials before diving in to changing code.
To help understand what has happened here, Web Dynpro Java is made up of lots of generated files that are "hidden" from you as a developer - you only really edit a restricted number of the Java files where you add your own custom logic but there are lots of others within the structure of your WD project DC that are generated based on things like your context, model usages, etc.
When you change a context for example and save the changes, NWDS should re-generate all of the files it needs (switch to the Resource perspective and check out the contents in folder gen_wdp for instance to see some of the files.)
As Rahul has said, the best way to fix this is to perform a Repair followed by a Rebuild - this should force NWDS to re-generate any missing/incorrect files and then you should just be left with only errors of your own creation.
Gareth.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yupal,
I have done the required changes as per this document:
http://www.sapgeek.net/2010/10/web-dynpro-java-how-to-use-km-api/
but still the same error.
for your information, i have installed NWDS in my personal system and not in the portal server machine. and NWDI is not configured, i am trying to develop custom application Suggestion Box.
it is long long story for newbie.....
you have to know how to use external lib
http://scn.sap.com/docs/DOC-2666
please search first.....
Hi,
I would suggest you are in over your head with this. I'm all for learning by doing but you need to understand the basics before you can dive into complex stuff.
Also bear in mind that once you've built stuff, often someone else has to support and look after it so doing it the wrong way or forcing it to work in a strange way only makes things harder and more complicated for them.
Gareth.
Hi Yuval,
You can't simply add external jars to a Web Dynpro DC - as soon as you rebuild the DC the entries will be removed. The DC framework acts as a wrapper around the basic Java project properties so you have to do it using the DC tools available in NWDS.
You have to define dependancies on other DC's that you want to re-use - whether these are standard SAP DC's offering functionality such as UME API's or external libraries packaging up independant jars, such as POI or similar, the process is still similar.
Either way, I still think the OP needs to go back to basics a bit to understand all of this.
Gareth,
Hi Ryan,
Thanks for your reply! Actually i am very bad with NWDS, but had been through this document:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30d8e626-d74c-2a10-a986-a86017ea6...regarding suggestion box creation in portal. i have done accordingly but only thing is with the errors in the code. I am having hard time to resolve the issue. please guide me to solve the issue.
Hi Jun,
But Projects are the WRONG way of doing things now - you should always use DC's, else you lose all of the power of re-use and componentisation. Ok, it may be a bit complex to get set up the first time around when you haven't done it before but its worth it in the end.
A lot of the posts on this thread are just re-enforcing my previous comments - walk before you run. Don't take shortcuts just to make things work as it will end up causing problems in the long term, plus you end up learning bad habits.
Siva, have you tried to complete all of the tutorials available for Web Dynpro, starting from HelloWorld and working up? There is lots of content here on SCN to guide you.
Gareth (not Ryan.)
Hi Gareth
1. You are right, but what I meant was adding sap jars to the build path.
As for extrernal jars, like excel POI, if you are working with DC, you are right they have to be included in a different J2EE component.
2. And right you are again: he does indeed have to go to basics and work his way up....
Luckily these are intricate matters that necessitate further study.
regards
yuval peery
regards
yuval peery
Hi,
Use organise import (shift+ctrl+o) to resolve this.
Regards,
Trilochan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rahul,
i have fallowed this document: http://www.sapgeek.net/2010/10/web-dynpro-java-how-to-use-km-api/
and imported six jar files required and finally added reference as in document :PORTAL:sap.com/com.sap.km.application
Right click on your project>Select Repair-->Select Project Structure and classpath after that Rebuild my project
but still the problem still exists.
for your information, i have installed NWDS in my personal system and not in the portal server machine. and NWDI is not configured, i am trying to develope custom application Sugeestion Box.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.