-
15. Re: Trying to Bride MSMQ - > ACTIVEMQ?
janstey Jul 22, 2009 2:03 PM (in response to aboyz)There is no such thing as a camel-parent-2.x-fuse-SNAPSHOT.jar. What were you trying to build when this happened and what was the full error message?
Cheers,
Jon
-
16. Re: Trying to Bride MSMQ - > ACTIVEMQ?
aboyz Jul 22, 2009 2:06 PM (in response to janstey)I'm trying to add this dependency into my pom.xml
Using camel-msmq
To use this module you need to use the FUSE Mediation Router distribution. Or you could just add the following to your pom.xml, substituting the version number for the latest & greatest release.
-
17. Re: Trying to Bride MSMQ - > ACTIVEMQ?
janstey Jul 22, 2009 2:16 PM (in response to aboyz)Oh, that was definitely a typo I've fixed up the docs at http://cwiki.apache.org/confluence/display/CAMEL/msmq
You should add the following dependency instead
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-msmq</artifactId> <version>1.6.1.1-fuse</version> </dependency>
-
18. Re: Trying to Bride MSMQ - > ACTIVEMQ?
aboyz Jul 22, 2009 8:49 PM (in response to janstey)janstey,
That was it.!! thanks.
I did a mvn clean; mvn build; mvn install; all sucessful, . I think i need to add the maven-camel-plugin in the pom.xml file. But what is the correct syntax to use? I'm using
When i try to run this
when i try to run the mvn camel:test its giving me this error.
C:\camel-fuse-trunk\components\camel-msmq\src\test\java\org\apache\camel\component\msmq\MsmqSendReceiveTest.java
I'm getting this error..
Searching repository for plugin with prefix: 'camel'.
The plugin 'org.apache.maven.plugins:maven-camel-plugin' does not exist or no valid version could be found
For more information, run Maven with the -e switch
Finished at: Wed Jul 22 17:48:18 PDT 2009
Edited by: aboyz on Jul 23, 2009 12:46 AM
-
19. Re: Trying to Bride MSMQ - > ACTIVEMQ?
janstey Jul 23, 2009 7:54 AM (in response to aboyz)There is no such goal as "test" for the camel-maven-plugin. See the possible goals here http://camel.apache.org/camel-maven-plugin.html Are you just trying to run the tests? If you are running Windows XP the tests will be executed when you run
mvn clean test
But if you are on Vista or earlier versions of win32 (not tested yet) you can manually trigger the tests with
mvn clean test -Pmsmq
-
20. Re: Trying to Bride MSMQ - > ACTIVEMQ?
aboyz Jul 23, 2009 12:53 PM (in response to janstey)I'm sorry, I mistyped.
I can do a mvn clean and mvn build,
But when I do a mvn camel:run
that is the error i'm getting.. sorry for the confusion..
Seem like its complaining about a camel maven plugin..
-
21. Re: Trying to Bridge MSMQ - > ACTIVEMQ?
janstey Jul 23, 2009 1:10 PM (in response to aboyz)The camel-maven-plugin loads up and runs any routes you have defined in your application. If you're trying to run this plugin in the camel-msmq component directory, it won't work.
Any way, if you still want to use this plugin, you will need to define it in your pom
<!-- Allows the routes to be run via 'mvn camel:run' --> <plugin> <groupId>org.apache.camel</groupId> <artifactId>camel-maven-plugin</artifactId> <version>1.6.1.0-fuse</version> </plugin>
and ensure that you have the FUSE plugin maven repo defined
<pluginRepositories> <pluginRepository> <id>open.iona.m2</id> <name>IONA Open Source Community Release Repository</name> <url>http://repo.open.iona.com/maven2</url> </pluginRepository> </pluginRepositories>
Hope this helps.
Cheers,
Jon
-
22. Re: Trying to Bridge MSMQ - > ACTIVEMQ?
aboyz Jul 23, 2009 4:50 PM (in response to janstey)Jon,
That helped.. Now i'm getting a different error.
task-segment: camel:run
resources:resources {execution: default-resources}
Using 'UTF-8' encoding to copy filtered resources.
compiler:compile {execution: default-compile}
Nothing to compile - all classes are up to date
resources:testResources {execution: default-testResources}
Using 'UTF-8' encoding to copy filtered resources.
compiler:testCompile {execution: default-testCompile}
Nothing to compile - all classes are up to date
snapshot org.apache.camel:camel-spring-javaconfig:2.x-fuse-SNAPSHOT: checking for updates from open.iona.m2
snapshot org.apache.camel:camel-spring-javaconfig:2.x-fuse-SNAPSHOT: checking for updates from open.iona.m2-snapshot
snapshot org.apache.camel:camel-spring-javaconfig:2.x-fuse-SNAPSHOT: checking for updates from apache.snapshots
snapshot org.apache.camel:components:2.x-fuse-SNAPSHOT: checking for updates from camel.internal.maven.repository
snapshot org.apache.camel:components:2.x-fuse-SNAPSHOT: checking for updates from spring.maven.milestone
snapshot org.apache.camel:components:2.x-fuse-SNAPSHOT: checking for updates from spring.maven.release
snapshot org.apache.camel:components:2.x-fuse-SNAPSHOT: checking for updates from com.springsource.repository.bundles.external
snapshot org.apache.camel:components:2.x-fuse-SNAPSHOT: checking for updates from com.springsource.repository.bundles.snapshot
snapshot org.apache.camel:components:2.x-fuse-SNAPSHOT: checking for updates from open.iona.m2
snapshot org.apache.camel:components:2.x-fuse-SNAPSHOT: checking for updates from open.iona.m2-snapshot
snapshot org.apache.camel:components:2.x-fuse-SNAPSHOT: checking for updates from apache.snapshots
camel:run {execution: default-cli}
Classpath = file:/C:/camel-fuse-trunk/components/camel-msmq/target/classes/, file:/C:/Users/kimw/.m2/repository/org/apache/camel/camel-core/2.x-fuse-SNAPSHOT/camel-core-2.x-fuse-SNAPSHOT.jar, file:/C:/Users/kimw/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar, file:/C:/Users/kimw/.m2/repository/org/apache/camel/camel-spring/2.x-fuse-SNAPSHOT/camel-spring-2.x-fuse-SNAPSHOT.jar, file:/C:/Users/kimw/.m2/repository/org/springframework/spring-core/2.5.6/spring-core-2.5.6.jar, file:/C:/Users/kimw/.m2/repository/org/springframework/spring-context/2.5.6/spring-context-2.5.6.jar, file:/C:/Users/kimw/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/C:/Users/kimw/.m2/repository/org/springframework/spring-beans/2.5.6/spring-beans-2.5.6.jar, file:/C:/Users/kimw/.m2/repository/org/springframework/spring-tx/2.5.6/spring-tx-2.5.6.jar, file:/C:/Users/kimw/.m2/repository/org/springframework/spring-aop/2.5.6/spring-aop-2.5.6.jar
Jul 23, 2009 1:50:28 PM org.apache.camel.impl.MainSupport doStart
INFO: Apache Camel 2.x-fuse-SNAPSHOT starting
Jul 23, 2009 1:50:28 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1b9d4d8: display name ; startup date ; root of context hierarchy
Jul 23, 2009 1:50:28 PM org.apache.camel.impl.MainSupport doStop
INFO: Apache Camel 2.x-fuse-SNAPSHOT stopping
Jul 23, 2009 1:50:28 PM org.apache.camel.impl.MainSupport run
SEVERE: Failed: org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern ; nested exception is java.io.FileNotFoundException: class path resource cannot be resolved to URL because it does not exist
org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern ; nested exception is java.io.FileNotFoundException: class path resource 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:113)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:219)
at org.apache.camel.spring.Main.doStart(Main.java:173)
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
at org.apache.camel.impl.MainSupport.run(MainSupport.java:113)
at org.apache.camel.impl.MainSupport.run(MainSupport.java:270)
at org.apache.camel.spring.Main.main(Main.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:415)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException: class path resource cannot be resolved to URL because it does not exist
at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:163)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.isJarResource(PathMatchingResourcePatternResolver.java:406)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:338)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:276)
at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1018)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:177)
... 21 more
Finished at: Thu Jul 23 13:50:28 PDT 2009
Jul 23, 2009 1:50:28 PM org.apache.camel.spring.Main$HangupInterceptor run
INFO: Recieved hang up - stopping the main instance.
-
23. Re: Trying to Bridge MSMQ - > ACTIVEMQ?
janstey Jul 24, 2009 8:54 AM (in response to aboyz)Hi,
Again, it looks like you are trying to execute camel:run in the camel-msmq directory - this won't work. The camel-maven-plugin loads up and runs any routes you have defined in your application (ex. routes in src/main/resources/META-INF/spring/camel-context.xml). The camel-msmq directory contains the component and unit tests only - not an application you can run.
Do you want to build an application that uses camel-msmq or are you just trying to run the unit tests of camel-msmq?
FYI the Getting Started ? FUSE Mediation Router guide gives some great tips on starting a Camel application.
Cheers,
Jon
-
24. Re: Trying to Bridge MSMQ - > ACTIVEMQ?
arun.addepalli Sep 10, 2009 3:15 PM (in response to janstey)how can i configure a forwarding bridge from AMQ5.2 to MSMQ (not the other way round)?
note: we do not have any control over the system running MSMQ and what ever we can do is that on the AMQ system.
Please help!