Stephen McConnell wrote:
Now onto the real problem ... in you scenario your getting an exception
indicating that the a "test" container is not assembled. I have no
immediate idea what could be causing that but I'm updating my checkout
of fulcrum and I'll take a look.
Have identified two problems:
1. Not sure why but the maven setup we have in fulcrum is
resulting in merlin attempting to establish containers
relative to both target/classes and target/test-classes
and this is causing a conflict (which is not being
detected by merlin which is leading to the creation of
a second container of the same name that is not being
assembled). As far as the merlin side of this problem is
concerned I've registered the following JIRA issue:
http://nagoya.apache.org/jira/browse/RUNTIME-40
The solution to the problem is to add a merlin.properties
file into the configuration/impl directory containing
the following:
merlin.info = false
merlin.debug = false
merlin.audit = false
merlin.deployment = target/test-classes
merlin.override = conf/config.xml
The important line in the above is merlin.deployment value
which will ensure that only one container is declared.
2. Once the above is resolved a error was reported concerning
the configuration component requesting a context entry for
urn:avalon:home - however, the component had not declared
this - adding a @avalon.entry spec on the contextualize
method fixes this (see attached path).
3. Under 3.3 I'm getting a deployment timeout so I added the
following to the class level component info:
@avalon.attribute
key="urn:composition:deployment.timeout" value="0"
BUILD SUCCESSFUL
Total time: 24 seconds
Cheers, Steve.
--
|---------------------------------------|
| Magic by Merlin |
| Production by Avalon |
| |
| http://avalon.apache.org |
|---------------------------------------|
Index: configuration/impl/src/java/org/apache/fulcrum/configuration/DefaultConfigurationService.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-fulcrum/configuration/impl/src/java/org/apache/fulcrum/configuration/DefaultConfigurationService.java,v
retrieving revision 1.3
diff -u -r1.3 DefaultConfigurationService.java
--- configuration/impl/src/java/org/apache/fulcrum/configuration/DefaultConfigurationService.java 14 Feb 2004 14:22:00 -0000 1.3
+++ configuration/impl/src/java/org/apache/fulcrum/configuration/DefaultConfigurationService.java 29 Jun 2004 22:32:12 -0000
@@ -77,6 +77,7 @@
* @version $Id: DefaultConfigurationService.java,v 1.3 2004/02/14 14:22:00 epugh Exp $
* @avalon.component name="config" lifestyle="singleton"
* @avalon.service type="org.apache.commons.configuration.Configuration"
+ * @avalon.attribute key="urn:composition:deployment.timeout" value="0"
*/
public class DefaultConfigurationService
extends AbstractLogEnabled
@@ -485,6 +486,7 @@
/**
* @see org.apache.avalon.framework.context.Contextualizable
+ * @avalon.entry key="urn:avalon:home" type="java.io.File"
*/
public void contextualize(Context context) throws ContextException
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]