You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by hcaicedo <hc...@yahoo.com> on 2008/10/02 07:02:18 UTC

Problem with Jetty component on equinox

I need help please. This is really frustrating. For two weeks I been trying
to run a very simple example based on Equinox.  All i am doing is modifying
the timer example with a Jetty component.  Does anybody knows the meaning of
this error.

No endpoint could be found for: jetty:http://localhost:8080/ty/, please
check the class path for the uri relates camel component module.

This is my camelContext.xml file: 

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">

	<camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
		<route>
			<from uri="timer://myTimer?fixedRate=true&amp;period=2000" />
			<to uri="direct:initial" />
		</route>
		<route>
			<from uri="direct:initial" />
			<bean ref="myTransform" method="transform" />
			<bean ref="myheaderTransform" method="transform" />
			<to uri="direct:Final" />
			<to uri="log:ExampleRouter" />
		</route>

		<route>
			<from uri="direct:Final" />
			<to uri="list:answer" />
		</route>
		<route>
			<from uri="jetty:http://localhost:8080/ty/" />
			<process ref="yjettyProcessor" />
			<to uri="log:ExampleRouter" />
		</route >
	</camelContext>

	<bean id="yjettyProcessor" class="org.apache.camel.example.osgi.jettyPage"
/>

	<bean id="myTransform" class="org.apache.camel.example.osgi.MyTransform">
		<property name="prefix" value="MyTransform" />
	</bean>

	<bean id="myheaderTransform"
class="org.apache.camel.example.osgi.headerTransform" />

</beans>


When I remove the jetty route all works OK.

Any idea

Thanks

-- 
View this message in context: http://www.nabble.com/Problem-with-Jetty-component-on-equinox-tp19773392s22882p19773392.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Problem with Jetty component on equinox

Posted by dewane <de...@gmail.com>.
Hi, 

Don't know if you are still having some problems, but if you are can you
send the output
"ss" (short status) equinox console command?


hcaicedo wrote:
> 
> I need help please. This is really frustrating. For two weeks I been
> trying to run a very simple example based on Equinox.  All i am doing is
> modifying the timer example with a Jetty component.  Does anybody knows
> the meaning of this error.
> 
> No endpoint could be found for: jetty:http://localhost:8080/ty/, please
> check the class path for the uri relates camel component module.
> 
> This is my camelContext.xml file: 
> 
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="
>        http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>        http://activemq.apache.org/camel/schema/spring
> http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">
> 
> 	<camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
> 		<route>
> 			<from uri="timer://myTimer?fixedRate=true&amp;period=2000" />
> 			<to uri="direct:initial" />
> 		</route>
> 		<route>
> 			<from uri="direct:initial" />
> 			<bean ref="myTransform" method="transform" />
> 			<bean ref="myheaderTransform" method="transform" />
> 			<to uri="direct:Final" />
> 			<to uri="log:ExampleRouter" />
> 		</route>
> 
> 		<route>
> 			<from uri="direct:Final" />
> 			<to uri="list:answer" />
> 		</route>
> 		<route>
> 			<from uri="jetty:http://localhost:8080/ty/" />
> 			<process ref="yjettyProcessor" />
> 			<to uri="log:ExampleRouter" />
> 		</route >
> 	</camelContext>
> 
> 	<bean id="yjettyProcessor"
> class="org.apache.camel.example.osgi.jettyPage" />
> 
> 	<bean id="myTransform" class="org.apache.camel.example.osgi.MyTransform">
> 		<property name="prefix" value="MyTransform" />
> 	</bean>
> 
> 	<bean id="myheaderTransform"
> class="org.apache.camel.example.osgi.headerTransform" />
> 
> </beans>
> 
> 
> When I remove the jetty route all works OK.
> 
> Any idea
> 
> Thanks
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-Jetty-component-on-equinox-tp19773392s22882p19973492.html
Sent from the Camel - Users mailing list archive at Nabble.com.


RE: Problem with Jetty component on equinox

Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi

You need additional jars on the classpath.

Look at the component page:
http://activemq.apache.org/camel/components.html
Jetty / camel-jetty

camel-jetty is the maven2 artifictid you need to add.

Camel is separated into different .jars for each component. So you just add what you need.




Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: hcaicedo [mailto:hcaicedo@yahoo.com] 
Sent: 2. oktober 2008 07:02
To: camel-user@activemq.apache.org
Subject: Problem with Jetty component on equinox


I need help please. This is really frustrating. For two weeks I been trying
to run a very simple example based on Equinox.  All i am doing is modifying
the timer example with a Jetty component.  Does anybody knows the meaning of
this error.

No endpoint could be found for: jetty:http://localhost:8080/ty/, please
check the class path for the uri relates camel component module.

This is my camelContext.xml file: 

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">

	<camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
		<route>
			<from uri="timer://myTimer?fixedRate=true&amp;period=2000" />
			<to uri="direct:initial" />
		</route>
		<route>
			<from uri="direct:initial" />
			<bean ref="myTransform" method="transform" />
			<bean ref="myheaderTransform" method="transform" />
			<to uri="direct:Final" />
			<to uri="log:ExampleRouter" />
		</route>

		<route>
			<from uri="direct:Final" />
			<to uri="list:answer" />
		</route>
		<route>
			<from uri="jetty:http://localhost:8080/ty/" />
			<process ref="yjettyProcessor" />
			<to uri="log:ExampleRouter" />
		</route >
	</camelContext>

	<bean id="yjettyProcessor" class="org.apache.camel.example.osgi.jettyPage"
/>

	<bean id="myTransform" class="org.apache.camel.example.osgi.MyTransform">
		<property name="prefix" value="MyTransform" />
	</bean>

	<bean id="myheaderTransform"
class="org.apache.camel.example.osgi.headerTransform" />

</beans>


When I remove the jetty route all works OK.

Any idea

Thanks

-- 
View this message in context: http://www.nabble.com/Problem-with-Jetty-component-on-equinox-tp19773392s22882p19773392.html
Sent from the Camel - Users mailing list archive at Nabble.com.