private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
How To Integrate Jetspeed2 with Jetty6
It is pretty simple really. Here are the steps:
Step 0:
Install Jetspeed2. These instructions were tested using the Jetspeed2 installer.
Step 1:
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:
These instructions are for defining a datasource which uses Derby embedded. If you installed Jetspeed2 with a different database, you will need to provide the configuration for a different DataSource. You might find it helpful to look at the jetty6 User Guide for JNDI.
- 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:
Step 2:
- Copy the Jetspeed webapp
Copy thewebapps/jetspeeddirectory from your Jetspeed installation directory into your chosen jetty deploy directory (which will bewebapps-plusif you're using the defaults).
- Move the Jetspeed demo portlets
Assuming you are usingwebapps-plusas your deploy directory, move all of the demo portlet war files fromwebapps-plus/jetspeed/WEB-INF/deploytowebapps-plus.
Step 3:
- Copy the shared jars
Copy all of the jars in your jetspeed installation'sshared/libdirectory to your jettylibdirectory
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.