How to install JBoss Portal CR2 bundled with JBoss AS GA -------------

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
How to install JBoss Portal 2.6 CR2 bundled with JBoss AS 4.0.5 GA
------------------------------------------------------------------
JBOSS_HOME - Home directory of JBoss Portal 2.6.1 GA bundled with
JBoss AS
4.2.1 GA
Steps
-----
1. Download and extract JBoss Portal 2.6.1 GA bundled with JBoss AS
4.2.1GA
2. Create a database for exclusive use of this JBoss Portal installation at the designated database server. Create jbossportal, hibernate, quartz, shark and sampledata (users).
3. Delete portal-hsqldb-ds.xml from JBOSS_HOME/server/default/deploy
4. Delete ROOT.war from
JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.sar
5. copy root directory from the attached rar on top of jboss installaion
7. Adjust the connection-url of the datasources in JBOSS_HOME/server/default/deploy.
The files that need attention are mysql-ds.xml PentahoHibernate-ds.xml
6. Edit JBOSS_HOME/bin/run.conf (Linux) or run.bat (Windows).
Replace "-Xms128m -Xmx512m" to "-Xms256m -Xmx512m -XX:MaxPermSize=300m" (do what you need on production machine)
8. Edit
JBOSS_HOME/server/default/deploy/jboss-portal.sar/portal-server.war/WEB-INF/jboss-web.xml
Change "<context-root>/portal</context-root>" to
"<context-root>/</context-root>"
9. Launch Jboss server with ./bin/run.sh and let it configure is database automatically.
10. Shutdown the server
11. Execute SQL in JBOSS_PORTAL_DB : INSERT INTO jbp_roles VALUES (3, "SiteManager", "Site Manager"),(4, "TravelAgent", "Travel Agent"), (5, "Affiliate", "Affiliate")
12. copy "pentaho-solutions" as a sibilng (next to) jboss root
Create a permanent environment variable JBOSS_CLASSPATH pointing at
the location of "pentaho-solutions"
17. Joyfully execute in JBOSS_HOME/bin the following commands:
a. nohup ./run.sh -b 0.0.0.0 &
b. less +F nohup.out