Hmmm...i followed the instructions at that site...the difference though is i'm using
Jetspeed 1.4b4.
I included trubinresource.properties at the end of the file and i had no problem
whatsoever making that work.
Try this (just a suggestion..order in my property file and analysis from my property
file):
Make sure that the order in which you override the property files is this (if you are
overriding any values in these files). Also within each property files make sure you
are overriding the property key in the correct order. For e.g. in TRp file property
key B after A then in your file too property key B should be overriden after A has
been overriden:
# T u r b i n e R e s o u r c e s . p r o p e r t i e s :
# JetspeedResource.properties
# JetspeedSecurity.properties
My web.xml looks like this:
<servlet>
<servlet-name>
jetspeed
</servlet-name>
<servlet-class>
org.apache.turbine.Turbine
</servlet-class>
<init-param>
<param-name>properties</param-name>
<param-value>
WEB-INF/conf/my.properties
</param-value>
</init-param>
<init-param>
<param-name>resources</param-name>
<param-value>org.apache.jetspeed.services.resources.JetspeedResourceService</param-value>
</init-param>
<init-param>
<param-name>logging</param-name>
<param-value>org.apache.jetspeed.services.logging.JetspeedLoggingService</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Sample of my property file
# -------------------------------------------------------------------
# $Id: my.properties,v 1.3 2003/07/23 19:50:28 morciuch Exp $
#
# This file contains site specific properties. These properties
# are basically overrides of properties found in TurbineResources,
# JetspeedResources, JetspeedSecurity and Torque.properties.
#
#
# Note that strings containing "," (comma) characters must backslash
# escape the comma (i.e. '\,')
#
# -------------------------------------------------------------------
# ###################################################################
#
# T u r b i n e R e s o u r c e s . p r o p e r t i e s :
#
# ###################################################################
# -------------------------------------------------------------------
#
# M O D U L E P A C K A G E S
#
# -------------------------------------------------------------------
# This is the "classpath" for Turbine. In order to locate your own
# modules, you should add them to this path. For example, if you have
# com.company.actions, com.company.screens, com.company.navigations,
# then this setting would be "com.company,org.apache.turbine.modules".
# This path is searched in order. For example, Turbine comes with a
# screen module named "Login". If you wanted to have your own screen
# module named "Login", then you would specify the path to your
# modules before the others.
#
# Default: org.apache.turbine.modules
# -------------------------------------------------------------------
# These look like mostly ECS modules
module.packages=com.abc.webframework.portal.modules,org.apache.jetspeed.modules
module.packages=org.apache.turbine.modules
# This is the default action to log a user in.
#dst action.login=LoginUser
action.login=abcLoginUser
#-------------------------------------------------------------------------------
#
# S E R V I C E S
#
#-------------------------------------------------------------------------------
services.ResourceService.classname=org.apache.jetspeed.services.resources.JetspeedResourceService
# -------------------------------------------------------------------
#
# L O C A L I Z A T I O N S E R V I C E
#
# -------------------------------------------------------------------
# Default ResourceBundle and language/country codes used by the
# TurbineLocalizationService.
#
#
# this is a comma separated list of bundles that are searched to find a resource
# after the above default bundle has been checked, if its specified
# should be fine to leave this setting as is
locale.default.bundles=com.abc.webframework.portal.modules.localization.CCPortalLocalization,org.apache.jetspeed.modules.localization.JetspeedLocalization
locale.default.language=en
locale.default.country=US
# -------------------------------------------------------------------
#
# T E M P L A T E S E R V I C E
#
# -------------------------------------------------------------------
services.TemplateService.default.extension=jsp
# -------------------------------------------------------------------
#
# J S P S E R V I C E
#
# -------------------------------------------------------------------
# This parameter supports a comma separated list of directories
# Each directory is searched in order to find a template.
# This is useful for example, in defining application specific templates in a separate
structure from the jetspeed core templates
# Note this needs to be set in 3 places - for the jsp loader and vm loader in TR.p and
for the template locator in JR.p
services.JspService.templates =/WEB-INF/templates/abc/jsp,/WEB-INF/templates/jsp
# -------------------------------------------------------------------
#
# V E L O C I T Y S E R V I C E
#
# -------------------------------------------------------------------
services.VelocityService.file.resource.loader.path =
/WEB-INF/templates/abc/vm,/WEB-INF/templates/vm
# ###################################################################
#
# J e t s p e e d R e s o u r c e s . p r o p e r t i e s :
#
# ###################################################################
[EMAIL PROTECTED]
#########################################
# Stylesheet. #
#########################################
#Use this to specify the HTML stylesheet
site.stylesheet=css/abcportal.css
#services.PortalToolkit.default.skin=ccportal-skin
services.PortalToolkit.default.skin=abcportal-skin
#########################################
# Registry Service #
#########################################
services.Registry.refreshRate = 60
#########################################
# Template Locator Service #
#########################################
# This parameter supports a comma separated list of directories
# Each directory is searched in order to find a template.
# This is useful for example, in defining application specific templates in a separate
structure from the jetspeed core templates
# Note this needs to be set in 3 places - for the jsp loader and vm loader in TR.p and
for the template locator in JR.p
services.TemplateLocator.templateRoot=/WEB-INF/templates/abc,/WEB-INF/templates
#########################################
# Portlet Usage Service #
#########################################
services.PortletStats.enabled = true
#########################################
# Customization #
#########################################
customizer.preview.enable = true
#########################################
# New User Registration mail support #
#########################################
automatic.logon.enable = true
#########################################
# Navigation Bar customization #
#########################################
# Top navigation bar
# topnav.enable - Display the left navigation bar
# topnav.vm - VM file name for the top nav, in templates/vm/navigations/html
# topnav.logo.file - file name of the logo relative to <jetspeed_home>. Do not use
with logo.url
# topnav.logo.url - URL of logo. Useful when using a common company logo that is on
a different server
# topnav.user_login.enable - Display login prompts on navigation bar. If false then
login nust be via login portlet
# topnav.user_creation.enable - Display "create user" prompts on navigation bar.
Requires topnav.user_login.enable=true
# topnav.my_pages.enable - Display list box of pages for current user.
topnav.enable= true
topnav.vm=top_default.jsp
topnav.logo.file=images/abcLogo.gif
topnav.user_login.enable=false
topnav.user_creation.enable=false
topnav.my_pages.enable=false
# Left Navigation bar
# leftnav.enable - Display the left navigation bar
# leftnav.vm - VM file name for the left nav, in templates/vm/navigations/html
# leftnav.width - Keep the left edge of the content from moving as the width of
the content varies
leftnav.enable=false
leftnav.vm=left.vm
leftnav.width=10%
# Bottom Navigation bar
# bottomnav.enable - Display the Bottom navigation bar
# bottomnav.vm - VM file name for the bottom nav, in
templates/vm/navigations/html
bottomnav.enable=true
bottomnav.vm=bottom-jportal.vm
#########################################
# Portal Page customization #
#########################################
# html page title text prefix - prepended to portal page title if defined.
portalpage.title_prefix=abc
# ###################################################################
#
# J e t s p e e d S e c u r i t y . p r o p e r t i e s :
#
# ###################################################################
# This is used by the SecurityService to make the password checking
# secure. When enabled, passwords are transformed by a one-way
# function into a sequence of bytes that is base64 encoded.
# It is impossible to guess the plain-text form of the password
# from the representation. When user logs in, the entered password
# is transformed the same way and then compared with stored value.
#
# Default: false
#
services.JetspeedSecurity.secure.passwords=false
# -------------------------------------------------------------------
#
# A D D I T I O N A L P R O P E R T I E S
#
# -------------------------------------------------------------------
# The full path name to an additional properties file. Properties in
# this file will be included in this property set. Duplicate name
# values will be replaced, so be careful.
#
# Default: none
# -------------------------------------------------------------------
include = TurbineResources.properties
Hope this helps,
Thanks,
Archana
>>> [EMAIL PROTECTED] 02/20/04 12:28PM >>>
I am having difficulties getting the properties overriding to work properly.
My web.xml is updated according to the instructions below and I know it is
reading the file. The problem is that no matter where I include the
TurbineResources.properties (at the top or bottom of my.properties), its
values always override the values in my.properties. This is exactly opposite
to what I want.
I thought that perhaps by including TurbineResources first and specifying my
values afterwards, the values in my.properties file would overwrite the
values in TurbineResources, but it is not so. The comment in the example
my.properties however implies that this is true:
# The full path name to an additional properties file. Properties in
# this file will be included in this property set. Duplicate name
# values will be replaced, so be careful.
The only way I could get Jetspeed to recognize my values is to comment out the
values in JetspeedResources (included by TurbineResources). Of course, this
seems to defeat the purpose of the custom properties file altogether.
I am using Jetspeed 1.4 final. Any ideas why this would happen or what I'm
doing wrong?
Thanks,
Brian
> Are you talking about the technique at
> http://jakarta.apache.org/jetspeed/site/override_props.html for overriding
> properties?
>
> >>Yeah this is the site about overriding property files and it works just
> >> fine.
--
=====
Brian Rowe (President, Chief Architect)
Cenozoa Corporation
3 East 28th Street, 9th Floor, New York 10016
646 536 3066
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]