## Deploying JReport Portlet to portal servers

Assume JReport Enterprise Server is installed to `C:\JReport\Server`, before you can deploy JReport Portlet to any portal server, you need to package the JReport Portlet WAR file by running the following command.

`C:\JReport\Server\bin\makewar buildPortletWar`

When this is done, you can find the file jrportlet.war in `C:\JReport\Server\bin\distribute.` Then you need to edit web.xml in \WEB-INF as follows:

- Modify the host and port of of the webservice server according to your environment.
- Set the value of jreport.authorized according to the portal server you install.

The following introduces how to deploy JReport Portlet to some specific portal servers. The web portal servers supported are WebSphere 6.0.0.1, JBoss 2.6.5.SP1, Liferay 4.3.5, and above.

### Deploying to WebSphere Portal

Assume that the WebSphere Portal Server has been installed in `C:\websphere`, to deploy JReport Portlet to the portal server:

1. Start WebSphere Portal Server, open a web browser and set the URL to `http://hostname:10038/wps/myportal` to access the WebSphere Portal.
2. Enter wpadmin for the User ID and admin for the Password, click Login and the WebSphere Portal home page is displayed.
3. Click Launch to open the main menu, then click Administration > Web Modules on the menu.
4. On the Manage Web Modules page, click the install button.
5. Click Browse to find jrportlet.war in `C:\JReport\Server\bin\distribute`.
6. Click Finish to deploy JReport Portlet to the portal server.

### Deploying to JBoss Portal

Assume that you have downloaded JBoss Portal 2.6.5-SP1 into `C:\jboss`, to deploy JReport Portlet to the portal server:

1. Copy jrportlet.war in `C:\JReport\Server\bin\distribute` to `C:\jboss\server\default\deploy`.
2. Start JBoss Portal Server to finish deploying.

### Deploying to Liferay

Assume that you have installed Liferay in `C:\liferay`, to deploy JReport Portlet to the portal server, you can use one of the following two methods:

- Method 1:
  1. Copy jreport.war in `C:\JReport\Server\bin\distribute` to `C:\liferay\webapps.`
  2. Copy jrportlet.war in the same directory to `C:\Documents and Settings\user name\liferay\deploy`.
  3. Start Liferay to finish deploying.
- Method2:
  1. Start Liferay, then open a web browser and set the URL to `http://localhost:8080/user/joebloggs` to access the Liferay home page.
  2. Click Plugins, and the plugin Installer dialog appears.
  3. Click the Upload File tab.
  4. Click Browse to find jreport.war in `C:\JReport\Server\bin\distribute`.
  5. Click Install to finish.
  6. Follow the above steps to deploy jrportlet.war.

Note: Because the Liferay Portal Server is integrated with Tomcat, you can deploy jreport.war to Liferay directly instead of to the web server as explained in Preparing the webservice for JReport Portlet.