uPortal 何許人也,,當然它是一個開源的Portal產(chǎn)品,,那么在眾多的Portal中為什么它能吸引我的眼球呢,?原來在近期研究CAS的過程中發(fā)現(xiàn)了它。uPortal的單點登錄部分采用了CAS的Proxy架構,,而且它也是一個由美國眾高校開發(fā)研制和維護的產(chǎn)品,,本文簡述了uPortal的安裝與配置過程。對其的深入研究還需一定時日,。 uPortal is a free, sharable portal under development by institutions of higher-education. This group sees an institutional portal as an abridged and customized version of the institutional Web presence... a "pocket-sized" version of the campus Web. Portal technology adds "customization" and "community" to the campus Web presence. Customization allows each user to define a unique and personal view of the campus Web. Community tools, such as chat, forums, survey, and so on, build relationships among campus constituencies. uPortal is an open-standard effort using Java, XML, JSP and J2EE. It is a collaborative development project with the effort shared among several of the JA-SIG member institutions. You may download uPortal and use it on your site at no cost. uPortal的發(fā)行版有兩種,,Quick Start版和Only uPortal版,顧名思義,,前者是一個包含了Servlet容器在內(nèi)的可直接運行的程序,,而后者則需要進行編譯和部署到現(xiàn)有的Web容器中,這里我當然用的是后者(前者實在太無聊了),。需要使用ant對其源碼進行編譯,。具體步驟如下: uPortal Only DistributionThe uPortal-only distribution is downloaded as a zip file which extracts to directory called uPortal_rel-2-4-2.zip . The directory contains the following...
...and the following files
Use of this distribution requires knowledge of J2EE environments and the Ant tool from the Apache Jakarta project.
Setting up a Web Application Environment The uPortal web application requires a web application enviroment such as Tomcat or IBM Webshere . If you already have a web application environment installed on a server, the uPortal context can just be deployed to that environment, otherwise you will have to install one. The build files for uPortal have been set up such that it can be easily deployed into Tomcat. The Jakarta-Tomcat servlet container can be downloaded from: http://jakarta./tomcat/index.html . Version 4.1.24 is recommended. Compiling and Deploying uPortal Compiling and deploying uPortal is managed using the Jakarta Ant build environment. It is highly recommended that anyone implementing uPortal or developing channels become familiar with the Ant build tool. Documentation for Ant is available at Jakarta-Ant web site For detailed instructions on how to compile and deploy uPortal go to the documentation page at: Building and Deploying uPortalOverviewCompiling and deploying uPortal is managed using the Ant build tool. Ant uses a file called build.xml for managing what is compiled and copies all necessary files into the uPortal context. The uPortal context can then be deployed as a complete web application running in a servlet container such as Tomcat or IBM Websphere. The build.xml file uses several properties defined in a file called build.properties. Both of these files can be found in the uPortal_rel-2-1-3 directory. Obtaining the Ant build toolIf using the uPortal-only release you will need to download the Ant build tool. It is available from http://jakarta./ant. Once the archive is downloaded, uncompress it and update the operating system environment such that it is available form the standard search path. It is recommended that an ANT_HOME environment be set, and ANT_HOME/bin added to the PATH environment variable. Obtaining external dependency librariesIf using the uPortal-only release you will have to obtain all of the necessary external dependency libraries before attempting to compile uPortal.
Compiling uPortalNow your ready to compile uPortal. Go to the uPortal_rel-2-1-3 directory and just type ant. Ant will first create a build directory, then invoke the java compiler and store all of the compiled class files into build/WEB-INF/classes. It will also copy many other files into the build directory including stylesheet files, images, and property files. If everything worked you should see a message which reads: BUILD SUCCESSFUL If something went wrong, it is most likely due to Ant being unable to find one or more of the external dependencies. Check the build.properties file and try again. Deploying uPortalThe Ant build tool also manages the deployment of the uPortal application into a servlet container. It will copy everything that it compiled and stored in the build directory into a directory specified in the build.properties files as deploy.home. If using the Before deploying uPortal you may need to modify the build.properties. Edit the file and find the deploy.home property. Change the value such that it points to the location where uPortal will be deployed. For a Tomcat servlet container that would typically be $TOMCAT_HOME/webapps/{app.name}, for example: deploy.home=/usr/local/jakarta-tomcat-4.0.4/webapps/uPortal Note: if you are working with the quick-start release, the deployment directory is relative to the uPortal_rel-2-1-3 directory (../tomcat-4.1.24/webapps/uPortal) and should not be changed. Now you‘re ready to deploy uPortal to the servlet container. Simply type "ant deploy" to invoke the "deploy" target. If everything worked correctly you will see a BUILD SUCCESSFULL message. Setting up A DatabaseThe uPortal system can be deployed such that a database from several different vendors may be used. Installation and configuration information about databases can be found in the: Database Installation and Configuration Document Setting up A Oracle DatabaseAbout OracleOracle is a commercial database available from http://www.oracle.com Obtaining the DriverA Oracle JDBC driver is also available through http://www.oracle.com. Versions for Oracle 8i and Oracle 9i are available. The driver downloads as a single "zip" file (for example, classes12.zip). The file should be stored in a directory where it will be accessible from the uPortal build environment (for example /usr/local/java/oracle/lib/classes12.zip) See Issues section about possible issues using this driver. Properties ConfigurationThe uPortal build.properties will need to be modifed. Find the property called jdbcDriver and change it to point to the Oracle zip/jar file, for example: jdbcDriver.jar=/usr/local/java/lib/classes12.zip The uPortal rdbm.properties file (in the properties directory) will need to modified to specify the driver properties. First, comment out the property definitions which are currently defined (most likely, for HypersonicSQL). The rdbm.properties file contains several sample entries. Uncomment the lines for the Oracle database and make whatever changes necessary to match your local database installation, For example: ##### Oracle - example The dbloader.xml properties file (also in the properties directory) may also need to be modified. This file is used by the DbLoader tool to create the uPortal database tables and populate the database. It contains several sample entries which create db-type-mappings for different databases. Find the tags for an Oracle database and modify the db-version, driver-name, and driver-version as necessary. For example: <db-type-mapping> The PersonDirs.xml file (also in the properties directory) may need to be modified; This file is used if the database is to be used to provide user directory information. <!-- JDBC Properties --> Loading the DatabaseLoading the database requires a couple of steps
Complete the InstallationOnce you have compiled and deployed uPortal and setup a database for it to utilize, you still need to publish the channel fragments and internationalize the database. This can be done in one step by issuing the `ant initportal` command. Once this command completes without errors, your uPortal instance should be fully functional. Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=318520 |
|