Quick setup steps for the news application:
First off, whenever you start orion during this setup you need to use -Djsp.reuse.tags=false.
This is very important since the JPS has a bug when it comes to tags being reused.
For a complete list of bugs found (the critical ones have been patched but not all) in the original JPS
look at estore-bugs.txt in the same directory as this document.

1) Download the JPS release from http://java.sun.com/j2ee/blueprints/

2) Add a valid data-source to data-sources.xml. For instance if using
HypersonicSQL the datasource could look like this:
<data-source 
		name="Default data-source"
		class="com.evermind.sql.ConnectionDataSource"
		location="jdbc/DefaultCoreDS"
		pooled-location="jdbc/DefaultPooledDS"
		xa-location="jdbc/xa/DefaultXADS"
		ejb-location="jdbc/DefaultDS"
		url="jdbc:HypersonicSQL:defaultdb"
		connection-driver="org.hsql.jdbcDriver"
		username="sa"
		password=""	/>

3) Add a valid mail configuration to config/application.xml. It should look like the following:
<mail-session location="mail/MailSession" smtp-host="mail.mycompany.com">
	<property name="mail.transport.protocol" value="smtp" />
	<property name="mail.smtp.from" value="admin@mycompany.com" />
	<property name="mail.from" value="sales@mycompany.com" />
</mail-session>

4) Run the .sql script found in the JPS distro for your particular db in order to create the tables.

5) Install the application, this is done by adding the following to config/server.xml:
<application name="petstore" path="../applications/estore-patched.ear" />

6) Start Orion up, this should auto-deploy the application.

7) Move the estore-orionadapter.jar to the orion/application-deployments/petstore/ directory and link it
with a <library path="estore-orionadapter.jar" /> in orion-application.xml in that directory. This contains
the Orion-specific code for that app (the SecurityAdapter), look inside the jar for source.

8) Open orion/application-deployments/petstore/estoreEjb.jar/orion-ejb-jar.xml.
Find the <session-deployment name="TheShoppingClientController" ...> tag and add the following subtag:
<env-entry-mapping name="securityAdapterClassName" value="OrionSecurityAdapter" />
This specifies for the app to use the OrionSecurityAdapter instead of the default J2EE-RI adapter.

9) Open orion/application-deployments/petstore/estore/orion-web.xml and add the same tag as to the previous file:
<env-entry-mapping name="securityAdapterClassName" value="OrionSecurityAdapter" />.

10) Bind the web-app to the default site, this is done by adding the following to
config/default-web-site.xml:
<web-app application="petstore" name="estore" root="/petstore" />

11) Access http://localhost/petstore/ and verify that it works.
