Hi,
Can you show me the stack trace ?
Camel uses the FileSystemXmlApplicationContext to create the application
context form the fileApplicationContextUri.
You need make sure the uri can work for the FileSystemXmlApplicationContext.
Willem
Mick Knutson wrote:
What I want, it to use:
*
<fileApplicationContextUri>${project.build.directory}/test-classes/applicationContext-test.xml</fileApplicationContextUri>
*
Thus I can put this ctx in my src/test/resources and never jar them up at
build time. AND not manually omit them from the jar. I know I can do this,
but it seems cleaner to me to just put them as test resources instead.
But the above also does not work. I still get the file not found error for
some reason, even though the error depicts the Correct path.
---
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
---
On Sat, Aug 22, 2009 at 12:02 AM, Willem Jiang <willem.ji...@gmail.com>wrote:
Hi Mick,
camel maven plugin don't support to specify the class path application
context and the file application context at the same time.
Can you try to configure the plugin like this?
<applicationContextUri>META-INF/spring/camel-server-aop.xml;applicationContext-test.xml</applicationContextUri>
You may need to add the test-jar into the plugin's dependency.
Or you specify the exactly application context url files in the
<fileApplicationContextUri></fileApplicationContextUri>
Willem
Mick Knutson wrote:
I have the following declaration:
<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>
*
<!--<fileApplicationContextUri>${project.build.directory}/test-classes/applicationContext-test.xml</fileApplicationContextUri>-->
*
</configuration>
</plugin>
The fileApplicationContextUri does not get picked up, thus I commented it
out.
I am trying to have a test version, then be able to switch out a PROD
version in my war.
I also tried:
<applicationContextUri>META-INF/spring/*.xml;*${project.build.directory}/test-classes/applicationContext-test.xml*</applicationContextUri>
But that also did not get picked up.
---
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
---