Upgrade to PS 7 = No Community Samples?
Hi,
I finally got PS 7 upgraded correctly. When I go to:
http://<hostname>/portal/welcome/index.jsp
I see a nice looking page that says "A PORTAL IS A DOORWAY....." and there are three samples on the right...Community, Enterprise, and Developer.
When I click on any of them, I get a pop-up stating:
"Community Sample has not been installed"
(the same for the other two).
How do I install these samples? This is the whole focus of this portal - to use the fatwire spark CMS. I thought this was included in PS 7 ?
Thanks in advance,
Phil
# 4
Hi Phil,
As I'm sure you're aware, the 3 samples (Community, Developer, and Enterprise) are not installed as part of the Portal 7 upgrade. Instead, you'll need to manually install each sample for your evaluation.
The document at
http://docs.sun.com/app/docs/doc/819-4605/6n6ocrpbb?a=view
is more focused on installing the sample portals with the creation of a 2nd Portal. Some of the sample portal steps in that document are not valid. I will post to that thread and work with our documentation team to fix this.
To answer your question about installing the sample portals, I'll provide a couple informational pointers then outline the steps so you don't have to go searching for the information.
References
==========
* Enterprise Sample Guide Appendix A Installing the Enterprise Sample
http://docs.sun.com/app/docs/doc/819-5027/6n74va6o2?a=view
* How is sample data loaded into Sun Portal Server 7?
http://blogs.sun.com/dpolla
Locations
=========
* location of the sample portal ant scripts (solaris)
/opt/SUNWportal/samples/portals/ : top-level
/opt/SUNWportal/samples/portals/welcome : welcome sample
/opt/SUNWportal/samples/portals/community : community sample
/opt/SUNWportal/samples/portals/enterprise : enterprise sample
/opt/SUNWportal/samples/portals/developer : developer sample
/opt/SUNWportal/samples/portals/shared : files shared by all samples
* location of the configuration files (runtime settings) used by the sample portal ant scripts
/opt/SUNWportal/samples/portals/shared/input.properties.template
/opt/SUNWportal/samples/portals/shared/password.properties.template
Installation Steps
==================
1. Create a custom directory (for the configuration files)
$> mkdir /tmp/mydir
2. Copy the sample configuration files input.properties and password.properties in PortalServer-base/samples/portals/shared to the directory you just created AND remove the .template extension
$> cp /opt/SUNWportal/samples/portals/shared/input.properties.template /tmp/mydir/input.properties
$> cp /opt/SUNWportal/samples/portals/shared/password.properties.template /tmp/mydir/password.properties
3. Edit the input.properties file and replace all the tokens that begin and end with % with the appropriate Portal Server settings. I don't have an upgraded or 7.0 system in front of me right now, but from what I remember the settings should be similar to:
ps.config.location=/etc/opt/SUNWportal
ps.portal.id=Upgraded
ps.access.url=http://snowboarding.sun.com:80/portal
ps.webapp.uri=/portal
ps.profiler.email=
ps.profiler.smtp.host=
search.access.url=http://snowboarding.sun.com:80/UpgradedSearch/search
search.id=UpgradedSearch
am.admin.dn=uid=amAdmin,ou=People,dc=sun,dc=com
default.org.dn=dc=sun,dc=com
4. Edit the password.properties file and replace tokens that begin and end with % with the appropriate administration password value.
amadminPassword=adminpassword
amldapuserPassword=amldapuserpassword
userManagementPassword=%USER_MANAGEMENT_PASSWORD% #not required
5. Use ant to install *all* the sample portals
Usage: ant -buildfile <samplebuildfile> -Dconfig.location=<configlocation> -logfile <logfile>
* ant: Refers to the ant script at /usr/sfw/bin/ant.
* samplebuildfile : Refers to the sample portal build file.
* configlocation: Refers to the location (directory) of the password.properties and input.properties files.
* logfile: Refers to the location of the generated ant log file.
For example,
$> /usr/sfw/bin/ant -buildfile /opt/SUNWportal/samples/portals/build.xml
-Dconfig.location=/tmp/mydir -logfile /tmp/mydir/all_sample_install.log.
If you want to install a single sample portal, such as just the community sample,
$> /usr/sfw/bin/ant -buildfile /opt/SUNWportal/samples/portals/community/build.xml
-Dconfig.location=/tmp/mydir -logfile /tmp/mydir/community_sample_install.log.
Note: if you install all of the sample portals, then when you access /portal you'll be directed to the sample portal welcome page (at /portal/welcome).
Hope this helps, thanks ,dean.