camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eamonn <otool...@scss.tcd.ie>
Subject class path resource [META-INF/spring/] cannot be resolved
Date Wed, 15 Aug 2012 11:21:36 GMT
Hi,

I'm getting a error when i try to run the camel context for my application.
I'm running it on a Ubuntu VM. It was working fine when we made the machine
image a few months ago, but now that we have gone back to it we get an
error. Any suggestions or help would be greatly appreciated. 

Full stack copied below.

Thanks,
Eamonn


[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Transform Prototype Local
[INFO]    task-segment: [compile, camel:run]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] Preparing camel:run
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/transformer/TransformPrototype-sec/local/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [camel:run {execution: default-cli}]
[INFO] Classpath =
[file:/home/transformer/TransformPrototype-sec/local/target/classes/,
file:/home/transformer/.m2/repository/com/transformprototype/TransformPrototypeSecurityLibrary/1.0/TransformPrototypeSecurityLibrary-1.0.jar,
file:/home/transformer/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar,
file:/home/transformer/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar,
file:/home/transformer/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar,
file:/home/transformer/.m2/repository/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar,
file:/home/transformer/.m2/repository/org/apache/santuario/xmlsec/1.5.0/xmlsec-1.5.0.jar,
file:/home/transformer/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar,
file:/home/transformer/.m2/repository/org/apache/camel/camel-crypto/2.8.0/camel-crypto-2.8.0.jar,
file:/home/transformer/.m2/repository/org/apache/camel/camel-core/2.8.0/camel-core-2.8.0.jar,
file:/home/transformer/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar,
file:/home/transformer/.m2/repository/org/fusesource/commonman/commons-management/1.0/commons-management-1.0.jar,
file:/home/transformer/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar,
file:/home/transformer/.m2/repository/org/apache/maven/surefire/surefire-api/2.12/surefire-api-2.12.jar,
file:/home/transformer/.m2/repository/junit/junit-dep/4.10/junit-dep-4.10.jar,
file:/home/transformer/.m2/repository/org/jmock/jmock-junit4/2.6.0-RC2/jmock-junit4-2.6.0-RC2.jar,
file:/home/transformer/.m2/repository/org/jmock/jmock/2.6.0-RC2/jmock-2.6.0-RC2.jar,
file:/home/transformer/.m2/repository/org/hamcrest/hamcrest-core/1.3.RC2/hamcrest-core-1.3.RC2.jar,
file:/home/transformer/.m2/repository/org/hamcrest/hamcrest-library/1.3.RC2/hamcrest-library-1.3.RC2.jar,
file:/home/transformer/.m2/repository/org/apache/camel/camel-spring/2.8.0/camel-spring-2.8.0.jar,
file:/home/transformer/.m2/repository/org/springframework/spring-context/3.0.5.RELEASE/spring-context-3.0.5.RELEASE.jar,
file:/home/transformer/.m2/repository/org/springframework/spring-aop/3.0.5.RELEASE/spring-aop-3.0.5.RELEASE.jar,
file:/home/transformer/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar,
file:/home/transformer/.m2/repository/org/springframework/spring-asm/3.0.5.RELEASE/spring-asm-3.0.5.RELEASE.jar,
file:/home/transformer/.m2/repository/org/springframework/spring-beans/3.0.5.RELEASE/spring-beans-3.0.5.RELEASE.jar,
file:/home/transformer/.m2/repository/org/springframework/spring-core/3.0.5.RELEASE/spring-core-3.0.5.RELEASE.jar,
file:/home/transformer/.m2/repository/org/springframework/spring-expression/3.0.5.RELEASE/spring-expression-3.0.5.RELEASE.jar,
file:/home/transformer/.m2/repository/org/springframework/spring-tx/3.0.5.RELEASE/spring-tx-3.0.5.RELEASE.jar,
file:/home/transformer/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar,
file:/home/transformer/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar,
file:/home/transformer/.m2/repository/org/apache/camel/camel-http/2.8.0/camel-http-2.8.0.jar,
file:/home/transformer/.m2/repository/org/apache/geronimo/specs/geronimo-servlet_2.4_spec/1.1.1/geronimo-servlet_2.4_spec-1.1.1.jar,
file:/home/transformer/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar,
file:/home/transformer/.m2/repository/org/apache/camel/camel-servlet/2.8.0/camel-servlet-2.8.0.jar,
file:/home/transformer/.m2/repository/org/apache/camel/camel-ftp/2.8.0/camel-ftp-2.8.0.jar,
file:/home/transformer/.m2/repository/com/jcraft/jsch/0.1.44-1/jsch-0.1.44-1.jar,
file:/home/transformer/.m2/repository/commons-net/commons-net/2.2/commons-net-2.2.jar,
file:/home/transformer/.m2/repository/org/apache/camel/camel-mail/2.8.0/camel-mail-2.8.0.jar,
file:/home/transformer/.m2/repository/org/springframework/spring-context-support/3.0.5.RELEASE/spring-context-support-3.0.5.RELEASE.jar,
file:/home/transformer/.m2/repository/javax/mail/mail/1.4.4/mail-1.4.4.jar,
file:/home/transformer/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar,
file:/home/transformer/.m2/repository/org/springframework/spring-web/3.0.5.RELEASE/spring-web-3.0.5.RELEASE.jar,
file:/usr/lib/jvm/default-java/lib/tools.jar]
*************************************
Error occurred while running main from: org.apache.camel.spring.Main
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:616)
	at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:415)
	at java.lang.Thread.run(Thread.java:636)
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:190)
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
	at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:126)
	at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:92)
	at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
	at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
	at
org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:185)
	at org.apache.camel.spring.Main.doStart(Main.java:139)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)
	at org.apache.camel.impl.MainSupport.run(MainSupport.java:136)
	at org.apache.camel.impl.MainSupport.run(MainSupport.java:322)
	at org.apache.camel.spring.Main.main(Main.java:72)
	... 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:179)
	at
org.springframework.core.io.support.PathMatchingResourcePatternResolver.isJarResource(PathMatchingResourcePatternResolver.java:413)
	at
org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:342)
	at
org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:280)
	at
org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1227)
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:177)
	... 22 more
*************************************
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] 

class path resource [META-INF/spring/] cannot be resolved to URL because it
does not exist
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Aug 15 12:21:31 IST 2012
[INFO] Final Memory: 25M/61M
[INFO]
------------------------------------------------------------------------




--
View this message in context: http://camel.465427.n5.nabble.com/class-path-resource-META-INF-spring-cannot-be-resolved-tp5717378.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message