Camel 2.0 + OSGi

2009-11-17 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I have a problem to deploy a bundle using camel-osgi + camel-spring on Apache Karaf. When deploying on Java6 it does work fine but on Java5 it fails, because there is no JAXB implementation found. I get the following exception: 11:25:13,924

[Discussion] Camel - clustering - servicemix 4

2009-11-17 Thread Charles Moulliard
I try to design one or several scenario that we could use to design a clustering architecture for a project using Camel top of ServiceMix 4. My first idea was to use the loadbalancer pattern (http://camel.apache.org/load-balancer.html) of camel to forward the request to the endpoints of one of the

Re: Camel 2.0 + OSGi

2009-11-17 Thread Maciej Prochniak
Hello, have you got org.apache.servicemix.bundles.jaxb-impl and org.apache.servicemix.specs.jaxb-api installed? smx4 uses some custom-magic way of resolving JAXB factories and similar stuff br, maciek On Tue, 2009-11-17 at 11:34 +0100, Markus Wolf wrote: > -BEGIN PGP SIGNED MESSAGE- > H

Re: Camel 2.0 + OSGi

2009-11-17 Thread Willem Jiang
Hi, Did you try to using the JAXB bundle from servicemix? We use the camel within Servicemix4 in JDK 1.5 everything is OK :) Willem Markus Wolf wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I have a problem to deploy a bundle using camel-osgi + camel-spring on Apache Karaf.

The dreaded: Unable to locate Spring NamespaceHandler for XML schema

2009-11-17 Thread Ian de Beer
Hi Ever since I have started using the 2.1-SNAPSHOT, I get the attached exception. The same code worked fine with 2.0.0 and it still works fine when I compile and run in Intellij IDE. However when I create a "fat-jar" with mvn assembly:assembly and run from a terminal, it fails. I have no option

Re: Camel 2.0 + OSGi

2009-11-17 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Maciej, hi Willem, thanks for your responses. I already tried this bundles because the guys at the felix user-list also told me so but the them I get another exception. For reference I do post it here also (below). The ContextFactory is found then,

Re: The dreaded: Unable to locate Spring NamespaceHandler for XML schema

2009-11-17 Thread Claus Ibsen
Hi You can change to use a fixed 2.0.0 version of the XSD http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd";> Should be http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring-2.0.0.xsd";> On Tue, N

Re: Camel 2.0 + OSGi

2009-11-17 Thread Guillaume Nodet
Did you make sure to remove the packages from the etc/config.properites for java 6 so that they are not exported by the system bundle and that the ones exported by the deployed bundles are used instead ? On Tue, Nov 17, 2009 at 12:10, Markus Wolf wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash

Re: Camel 2.0 + OSGi

2009-11-17 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, > Did you make sure to remove the packages from the > etc/config.properites for java 6 so that they are not exported by the > system bundle and that the ones exported by the deployed bundles are > used instead ? > shouldn't karaf start with the j

Re: The dreaded: Unable to locate Spring NamespaceHandler for XML schema

2009-11-17 Thread Ian de Beer
Hi Claus I have tried with "http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring-2.0.0.xsd";, but the problem persists. The puzzling part is that it works when the full classpath is specified (referencing the jars in the maven repo). Obviously the fat jar, conta

Re: Camel 2.0 + OSGi

2009-11-17 Thread Guillaume Nodet
Yes, it does. Forget that, I thought the problem was on jdk 6. On Tue, Nov 17, 2009 at 13:38, Markus Wolf wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > >> Did you make sure to remove the packages from the >> etc/config.properites for java 6 so that they are not exported by t

Re: The dreaded: Unable to locate Spring NamespaceHandler for XML schema

2009-11-17 Thread Maciej Prochniak
just a guess - but does fat jar contain needed descriptors in META-INF i.e. META-INF/spring.handlers and META-INF/spring.schemas? br, maciek On Tue, 2009-11-17 at 04:50 -0800, Ian de Beer wrote: > Hi Claus > I have tried with "http://camel.apache.org/schema/spring > http://camel.apache.org/schema

Re: The dreaded: Unable to locate Spring NamespaceHandler for XML schema

2009-11-17 Thread Claus Ibsen
On Tue, Nov 17, 2009 at 1:50 PM, Ian de Beer wrote: > > Hi Claus > I have tried with "http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring-2.0.0.xsd";, but the > problem persists. > The puzzling part is that it works when the full classpath is specified > (ref

Re: The dreaded: Unable to locate Spring NamespaceHandler for XML schema

2009-11-17 Thread Willem Jiang
Can you check your "fat-jar" if it contains the file /META-INF/spring.handles and /META-INF/spring.schemas like these files [1] If not , you need to update your assembly plugin is configuration to contain upper files. [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-spring-o

Re: Camel 2.0 + OSGi

2009-11-17 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 No other idea? I already tried to import the 'javax.xml.bind.annotation.adapters' package into my bundle it it does not seem to be related to my bundle in any case. Regrads Markus > thanks for your responses. > I already tried this bundles because th

Re: Camel 2.0 + OSGi

2009-11-17 Thread Guillaume Nodet
Have you tried using the following commands ? features:addUrl mvn:org.apache.camel.karaf/features/2.1-SNAPSHOT/xml/features features:install camel-osgi On Tue, Nov 17, 2009 at 14:34, Markus Wolf wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > No other idea? > I already tried to i

Re: Camel 2.0 + OSGi

2009-11-17 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Have you tried using the following commands ? > features:addUrl > mvn:org.apache.camel.karaf/features/2.1-SNAPSHOT/xml/features > features:install camel-osgi > Not until now, since I do not found any documentation on this. Also this rises a que

Re: Camel 2.0 + OSGi

2009-11-17 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Have you tried using the following commands ? > features:addUrl > mvn:org.apache.camel.karaf/features/2.1-SNAPSHOT/xml/features > features:install camel-osgi > And as well on wich maven repository do I find 'mvn:org.apache.camel.karaf/features/

Re: The dreaded: Unable to locate Spring NamespaceHandler for XML schema

2009-11-17 Thread Ian de Beer
Hi Thanks to all - it works with the two files (spring.schemas and spring.handlers) added to my META-INF Regards Ian willem.jiang wrote: > > Can you check your "fat-jar" if it contains the file > /META-INF/spring.handles and /META-INF/spring.schemas like these files [1] > > If not , you need

Re: Camel 2.0 + OSGi

2009-11-17 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've traced that this exception (below) is caused by the camel-core bundle. Is there a specific order in which the camel bundles should be loaded by the runtime? Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.adapters.XmlJavaTy

Class loading issue with class org .apache.activemq.camel.component.ActiveMQComponent top of ServiceMix 4

2009-11-17 Thread Charles Moulliard
When deploying a spring file top of ServiceMix 4, I have a class loading issue of a Camel class. http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:osgi="http://www.springframework.org/schema/osgi"; xsi:schemaLocation="http://www.spring

Messages are losted during camel context initialization

2009-11-17 Thread dulanov
Hello, I have a race conditional problem (FUSE ESB 3.4.0.4), time to time immediately after hot deploy apache camel losts several first messages in activemq channels: INFO - AutoDeploymentService - Directory: hotdeploy: Archive changed: processing ...-SNAPSHOT.zip ... WARN - DirectProducer - No g

Re: Camel 2.0 + OSGi

2009-11-17 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The longer I think about this it seems like a bug in the camel-core bundle to me. The package 'javax.xml.bind.annotation.adapters' is missing in the import headers. The other JAXB packages (javax.xml.bind, javax.xml.bind.annotation) are imported into t

Re: Camel 2.0 + OSGi

2009-11-17 Thread Guillaume Nodet
If you look at the pom, this package is explicitely *not* imported: http://fisheye6.atlassian.com/browse/camel/trunk/camel-core/pom.xml?r=HEAD Not sure what the reason is though ... On Tue, Nov 17, 2009 at 17:42, Markus Wolf wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > The long

Re: Camel 2.0 + OSGi

2009-11-17 Thread Guillaume Nodet
Willem, it seems you have made this change a long time ago: http://fisheye6.atlassian.com/changelog/camel/?cs=731844 Do you recall the reason ? On Tue, Nov 17, 2009 at 18:03, Guillaume Nodet wrote: > If you look at the pom, this package is explicitely *not* imported: >   http://fisheye6.atlassi

Intermittent validation error

2009-11-17 Thread Dragisa Krsmanovic
I am getting this error on validation. Messages are passed as XML strings. Strange thing is that it's intermittent. Same message will pass sometimes and sometimes cause this error. Route looks like this: from("activemq:start") .transacted() .to("msv:pmc-message.rng") .

Re: usign http componente with ssl

2009-11-17 Thread lujan99
yes,I try with Firefox and IE and its ok. willem.jiang wrote: > > The test was added before the Camel 2.0 released, I don't think it's a > camel issue. Please check your network firewall, make sure you the > server 443 port is open for connection. > > Willem > lujan99 wrote: >> My test is w

Cyclic dependency in latest 2.1-SNAPSHOT

2009-11-17 Thread Dragisa Krsmanovic
mvn -Dtest=false clean install [ERROR] BUILD FAILURE [INFO] [INFO] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='org.apache.camel:camel-test'}' and 'Vertex{label='org.apache.camel:camel-j

Camel route with CLIENT_ACKNOWLEDGE?

2009-11-17 Thread boday
how do I explicitly acknowledge a message in a Camel route (using CLIENT_ACKNOWLEGE)? I'm using Camel2 in SMX 3.3.1. I have a simple Camel route as follows... from("activemq:start?maxConcurrentConsumers=10") .process(new Processor1()) .process(new Processor2()) .to("activemq:finished"); I'd li

Re: Cyclic dependency in latest 2.1-SNAPSHOT

2009-11-17 Thread Claus Ibsen
Hi This was a bad commit recently. Jonathan, you should move the jms based test you added in camel-test to camel-jms. camel-test should just be the test API and have no dep. on any other than the camel-core. On Tue, Nov 17, 2009 at 7:47 PM, Dragisa Krsmanovic wrote: > mvn -Dtest=false clean in

Re: Cyclic dependency in latest 2.1-SNAPSHOT

2009-11-17 Thread Jon Anstey
Oops! Will fix that up right away. On Tue, Nov 17, 2009 at 3:46 PM, Claus Ibsen wrote: > Hi > > This was a bad commit recently. > > Jonathan, you should move the jms based test you added in camel-test > to camel-jms. > camel-test should just be the test API and have no dep. on any other > than t

Re: usign http componente with ssl

2009-11-17 Thread lujan99
I run ActiveMQ 5.3 with Camel 2.0 as windows service (windows 2003). If I run activemq from console, https is ok and I got results. the issue is when I run AMQ as windows service. willem.jiang wrote: > > The test was added before the Camel 2.0 released, I don't think it's a > camel issue. Pl

http component with basic authentication when use HTTP_URI

2009-11-17 Thread Eric V.
When I use basic authentication with http(s) component I can't set user/password in HTTP_URI header. Authentication work only if credentials set in endpoint URI, e.g.: ... .setHeader("CamelHttpMethod", constant("GET")) .setHeader("CamelHttpUri", body().convertTo(String.cla