cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-generated WDP content missing

Former Member
0 Kudos

Hello all,

I've been working on a Web Dynpro project since last week, consisting of a single DC. Everything worked fine, but since last Friday afternoon, I'm getting a build error. I've tried resolving it, but have been unsuccessful so far.

The Web Dynpro DC uses the Message Pool. The error as specified in the editor as: "The import nl.phoqus.ao.wdp.IMessageAOApp could not be resolved."

Apparently this is a class that gets generated automatically by the NWDS; the format is generally IMessage<CompName>.java, with CompName the name of the component controller (in this case "AOApp").

After confirming that the specified class file was, in fact, nowhere to be found on the filesystem, I tried the browsing the DTR. Apparently, it's vanished there, too. In fact, syncing to a date -waaay- in the past, several months ago, when the project was guaranteed to be fine, didn't work either; the entire src\nl\phoqus\ao\wdp\ directory seems to be missing.

As a sanity check (I really needed one at this point), I pulled a copy of the deployed .EAR file as it was running on our NWD machine over to my local machine; the /wdp/ directory is there in that particular archive's src archive.

Is our DTR broken? Did I screw up somewhere? Any advice would be appreciated.

Thanks,

Kars.

Accepted Solutions (0)

Answers (1)

Answers (1)

jpenninkhof
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Kars,

Long time no see! I hope you're doing fine?

With regards to the class file that you're missing in the DTR: that should be pretty okay. There is only a very small selection of the files on your system stored in the DTR. Besides some project-files, basically only your source files are copied there. On your workstation, your source files can be found in the src directory straight under your _comp dir. To see which files are copied to the DTR, you can open up the development configurations perspective and have a look in the same src-directory. Everything without a specific icon is stored in the dtr, while the files that show a little house are local files or directories.

If a IMessage-class file can't be generated, there might be something wrong with either the corresponding Java-file, which should be located in gen_wdp\packages\...\wdp. If you have that file, check if the file doesn't have errors. If there's an error in the Java-file, try to find out the root-cause of the error. Don't try to change the java-files, as it's generated, and your changes will be undone the next the NWDS re-generated the file. The file-name of the java-file should be exactly the same as the class-file, except that it has a .java extension.

If the Java-file is also missing, then something might have gone wrong when the .java-file was generated. In that case your message pool might have gotten corrupted. In that case, I would try to open up the message pool (using nwds) to see if the messages are still there or whether you can spot the error there somewhere.

Besides the above, you might also want to try to just rebuild the entire project (right-click on the DC in the webdynpro explorer), to see whether errors pop-up during this rebuild-process.

Cheers!

Jan

Former Member
0 Kudos

Hi Jan! Yes, I'm doing great, thanks. I hope the same goes for you.

I managed to fix the problem. I'd already tried rebuilding the project. And reloading it. And repairing it. Restarting NWDS didn't help either. I even removed the entire project from my workspace, and checked it out again from the DTR. Still nothing.

I tried a lot after that, but the short story is that I couldn't get NWDS to regenerate the Web Dynpro content; in fact, it turned out that many other files were missing, too. Why or how that happened I'll probably never know.

But I fixed it by adding a dummy message to the message pool and saving. That finally forced the NWDS to regenerate all the web dynpro content for the project.

Thanks for the help, though!

Kars.