Re: JBoss 5.1.0, Camel, Spring, Servlet endpoint - Anyone succeded?

2011-06-17 Thread Jean-Baptiste Onofré
Hi Don, Could you try the following: 1/ in your JBoss server directory (for instance server/default), go to deployers/jbossweb.deployer 2/ edit META-INF/war-deployers-jboss-beans.xml 3/ search for a bean named WarClassLoaderDeployer 4/ add org.slf4j in the filteredPackages property Regards JB

Re: JBoss 5.1.0, Camel, Spring, Servlet endpoint - Anyone succeded?

2011-06-17 Thread Don Doffe
Thank you for your prompt answer. I have seen the link and tried to implement this. I did not manage to fix it. Recompiling is out of question as it goes against some of the internal requirements I need to satisfy. -- View this message in context: http://camel.465427.n5.nabble.com/JBoss-5-1-0

Re: JBoss 5.1.0, Camel, Spring, Servlet endpoint - Anyone succeded?

2011-06-17 Thread Taariq Levack
Hi I haven't used jboss in some time now and none of these components together yet. I just want to point out that getting slf4j to work in an app server that ships a different version of slf4j takes a little bit of fiddling. What works on glassfish is to exclude slf4j in maven and add the jars

JBoss 5.1.0, Camel, Spring, Servlet endpoint - Anyone succeded?

2011-06-17 Thread Don Doffe
Hi, Just wanted to double check if anyone is actually running Camel in JBoss 5.1.0 using Spring DSL and servlet endpoints. I have an opportunity to introduce camel as an integration technology used in our corporation but I'm having troubles with the simplest scenario (albeit the real one). JBoss

Re: JBoss 5.1.0 & Camel 2.7.0 - SLF4J version difference?

2011-06-17 Thread Don Doffe
Yes, Maven. The issue is that camel is compiled expecting SLF4J api v 1.6.1. The one provided with JBoss is 1.5.8. So when Camel runs it detects a mismatch between expected class version and provided and fails. So excluding the dependency is not an option unless I recompile the Camel. -- View

Re: JBoss 5.1.0 & Camel 2.7.0 - SLF4J version difference?

2011-06-17 Thread Willem Jiang
How did you create the WAR? If you are using maven, it's easy to exclude the SLF4J api dependency from camel. On 6/17/11 8:44 PM, Don Doffe wrote: At this moment I'm playing with WAR. Would you be so kind to point to instruction how to define this for WAR? -- View this message in context: h

Re: need help on reading csv using camel bindy

2011-06-17 Thread Claus Ibsen
On Mon, Jun 13, 2011 at 5:07 PM, sumatheja wrote: > Hi, >    I'm using camel bindy to read a csv file. I have a java bean declared > with fields corresponding to each csv value (using @Datafield ). However > when i have lesser fields in csv than the fields specified in bean i get the > following e

Re: Camel FTP

2011-06-17 Thread Claus Ibsen
On Fri, Jun 17, 2011 at 5:33 PM, preben wrote: > one of the ways is to enable idempotentRepository. See eg. > http://stackoverflow.com/questions/5708425/apache-camel-ftp-consumer-loads-the-same-files-again-and-again > > You can also alternative delete / move the files after you have downloaded th

Re: choose the 1st from two(many) Search-responses

2011-06-17 Thread Claus Ibsen
On Thu, Jun 16, 2011 at 6:53 PM, boday wrote: > I think you are looking for the  http://camel.apache.org/scatter-gather.html > scatter-gather  pattern.  If you use the proper > http://camel.apache.org/aggregator2.html aggregation strategy > (completionSize=1, etc), this should work for you... > >

Re: Camel FTP

2011-06-17 Thread preben
one of the ways is to enable idempotentRepository. See eg. http://stackoverflow.com/questions/5708425/apache-camel-ftp-consumer-loads-the-same-files-again-and-again -- View this message in context: http://camel.465427.n5.nabble.com/Camel-FTP-tp4498015p4499124.html Sent from the Camel - Users mai

Re: JBoss 5.1.0 & Camel 2.7.0 - SLF4J version difference?

2011-06-17 Thread Don Doffe
It seems not to work, as the camel has been compiled with a different class version, thus when supplied with the older library it simply fails: Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILog

Re: JBoss 5.1.0 & Camel 2.7.0 - SLF4J version difference?

2011-06-17 Thread Willem Jiang
You can exclude the dependency of SLF4j from camel-core, and override the version with JBoss one. On 6/17/11 8:34 PM, Don Doffe wrote: When deployed with the default dependencies provided by the archetype it fails with duplicate binding for SLF4J. If the bindings are reconfigured to use the JB

Re: JBoss 5.1.0 & Camel 2.7.0 - SLF4J version difference?

2011-06-17 Thread Don Doffe
At this moment I'm playing with WAR. Would you be so kind to point to instruction how to define this for WAR? -- View this message in context: http://camel.465427.n5.nabble.com/JBoss-5-1-0-Camel-2-7-0-SLF4J-version-difference-tp4498593p4498620.html Sent from the Camel - Users mailing list archiv

Re: JBoss 5.1.0 & Camel 2.7.0 - SLF4J version difference?

2011-06-17 Thread Jean-Baptiste Onofré
Hi Don, did you try to define the isolated classloader (in the deploy/ear-deployer.xml if you package your war into an ear) and use JBossWebloader (in deploy/jboss-web.deployer/META-INF/jboss-service.xml) ? Regards JB On 06/17/2011 02:34 PM, Don Doffe wrote: Thank you for the help I got bef

JBoss 5.1.0 & Camel 2.7.0 - SLF4J version difference?

2011-06-17 Thread Don Doffe
Thank you for the help I got before. I'm still having trouble deploying the camel .war into JBoss. This time it is JBoss Logging binding for slf4j. When deployed with the default dependencies provided by the archetype it fails with duplicate binding for SLF4J. If the bindings are reconfigured to

Re: Camel, JBoss, Failed to load type converters

2011-06-17 Thread Claus Ibsen
Hi There is a FAQ about running in JBoss http://camel.apache.org/how-do-i-run-activemq-and-camel-in-jboss.html On Fri, Jun 17, 2011 at 12:58 PM, Don Doffe wrote: > Hi, > > I'm prototyping a project. Works fine in jetty and tomcat. > > Having trouble with deploying to JBoss 5.1.0: > > org.apache

Camel, JBoss, Failed to load type converters

2011-06-17 Thread Don Doffe
Hi, I'm prototyping a project. Works fine in jetty and tomcat. Having trouble with deploying to JBoss 5.1.0: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following

Re: Camel CXF & Basic HTTP Authentication

2011-06-17 Thread Christian Schneider
I have written an example of using spring security together with camel cxf to do basic authentication and role based authorization using annotations. The example shows how to achieve this for tomcat and osgi (Karaf). https://github.com/Talend/tif/tree/master/examples/spring-security Christian

Re: Some grief with HTTP + Exchange.ACCEPT_CONTENT_TYPE

2011-06-17 Thread Don Doffe
I think I found the issue. My understanding was that Exchange.ACCEPT_CONTENT_TYPE maps to HTTP header Accept. I was wrong. Exchange.ACCEPT_CONTENT_TYPE has nothing to do with it and I have to set it (HTTP Accept header) manually. -- View this message in context: http://camel.465427.n5.nabble.c

Re: osgi - Two classes have the same XML type name

2011-06-17 Thread marcogerber
Hi Willem > Please see my comments in the mail. I didn't receive any personal mail, but the one on the development list. > Do you still use the eclipse virgo server outside of the eclipse IDE? Yes > Maybe eclipse load the camel-core bundle twice :( Maybe yes. I'll check this. Thanks, Marco --

Re: Camel CXF & Basic HTTP Authentication

2011-06-17 Thread Claus Ibsen
Hi I guess the source code for camel-cxf has unit tests, there may be some for authentication. You can also check the FuseSource security guide http://fusesource.com/products/enterprise-servicemix/#documentation And the CXF web site has details about configuring authentication http://cxf.apache.

Camel CXF & Basic HTTP Authentication

2011-06-17 Thread Mark Borner
Hi all: Does anyone have an example of using Camel CXF with Basic HTTP Authentication? I need to do it on the client & server side. Thanks, Mark Mark Borner Java Developer - ZStream Xpress This email is intended for the named recipient only. It may contain information which is confident

Re: Some grief with HTTP + Exchange.ACCEPT_CONTENT_TYPE

2011-06-17 Thread Willem Jiang
Hi What's the error did you get? Can you past the stack trace to help us to trace the issue ? On 6/17/11 1:56 PM, Don Doffe wrote: Hi, I just started playing with Camel - I have an option to use it for upcoming project. I might miss something or there is an issue with getting custom "Accept" h