Why use this deployment scenario?
- This scenario is the prefered scenario for development of portlets.
- It eliminates the need to run both server1 and the portal, which reduces the resources used.
- It allows for auto deployment.
- It allows you to test your models quickly running from Eclipse or RAD.
Description of the scenario
- The development WAR is deployed to a local WebSphere Portal server.
- The portlet WAR is deployed to a local WebSphere Portal server.
1. Create a new project.
2. On the Project Name page of the wizard, enter a name for your project. Click Next.
3. On the Add Feature Sets page of the wizard, check off the feature sets you want in your project. Click Next.
4. On the Java Settings page of the wizard, accept the defaults. Click Next.
5. On the Deployment Configuration screen, click the Add button for the Application Server Deployment Configuration.
6. Enter a name for the configuration. Make it descriptive since you will be able to reuse this configuration for other projects.
7. Enter a description for this configuration. Provide information about this configuration for future reference.
8. Select the server type, either WebSphere Application server 5.x or WebSphere Application server 6.x
9. Installed Applications directory will default to C:\ibm\WebSphere\profiles\wp_profile\installedApps\ for WebSphere Portal 6.x and C:\Program Files\WebSphere\AppServer\installedApps\ for WebSphere Portal 5.x. If you remove the string and click the choose button, the file browser should open to your installedApps directory if you installed WebSphere with defaults. From here, expand the installedApps directory and select the cell name. Click Ok in the file browser.
10. Leave the host setting with the default of localhost. Since your server is on your local machine there isn't any reason to change this default.
11. Enter a new port number only if you know it is different from the default.
12. Auto Deploy can be left checked.
13. Select WebSphere_Portal for the "WAS server for deployment" select.
14. Enter values for admin user and admin password.
15. Click the test server connection button to confirm that you have used the correct username and password. Click ok when the results are displayed.
16. Click the Add button for the Portal Server Deployment Configuration.
17. Select the server type, either WebSphere Application server 5.x or WebSphere Application server 6.x
18. Select a portlet API setting.
19. Select the path to the WPRoot. This is the path to the "PortalServer" folder.
20. If you selected WebSphere Native (deprecated) you will have to enter the location to the pbportlet.jar file.
21. Auto Deploy can be left checked.
22. Enter the path to your JRE Home.
23. Enter values for admin URL, admin user and admin password.
24. Click the test server connection button to confirm that you have used the correct username and password. Click ok when the results are displayed.
25. Click finish. The project will be created and ask if you want to deploy now. Click yes. This will build the dev WAR and the portlet WAR.