with .setRoleManager( myRoleManager ). The code for FortressRoleManager is pretty
straightforward (last time I looked it contained only these default roles).
- Filip
Dominique Paquin wrote:
Hi all
After having continued searching, I found out that
FortressRoleManager.initialize() makes some calls to the
addRole(with_the_guilty_absent_classes) methods, inherited from
AbstractRoleManager().
It would seem that I am stuck with these calls as they are hard coded directly in the source code and the addRole() catches the ClassLoader.loadClass() call and output the error(that I don't want) to standard output.
What I did is just a small redirect of the standard output to a file for the duration of the call to new DefaultContainerManager(...). It is not perfect, but at least they are not displayed at the console.
Cya all. Dominique
Skipping.-----Original Message----- From: Dominique Paquin [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 11:32 AM To: 'Avalon framework users' Subject: Removal of console messages about absent classes.
Here is a quick one (At least I hope so),
I have these messages appearing in my console each time I call * new DefaultContainerManager(...)
WARN 2003-09-30 11:25:14.796 [fortress.system.roles.de]: Unable to
load class org.apache.avalon.excalibur.datasource.JdbcDataSource.
Skipping.
WARN 2003-09-30 11:25:14.828 [fortress.system.roles.de]: Unable to
load class org.apache.avalon.excalibur.datasource.J2eeDataSource.
Skipping.
WARN 2003-09-30 11:25:14.843 [fortress.system.roles.de]: Unable to
load class org.apache.avalon.excalibur.datasource.InformixDataSource.
Skipping.
WARN 2003-09-30 11:25:14.843 [fortress.system.roles.de]: Unable to
load class org.apache.avalon.excalibur.monitor.ActiveMonitor.
Skipping.WARN 2003-09-30 11:25:14.843 [fortress.system.roles.de]: Unable to
load class org.apache.avalon.excalibur.monitor.PassiveMonitor.
Skipping.WARN 2003-09-30 11:25:14.843 [fortress.system.roles.de]: Unable to
load class org.apache.excalibur.xml.xpath.XPathProcessorImpl.
Skipping.WARN 2003-09-30 11:25:14.843 [fortress.system.roles.de]: Unable to
load class org.apache.excalibur.xml.xpath.JaxenProcessorImpl.
WARN 2003-09-30 11:25:14.875 [fortress.system.roles.de]: Unable to load class org.apache.excalibur.xml.impl.JaxpParser. Skipping. WARN 2003-09-30 11:25:14.875 [fortress.system.roles.de]: Unable to load class org.apache.excalibur.xml.impl.XercesParser. Skipping.
I would like to get rid of them from my console messages at startup. I have no need of these packages. I use the Excalibur-fortress-complete-1.0.jar with the avalon-framework.jar.
Could someone help me with removing these messages from the console without adding the packages required in my build path.
Thanks
Dominique Paquin.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]