Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camel context won't run without tests in eclipse kepler #79

Closed
ronnyaerts opened this issue Mar 31, 2014 · 5 comments
Closed

camel context won't run without tests in eclipse kepler #79

ronnyaerts opened this issue Mar 31, 2014 · 5 comments

Comments

@ronnyaerts
Copy link

I updated my fuseide source files from github (commit of 26/06/2014 16:31:06), builded the complete project and updated the plugins in kepler so I have pom version 7.3.0-SNAPSHOT.

My camel context run fine when run with tests but fail without tests with following error:
[INFO] Starting Camel ...
2014-03-31 15:42:59.853 [INFO ] [org.apache.camel.main.MainSupport] Apache Camel 2.12.3 starting
2014-03-31 15:42:59.946 [INFO ] [org.springframework.context.support.ClassPathXmlApplicationContext] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@4c9d7b55: startup date [Mon Mar 31 15:42:59 CEST 2014]; root of context hierarchy
2014-03-31 15:43:00.017 [INFO ] [org.apache.camel.main.MainSupport] Apache Camel 2.12.3 stopping
[ERROR] *************************************
[ERROR] Error occurred while running main from: org.apache.camel.spring.Main
[ERROR]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:487)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [META-INF/spring/.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/spring/] cannot be resolved to URL because it does not exist
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:221)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:243)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:186)
at org.apache.camel.spring.Main.doStart(Main.java:140)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
at org.apache.camel.main.MainSupport.run(MainSupport.java:148)
at org.apache.camel.main.MainSupport.run(MainSupport.java:352)
at org.apache.camel.spring.Main.main(Main.java:73)
... 6 more
Caused by: java.io.FileNotFoundException: class path resource [META-INF/spring/] cannot be resolved to URL because it does not exist
at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:177)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.isJarResource(PathMatchingResourcePatternResolver.java:411)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:340)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:279)
at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1269)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:208)
... 21 more
[ERROR] *
***********************************
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

I manually created an empty src/main/resources/META-INF/spring folder but this does not help. The META-INF/spring folder does not seem to be created in my target.

I have a "war" project and use the java 7 jdk to build.

@lhein
Copy link
Contributor

lhein commented Apr 1, 2014

Can you send me your project? (please delete all secret stuff you don't want to share)

@ronnyaerts
Copy link
Author

Hallo Lars,

See attachment.

vriendelijke groeten,
Ronny Aertsmailto:ronny.aerts@intris.be – Intris nv – Wapenstilstandlaan 47, 2600 Berchem, België
R&D Integration Architect
Prince II certified
Tel: +32-3-326.50.75

From: Lars Heinemann [mailto:notifications@github.com]
Sent: dinsdag 1 april 2014 9:27
To: fusesource/fuseide
Cc: Ronny Aerts
Subject: Re: [fuseide] camel context won't run without tests in eclipse kepler (#79)

Can you send me your project? (please delete all secret stuff your don't want to share)


Reply to this email directly or view it on GitHubhttps://github.com//issues/79#issuecomment-39177603.

Intris nv
Wapenstilstandlaan 47
B-2600 Berchem
Tel. +32 3 326 50 75
Fax +32 3 326 42 23
www.intris.behttp://www.intris.be/

DISCLAIMER
This is an e-mail from Intris. The information contained in this communication is intended solely for use by the individual or entity to whom it is addressed.
Use of this communication by others is prohibited. If the e-mail message was sent to you by mistake, please notify support@intris.bemailto:support@intris.be, destroy it without reading, using, copying or disclosing its contents to any other person.
We accept no liability for damage related to data and/or documents which are communicated by electronic mail.

@lhein
Copy link
Contributor

lhein commented Apr 1, 2014

Seems I can't see your attachment. Please send it to lhein @at@ apache.org.

@lhein
Copy link
Contributor

lhein commented Apr 23, 2014

Created an issue at the JBoss issue tracker:

https://issues.jboss.org/browse/ECLIPSE-1077

Please follow that one.

Closing this issue now.

@lhein lhein closed this as completed Apr 23, 2014
@lhein
Copy link
Contributor

lhein commented Jul 11, 2014

did a change on MASTER branch which lets you use the jetty plugin to run your project. Though your project seems to have a wrong setup in the pom. You should create a new project from the camel-web archetype and adapt that to fit your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants