forked from uPortal-Project/uPortal
-
Notifications
You must be signed in to change notification settings - Fork 26
/
README-JASIG
103 lines (81 loc) · 4.96 KB
/
README-JASIG
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
README for basic uPortal deployment
For further help please refer to the uPortal Manual:
https://wiki.jasig.org/display/UPM40/Home
Additional information about uPortal is available on the uPortal home page
(http://www.apereo.org/uportal) or in the uPortal wiki
(https://wiki.jasig.org/display/UPC/Home) .
+------------------------------------------------------------------------------+
| Requirements |
+------------------------------------------------------------------------------+
JDK 1.6.0_26 or later - Just a JRE is not sufficient, a full JDK is required
Servlet 2.5 Container - Tomcat 6.0 is recommended, there some configuration
changes that must be made for Tomcat 6.0 which are documented in the uPortal
manual. https://wiki.jasig.org/display/UPM40/Installing+Tomcat
Maven 3.0.3 or later
Ant 1.8.2 or later
+------------------------------------------------------------------------------+
| Building and Deploying |
+------------------------------------------------------------------------------+
uPortal uses Maven for its project configuration and build system. An Ant
build.xml is also provided which handles the initialization and deployment
related tasks. As a uPortal deployer you will likely only ever need to use the
Ant tasks. Ant 1.8.2 or later is required
Ant tasks (run "ant -p" for a full list) :
hsql - Starts a HSQL database instance. The default uPortal configuration
points to this database and it can be used for portal development.
initportal - Runs the 'deploy-ear' and 'init-db' ant targets, should be the
first and only task run when setting up a new uPortal instance
WARNING: This runs 'init-db' which DROPS and re-creates the uPortal
database
deploy-ear - Ensures the latest changes have been compiled and packaged then
deploys uPortal, shared libraries and all packaged portlets to the
container
initdb - Sets up the uPortal database. DROPS ALL EXISTING uPortal tables
re-creates them and populates them with the default uPortal data
WARNING: This DROPS and re-creates the uPortal database
deploy-war - Ensures the latest uPortal changes have been compiled and
packaged then deploys the uPortal WAR to the container.
deployPortletApp - Deploys the specified portlet application to the
container. This is the required process to deploy any portlet to a
uPortal instance.
ex: ant deployPortletApp -DportletApp=/path/to/portlet.war
+------------------------------------------------------------------------------+
| Help and Support |
+------------------------------------------------------------------------------+
The uportal-user@lists.ja-sig.org email address is the best place to go with
questions related to configuring or deploying uPortal. Information about joining
the list is available on the JA-SIG wiki:
https://wiki.jasig.org/display/JSG/uportal-user
The uPortal manual is a collaborative document on the wiki which has
more detailed documentation: https://wiki.jasig.org/display/UPM40
+------------------------------------------------------------------------------+
| Other Notes |
+------------------------------------------------------------------------------+
Initial Configuration
----------------------------------------
To deploy uPortal you must set the server.home variable in the
build.properties file to the instance of Tomcat you want to deploy to.
Build approach
----------------------------------------
The approach here is that there is a generic pom.xml and build.xml that you
should not have to edit, alongside a build.properties that you absolutely must
edit to reflect your local configuration. Edit build.properties to reflect such
configuration as where your Tomcat is, what context you would like uPortal to
be deployed as, etc.
Initial Deployment
----------------------------------------
You must run the initportal target before uPortal is started the first time.
This target will take care of compiling, deploying, database population and
other initial tasks. Running initportal again is similar to hitting a reset
button on the portal. Any saved configuration in the portal is lost and a clean
version of the portal is configured.
Logging
---------------------------------------
The /uportal-war/src/main/webapp/WEB-INF/log4j.properties Log4j configuration
file will end up on the classpath for Commons Logging / log4j to find. You'll
need to either change that configuration then run deploy-war. You can configure
the logging level, where the file should be, or even choose a different logging
approach (log via XML to a ChainSaw instance, say).
Database configuration
--------------------------------------
Database configuration is configured in /uportal-war/src/main/resources/properties/rdbm.properties.