Now that you have created your theme war using your IDE of choice, its time to deploy this into the WebSphere Application Server(WSAS) console.
Follow these steps to succesfully deploy your theme into the Portal Server.
1. The first thing to do is be aware if working on a stand alone machine you are accessing the correct WSAS console.
For stand alone that url will look like this. https://localhost:10032/ibm/console/logon.jsp, there is also a console installed on server1.
2. Once you have logged in choose the new application link as in
3. Next choose "New Enterprise Application"
4. Select your war file and choose "Next"
5. Select "Fast Path" and choose "Next"
6. On this screen select the defaults
Note: DO NOT, change the directory and install it under where the PageBuilder2 ear is
7. Now change it from installing to server1 to WebSphere_Portal this is very key
It will initially look like this
You will need to select the Server, then select your module then click apply so it looks like this
Then click "Next"
8. The next screen is where you will set the context root. Remember this value as you will need it when updating the theme via xmlaccess to point to your war.
Then select "Next"
9. Review and click "Finish"
10. Next click the link marked "Save"
11. Now we will search for our ear and most likely it will not be started.
To start it check the check box beside your app and click start. Now this is key in that if you are on the console for server1 you cannot start apps on WebSphere_Portal and vice versa, which is one of the reasons we logged into the console on the server running WebSphere_Portal
You are now all set and your theme should be up and running. You can test this by going to http://hostname:port/contextroot/themes/html/Default.jsp
This request will return a 500 but that is as expected because the Default.jsp is being accessed without going through portal. A 404 is not expected and means the theme is not deployed or built correctly . (This is assuming you kept the same pagebuilder war format, if you moved Default.jsp into the theme directory it would look like this: http://hostname:port/contextroot/themes/html/ThemeName/Default.jsp)
- If you have not done so use xmlaccess to update the contextroot of the theme entry if you have already created the theme through webdav, or if not using web dav register the theme via xmlaccess.
- Test your theme on one page to ensure it is working as expected