You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mk...@baselogic.com> on 2009/08/11 18:37:31 UTC

camel plugin issue using Spring context

I want to use a TEST version of my context with the camel run plugin and
tried this:

            <plugin>
                <groupId>org.apache.camel</groupId>
                <artifactId>camel-maven-plugin</artifactId>
                <version>${camel.version}</version>
                <configuration>

<applicationContextUri>META-INF/spring/camel-server-aop.xml</applicationContextUri>
                    *
<!--<applicationContextUri>${project.build.directory}/test-classes/applicationContext-test.xml</applicationContextUri>-->
*
                </configuration>
            </plugin>

Notice the commented line is what I want to use, but when I try that, I get
a FileNotFound error running the camel server but the file IS there in the
target DIR as I have verified this many times.

Here is the error:

*[myproject] INFO [org.apache.camel.spring.Main.main()]
XmlBeanDefinitionReader.loadBeanDefinitions(323) | Loading XML bean
definitions from class path reso
urce
[C:/tmp/services/table-service-su/target/test-classes/applicationContext-test.xml]
[myproject] INFO [org.apache.camel.spring.Main.main()]
MainSupport.doStop(239) | Apache Camel 2.0-M3 stopping
[myproject] ERROR [org.apache.camel.spring.Main.main()] MainSupport.run(117)
| Failed: org.springframework.beans.factory.BeanDefinitionStoreException:
IOEx
ception parsing XML document from class path resource
[C:/tmp/services/table-service-su/target/test-classes/applicationContext-test.xml];
nested exception
is java.io.FileNotFoundException: class path resource
[C:/tmp/services/table-service-su/target/test-classes/applicationContext-test.xml]
cannot be opened b
ecause it does not exist
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from class path resource
[C:/tmp/services/table-service-su
/target/test-classes/applicationContext-test.xml]; nested exception is
java.io.FileNotFoundException: class path resource
[C:/tmp/services/table-service-su
/target/test-classes/applicationContext-test.xml] cannot be opened because
it does not exist
*



---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---