cancel
Showing results for 
Search instead for 
Did you mean: 

PAR file import problem in NWDS

Former Member
0 Kudos

Hello All,

Some time back we had developed a custome masthead component for our portal (EP 6, SP 21).

It has been deployed into the portal and its running fine.

now, we need to change some thing in that and so we have downloaded the par file and imported in nwds for code modification.

once we do that we get the masthead.jsp file but unable to get the class files and the beans.

what we doubt is while deploying the par the code was not deployed in the portal.

do you have any idea how can we get the code base out of that ?

p.s we dont have any other code base.

Thanks

Anirban

Accepted Solutions (0)

Answers (2)

Answers (2)

vishal_gupta15
Contributor
0 Kudos

Hi Anirban,

Use any of the Java Decoder application, to re generate the code.

Provide the points if the info is useful

_Vishal

Former Member
0 Kudos

check whether u r modifying the correct parfile . If you wont deploy source code , how can it works?

If you import the correct file , sorce code also appears. try to download and import the correct par file into nwds.

Koti Reddy

Former Member
0 Kudos

i am importing the right par only, but my question is while deploying from nwds you get an option "include the source code for the portal application" to check.. if i dont do that then as far i know you wont get the class files when you import the par file in nwds..

any idea how to resolve that?

Former Member
0 Kudos

Redeploy the same PAR file with option as checked and then download the PAR file you will get the source code.

If you want to see the code you can use the java decompiler.

chander_kararia4
Contributor
0 Kudos

Hi Anirban,

The way you actually deployed the par file earlier is not the correct procedure. Remember, you should check the "include the source code for the portal application" everytime you deply the par through NWDS.

The changes will be effective also even if you do not deploy par at nwds. you can use the portal deployment rather.

Regards

Chander Kararia

Former Member
0 Kudos

Ya, I know that, but the PAR was not deployed by me earlier..

let me rephrase my question : "if you deploy a par in portal from nwds without checking the "include the source code for the portal application", can you later download the par from portal and import in nwds to see the source code?"

Anir

Former Member
0 Kudos

Hi Anirban,

If you uncheck and deploy the PAR file, later you can download it from portal. But the source code will not be available i.e src.api and scr.core will not be available.

1.unzip the jar file in portalINF/lib.

2. Run the java decompiler tool on each unzipped folder.

3. create another folder and move .java files and rename it.

Hope this might be helpful.

Thanks,

Subashini.

chander_kararia4
Contributor
0 Kudos

HI Anir,

As per my knowledge, in this case it is not possible.

Thanks & Regards

Chander Kararia

    1. If question resolved, mark the thread as answered after giving points.*