cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve the source code from .EAR

Former Member
0 Kudos

Hi,

I have deployed my WD application on WAS. I have the EAR file but lost the entire project from my NWDS. Can anyone let me know if i can retrieve the entire code from my EAR file? If so, how.

Thanks,

Aditya.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi aditya,

you will definetly get your source back.

1)unzip the ear file using winrar

2)unzip again the .wda file using winrar

3)under PORTAL-INF/lib/app.jar

4)unzip the app.jar using winrar

5) then you can find class files of your source

6) convert this .class files into .java files using djcompiler.

regards,

naga raju

Former Member
0 Kudos

Hi Nagaraju,

AFter unzipping the ear file using winrar i am not getting the .wda file at all. Please suggest.

Also if i could do it successfully, will i get the entire webdynpro project as it is into my NWDS? or just the code of the java files?

Former Member
0 Kudos

Hai Aditya ,

you will get only the code of you java files.

i will not sure about the entire project.

If you unzip the ear filoe you will get three files

log-configuration.xml

META-INF(Directory)

xx.wda

regards,

naga raju

Former Member
0 Kudos

This message was moderated.

pravesh_verma
Active Contributor
0 Kudos

Hi Aditya,

First of all kindly let me know whether you have deleted the project only from the NWDS or you have deleted the content as well, which actually resides in the workspace.

See when you do a delete of a project 2 options are dsplayed:

<b>1) Delete all content under the folder (/path of ur workspace/project_Name).

2) Do not delete content.</b>

If you have deleted all the content then you can get it again. But if you have only deleted from NWDS and it still there in the workspace then you can get it.

Just follows these steps:

<b>File -> Import -> Existing project in the Worspace.</b>

Find your poject folder and press OK. The project will come again in the workspace.

<b>>>Can anyone let me know if i can retrieve the entire code from my EAR file?</b>

Ans: No you cannot get the complete project from the.ear file. But you can get the .java code which you would have written in the coding for view, window, controllers etc..

Fot getting that you can extract the .ear file and search for the (*.java) files. All the .java files will be listed and you can select which ever you want.

I hope this helps you.

Regards

Pravesh

PS: Please consider rewarding points if helpful or solved.