Create portal application HELLO WORD with NWDS
How many of you have had to write just 2 lines of code to the SAP portal, but to find this at the edge of the impossible?
I wrote a small guide on how deployare application for the SAP portal.
I hope you find it useful.
- Download and install JRE
- Download and Install NWDS
Unzip the nwds-extsoa-7.3-SP11-PAT0002-win32.zip
and launch SapNetweaverDeveloperStudio.exe
- Create a Portal Application Project
File –-> New -> Other.
Give a project name and click Finish.
- Create a Portal Application Object
Now we need to create
a component within our portal application project. For this right click on the
project and select New -> Other.
Then select Portal Application-> Create a new Portal Application Object
Select yor project and click Next
Expand Portal Component and select AbstractPortalComponent and click Next.
Give the name, leave location Core, anc Packege Name blank and click Finish
- Put your code
public class HelloWord extends AbstractPortalComponent
public void doContent(IPortalComponentRequest request,
- Export the project in EAR file
Now we have to deploy this component to the portal. For this first we will export this project as an EAR file. For this right click on the project and select the
option Export from the context menu.
Select the option SAP NetWeaver Portal -> EAR File and click Next.
Select Next on the following screen, the project will be selected by default.
Click Finish on the next screen.
Now you will be able
to see the EAR file in the project structure.
- Set connection beetween portal SAP and NWDS
deploy this EAR file to our portal. For this first make sure that the portal
system has been added and set as the default system
under Window -> Preferences -> SAP AS Java
If no SAP system are present , click to Add.
User and Password of Java Administrattor are required
- Deploy view on Portal
Navigate to the Deploy view by clicking Window -> Show View -> Other.
( If you have a javanullpunt error follow the thread http://scn.sap.com/thread/3152087 )
Expand the node Deploy View and select Deploy View.
In the deploy view, right click on the option External Deployable Archives and select Add.
From your file system, navigate to the path where the project lies and select the EAR file that we created earlier.
The EAR now appears under External Deployable Archives.
With the EAR file selected, select the Deploy button (or right click on the EAR file and select the option Deploy from the menu).
You will be able to view the deployment progress in the lower right corner.
You will get a confirmation message upon successful deployment.
- Test the portal application
Navigate to Content Administration-> Portal Content Management and expand the node Portal Applications.
And we win
another usefull document that help me to create this guide :
Deploy HTML5 applications to 7.3 portal