solved.
It was package names that weren't being located, from my roles file. a look into the jar gave me the correct class for the thread safe handlers.

- Robert

Robert McIntosh wrote:

I'm starting my journey down the path of going from ECM to Fortress, and naturally I'm running into a few problems.
The 'startup' code looks like:

final FortressConfig config = new FortressConfig();
config.setContainerClass( "org.apache.avalon.fortress.impl.DefaultContainer" );
config.setContextDirectory( "./" );
config.setWorkDirectory( "./" );
config.setContainerConfiguration( "resource://Foundation.xconf" );
config.setLoggerManagerConfiguration( "resource://ContainerLog.xlog" );
config.setRoleManagerConfiguration( "resource://FoundationRoles.xconf" );
//config.setInstrumentManagerConfiguration( "resource://org/apache/avalon/fortress/examples/swing/SwingContainer.instruments" );

// Get the root container initialized
ContainerManager cm = new DefaultContainerManager( config.getContext() );
ContainerUtil.initialize( cm );

Which I just cut and pasted from one of the examples and plugged in my own config files. Now, the container can't find, I'm guessing by the exception, the roles config and the app config.
Here is what fortress says:
Could not copy context entry: org.apache.avalon.fortress.RoleManager. Ignoring exception.
org.apache.avalon.framework.context.ContextException: Unable to resolve context key: org.apache.avalon.fortress.RoleManager

And:
ContextException: Unable to resolve context key: impl.roleManager.config

And:
ContextException: Unable to resolve context key: impl.parameters

All of which leads to the ConfigurationException of:
ConfigurationException: No class found matching configuration name [name: business-object-service, location: null:5:59]

I'm guessing that my FoundationRoles.xconf and Foundation.xconf files are not being found? I put them in the class path, but not sure if that is what is required by the 'resource://' prefix.

Thoughts?
Thanks, Robert


---------------------------------------------------------------------
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]

Reply via email to