JRebel 5.0.0 (201206080930)
Have multimodule maven project, which is assembling into war and deploying on Tomcat 7. When I am enabling JRebel-agent for projets(rebel.xml is generated) and starting Tomcat with agent(either by adding follow lines to the Tomcat JVM Parameters:
-Drebel.properties="..\.jrebel\jrebel.properties"
-javaagent:"D:\eclipse\plugins\org.zeroturnaround.eclipse.embedder_5.0.0.RELEASE-201206121145\jrebel\jrebel.jar"
-Drebel.workspace.path="D:\eclipse"
or pressing "Launch with JRebel agent" button in opened dialog) I am getting Spring exception
org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.smile.AccountHandler] is defined: expected single matching bean but found 2: [accountHandlerImpl, testAccountHandler]
The main thing here, is that testAccountHandler
is from tests directory.
Without JRebel agent everything is work good.
Deleting
<dir name="D:/path/to/sources/target/test-classes">
</dir>
from rebel.xml
did not help