JRebel 5.0.0 (201206080930)
戦争にアセンブルし、Tomcat 7にデプロイするマルチモジュールmavenプロジェクトがあります。プロジェクトのJRebel-agentを有効にし(rebel.xmlが生成されます)、エージェントでTomcatを起動する場合(Tomcat JVMパラメータに次の行を追加することにより):
-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"
または、開いたダイアログで「JRebel エージェントで起動」ボタンを押す) Spring 例外が発生します
org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.smile.AccountHandler] is defined: expected single matching bean but found 2: [accountHandlerImpl, testAccountHandler]
ここでの主なことtestAccountHandler
は、tests ディレクトリからのものです。JRebel エージェントがなくても、すべて問題なく動作します。
削除中
<dir name="D:/path/to/sources/target/test-classes">
</dir>
からrebel.xml
は役に立ちませんでした