12 Replies Latest reply: Nov 5, 2012 12:36 PM by meghal shah RSS

AFP - Masthead Modification

Eben Joyson
Currently Being Moderated

Dear All,

 

 

We are using SAP Netweaver 7.3 Portal  and we have NWDS 7.3.

 

I need to modifiy the portal masthead in ajax framework page.

 

I downloaded the file com.sap.portal.navigation.afp.masthead.war directly from the server (not through Portal).

 

Kindly let me know how can i edit this *.war file project. In previous version, it was in *.par file.

 

Which perspective i need to use for editing this com.sap.portal.navigation.afp.masthead.war file.?

How to deploy the edited application on portal?

How to create iView from the Portal Application (PAR) template?

What are the neccessary JAR files for com.sap.portal.navigation.afp.masthead.war?

 

Regards,

Eben Joyson.

  • Re: AFP - Masthead Modification
    Dinesh Chandra
    Currently Being Moderated

    Hi Eben,

     

    SAP Netweaver 7.3 Portal does not provide much flexibility on portal customization for developer as it was in NW04.

    But still you can customize portal using standard .war files.

    1. download .war file to your local system

    2. open Enterprise portal Perspective in NWDS 7.3 and import .war file

              file > import > choose WEB > WAR file > browse your .war file > finish

    3. Add JAR files specific to your project which are available at WEB-INF\private\lib

    4. open jsp file you want to customize.

    5. build and deploy.

     

    *Note : Make sure you have backup of .war file or create the project with different name to avoid losing original .

     

    these are the steps to follow.But i am also stuck at a point >

    Getting errors unresolved import packages like "com.sapportal.htmlb.*" and many more when importing in jsp directives.

    if you find any solution please let me know also.

     

    Thanks.

    • Re: AFP - Masthead Modification
      Eben Joyson
      Currently Being Moderated

      Hi Dinesh,

       

      You need to add the needed JAR files in the Java Build Path Properties of the project.

       

       

      Below I have given the steps of how I tried to deploy the application:

       

      1. I download the com.sap.portal.navigation.afp.masthead folder from the server lcoation

      E:\usr\sap\EPL\J00\j2ee\cluster\apps\sap.com.

       

      2. In NWDS 7.3, Opened Java EE Perspective.

       

      3. Created File ---> New -- > Enterprise Application Project. Named project as "custom_masthead_EAPP" and Checked the "Generate application.xml deployment descriptor" button .

       

      4. Then again imported the war file by selecting File --> Import ---> Select "Web" - WAR file and click Next. Select WAR file and changed the Web Project name as "custom_masthead" and Checked the "Add project to an EAR" button and selected the already created custom_masthead_EAPP .

       

      5. In the custom_masthead, I added all needed jars to java build path.

       

      6. In "custom_masthead_EAPP", I opened application-j2ee-engine.xml file in the editor and added the below code :

       

           <reference reference-type="hard">
                <reference-target target-type="application">custom.masthead</reference-target>
           </reference>
           <provider-name>sap.com</provider-name>

       

       

       

      7. Then I opened the context menu of "custom_masthead_EAPP" and deployed the application by selecting " Run as server". Previously i maintained SAP AS property in windows --> preferences

       

      But deployed was failed with the error message:

       

      Deploy Exception.ASJ.dpl_dc.006505 An unresolved dependencies error occurred while sorting the deployment batch items regarding the dependencies. [ERROR: 6/23/11 11:49 AM /userOut/daView_category (eclipse.UserOutLocation) ThreadDeploy Thread,5,main]

       

      Exception Stack Trace :

       

      Deploy Exception.ASJ.dpl_dc.006505 An unresolved dependencies error occurred while sorting the deployment batch items regarding the dependencies.

       

      Do you have any idea about how to rectify this issue.  Please give your input on this.

       

       

      Regards,

      Eben Joyson

    • Re: AFP - Masthead Modification
      Tobias Hofmann
      Currently Being Moderated

      SAP Netweaver 7.3 Portal does not provide much flexibility on portal customization for developer as it was in NW04.

       

      I disagree. Portal 7.3 offers at least the same flexibility, even more when you consider the new L-Shape API that allows developers to use portal functionality by Javascript.

       

      Or why do you think it offers less flexibility?

       

      br,

      Tobias

    • Re: AFP - Masthead Modification
      Sandip Agarwalla
      Currently Being Moderated

      Eben,

      If you are modifying the AFP Framework page, you need to use the LSAP APIs.

      These APIs provides abstraction layer to most of the services provided by the AFP.

       

      Sandip