Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: ECLIPSE-478
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: James Strachan
Reporter: Claus Ibsen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Fuse IDE

Create new unit test from camel-archetype-spring using fuse ide wizard, cause failure when running as junit test

Created: 06/Jan/12 12:53 PM   Updated: 29/Mar/12 10:31 AM
Component/s: None
Affects Version/s: 2.1.0
Fix Version/s: 2.1.0

Environment: 2.1.170


 Description  « Hide
Also if you do a mvn test from the command line

Tests in error:
testCamelRoute(foo.CamelContextXmlTest): Error creating bean with name 'template': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel-1': Invocation of init method failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'foo.CamelContextXmlTest$1': Unsatisfied dependency expressed through constructor argument with index 0 of type [foo.CamelContextXmlTest]: : No matching bean of type [foo.CamelContextXmlTest] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [foo.CamelContextXmlTest] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Claus Ibsen added a comment - 06/Jan/12 12:56 PM
Okay its the embedded route build. It works if you disable that.

Claus Ibsen added a comment - 06/Jan/12 12:58 PM
Its the <package> scan in the XML that causes this. As it detects the embedded anonymous RouteBuild class

Claus Ibsen added a comment - 08/Jan/12 04:02 PM
The archetypes has been fixed at Apache, need to sync to Fuse 2.9 and 2.8 branches.

Claus Ibsen added a comment - 14/Jan/12 02:10 PM
Synced to fuse camel 2.9 and 2.8 branches. So will be fixed when Fuse IDE uses the next Camel release.

Lars Heinemann added a comment - 24/Feb/12 08:27 AM
Claus,
is that fix already included in IDE? If yes could you close the issue?

Claus Ibsen added a comment - 24/Feb/12 10:56 AM
Lars.

James forgot to update the archetypes. Its still a problem with this version
<version>2.8.0-fuse-01-20</version>

However you should use this version or better
2.8.0-fuse-02-02/


Claus Ibsen added a comment - 24/Feb/12 10:57 AM
I just used 2.1.279

Lars Heinemann added a comment - 24/Feb/12 09:15 PM
assigned to James

Claus Ibsen added a comment - 03/Mar/12 08:56 AM
The latest build still have the old -01-20 release. We need to update to the latest
<version>2.8.0-fuse-02-05</version>

James Strachan added a comment - 29/Mar/12 10:31 AM
Seems to be fixed now we've the new archetypes