You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (JIRA)" <se...@james.apache.org> on 2010/01/23 12:35:17 UTC
[jira] Commented: (JAMES-932) James 'initialize' reports deprecated
config
[ https://issues.apache.org/jira/browse/JAMES-932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804071#action_12804071 ]
Norman Maurer commented on JAMES-932:
-------------------------------------
I think thats not a problem anymore because we use commons-configuration now
> James 'initialize' reports deprecated config <usernames> <servernames>
> ----------------------------------------------------------------------
>
> Key: JAMES-932
> URL: https://issues.apache.org/jira/browse/JAMES-932
> Project: JAMES Server
> Issue Type: Bug
> Components: James Core
> Affects Versions: Trunk
> Environment: http://svn.apache.org/repos/asf/james/server/trunk
> Reporter: Mark DeBusschere
> Assignee: Norman Maurer
> Priority: Trivial
> Fix For: 3.0-M1
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> During start log messages such as
> <usernames> parameter in James block is deprecated. Please configure this data in UsersRepository block: configuration injected for backward compatibility
> and
> <servernames> parameter in James block is deprecated. Please configure this data in domainlist block: configuration injected for backward compatibility
> The code in org.apache.james.James.initialize()
> uses the following test conditions
> Configuration userNamesConf = conf.getChild("usernames");
> if (userNamesConf != null) { ..}
> Configuration serverConf = conf.getChild("servernames");
> if (serverConf != null) { .. }
> The javadocs for org.apache.avalon.framework.configuration.Configuration state
> a test for null should use getChild(String, boolean)
> The current james-config.xml has these listed as deprecated and remd out.
> For this test condition, the method should return null.
> I believe the following would be correct for this situation.
> userNamesConf = conf.getChild("usernames",false);
> and
> Configuration serverConf = conf.getChild("servernames", false);
> The following could be an issue, but they are still valid in james-config.xml.
> virtualHostingConfig = conf.getChild("enableVirtualHosting");
> defaultDomainConfig = conf.getChild("defaultDomain");
> helloNameConfig = conf.getChild("helloName");
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org