citrusframework / citrusframework/citrus
citrus-context loaded twice
- Dominant language
- Java
- Stars
- 485
- Forks
- 155
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 6
Description
**Citrus Version** 2.3
Hello,
I am trying to run a simple CitrusXmlTest wrapped with TestNg test and using camel. The test is initiated with a Eclipse test ng plugin. In citrus-context xml I have definitions of beans that needs to be instantiated for test execution. Problem is that I see that the **beans are instantiated two times.** Some of them are of the type **citrus-http:server,** so during second instantiation the exception with binding to the already taken port occurs.
What to configure or where to look for in order to prevent the double instantiation.??
Relevant dependecies: citrus 2.3, citrus-camel: 2.3, camel - 2.24, spring libs: 4.1.7 / 4.1.6, jetty 9.2.11;
Interestingly test runs correct with following libs: citrus: 2.0 citrus-camel: 2.0, camel - 2.14, spring libs: 4.0.7, jetty 9.1.16;
Many thanks!
Contributor guide
Assessment
This issue has not been assessed yet.