The problem is solved !
The reason this didn't work was caused by the following code:
/**
* Initialises the registry
*/
private static synchronized void init(String fileName)
{
appLog.debug(null, "init", "Initialising registry [" + fileName +
"]");
context = new ClassPathXmlApplicationContext(fileName);
initialised = true;
if (fileName.equals(CONFIG_XML_UNITTEST))
{
String[] config = {"spring-unittest-beans.xml",
"spring-unittest-databases.xml"};
context = new ClassPathXmlApplicationContext(config);
}
}
For CONFIG_XML_UNITTEST you can't use spring-unittest-*, but you have to
fully qualify the names of the xml files which have to be used.
This has changed from Maven 2.0.9 to 2.1.0 and higher !!
Solved!
Wayne Fay wrote:
>
>> Something went wrong
>> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
>> named 'environmentManager' is defined
>> at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:504)
>
> Seems like a reasonable question for a Spring forum, or perhaps ask
> the people behind itblast? Is "environmentManager" a common Spring
> bean and you're just missing some configuration?
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://old.nabble.com/What-is-a-good-alternative-for-maven-itblast-plugin---tp28772452p28802352.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]