How To Integrate Jetspeed2 with Jetty6
It is pretty simple really. Here are the steps:
Install Jetspeed2. These instructions were tested using the Jetspeed2 installer.
In a new jetty configuration file, or using the
etc/jetty-plus.xml config file from the distro, add the following:
- Define the Jetspeed realm:
- Define the Jetspeed datasource:
- Define the Jetspeed webapps
If you are using the
etc/jetty-plus.xml file, you don't have to do anything as all webapps in
webapps-plus will be automatically deployed on startup. If you want to create your own jetty config file, then you should do the same by copying and pasting this snippet, replacing the 2nd argument with the location of your deploy directory:
- Copy the Jetspeed webapp
webapps/jetspeeddirectory from your Jetspeed installation directory into your chosen jetty deploy directory (which will be
webapps-plusif you're using the defaults).
- Move the Jetspeed demo portlets
Assuming you are using
webapps-plusas your deploy directory, move all of the demo portlet war files from
- Copy the shared jars
Copy all of the jars in your jetspeed installation's
shared/libdirectory to your jetty
That's it, Jetspeed is now installed for jetty. All you have to do is run jetty with the config file you've been editing.