I just re-read my post and saw that it was probably confusing.

I was able to compile the cometd component just fine. I compiled it and put
it in my classpath and wrote a test route using that component.

When Camel tries to load the cometd route is when I get the stack trace I
mentioned before.

Hope that clears things up, and sorry for the poor communication of the
problem.
Thanks!


willem.jiang wrote:
> 
> Hi,
> 
> Are you using maven or just setting the camel jars into your class path?
> If you are using maven , maven will download it for you. Or you can down
> load the camel-cometd jar here[1]
> 
> Please upgrade your Jetty's version, I just checked the Camel trunk's
> jetty version is 6.1.14.
> 
> [1]
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/camel/camel-cometd/2.0-SNAPSHOT/
> 
> Willem
> 
> Stephen J wrote:
>> The cometd component still wasn't in the last snapshot so I decided to
>> compile it for myself. However, I may have a configuration issue or
>> something because I keep getting the following stack trace when trying to
>> use a cometd route.
>> 
>> Stack Trace:
>> 2906 [main] INFO org.mortbay.log - jetty-6.1.9
>> Exception in thread "main" java.lang.IllegalArgumentException: Illegal
>> context spec:null
>>      at
>> org.mortbay.jetty.handler.ContextHandlerCollection.mapContexts(ContextHandlerCollection.java:82)
>>      at
>> org.mortbay.jetty.handler.ContextHandlerCollection.setHandlers(ContextHandlerCollection.java:149)
>>      at
>> org.mortbay.jetty.handler.HandlerCollection.addHandler(HandlerCollection.java:197)
>>      at org.mortbay.jetty.Server.addHandler(Server.java:591)
>>      at org.mortbay.jetty.servlet.Context.<init>(Context.java:124)
>>      at org.mortbay.jetty.servlet.Context.<init>(Context.java:73)
>>      at
>> org.apache.camel.component.cometd.CometdComponent.createServletForConnector(CometdComponent.java:152)
>>      at
>> org.apache.camel.component.cometd.CometdComponent.connect(CometdComponent.java:113)
>>      at
>> org.apache.camel.component.cometd.CometdEndpoint.connect(CometdEndpoint.java:68)
>>      at
>> org.apache.camel.component.cometd.CometdProducer.start(CometdProducer.java:51)
>>      at
>> org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:93)
>>      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
>>      at
>> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:42)
>>      at
>> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:53)
>>      at
>> org.apache.camel.processor.DeadLetterChannel.doStart(DeadLetterChannel.java:435)
>>      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
>>      at
>> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:42)
>>      at
>> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:53)
>>      at
>> org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:54)
>>      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
>>      at
>> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:42)
>>      at
>> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:53)
>>      at
>> org.apache.camel.impl.DefaultConsumer.doStart(DefaultConsumer.java:85)
>>      at
>> org.apache.camel.impl.ScheduledPollConsumer.doStart(ScheduledPollConsumer.java:123)
>>      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
>>      at
>> org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:420)
>>      at
>> org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext.java:682)
>>      at
>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:651)
>>      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
>>      at cameltests.CometTest.main(CometTest.java:15)
>> 
>> Anyone know what this means?
>> 
>> 
>> janstey wrote:
>>> Seems that we forgot to include it in the distribution. I'll add it in
>>> ASAP
>>> so we'll have it after the next deploy.
>>>
>>> On Wed, Dec 31, 2008 at 12:52 PM, Stephen J
>>> <stephen.joy...@mclaneco.com>wrote:
>>>
>>>> I just downloaded the latest Camel 2.0 snapshot and I don't see the
>>>> cometd
>>>> component in the package. Can someone point me in the right direction?
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Cometd-component--tp21233599s22882p21233599.html
>>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>> -- 
>>> Cheers,
>>> Jon
>>>
>>> http://janstey.blogspot.com/
>>>
>>>
>> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Cometd-component--tp21233599s22882p21290692.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to