Hi,
I used jetty as suggested. Following is the routing rule. But still an
exception is thrown. It says it can't resolve the proxy uri.
<camel:camelContext xmlns="http://camel.apache.org/schema/spring">
<camel:route>
<camel:from
uri="jetty:http://localhost:8082/services/HelloService"/>
<camel:to
uri="jetty:http://localhost:8080/axis2/services/HelloService"/>
</camel:route>
</camel:camelContext>
Exception in thread "SpringOsgiExtenderThread-22"
org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route11: Route[[From[jetty:http://localhost:8082/services/HelloServic...
because of Failed to resolve endpoint:
jetty://http://localhost:8082/services/HelloService due to: No component
found with scheme: jetty
at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1326)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)
at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:285)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create
route route11:
Route[[From[jetty:http://localhost:8082/services/HelloServic... because of
Failed to resolve endpoint:
jetty://http://localhost:8082/services/HelloService due to: No component
found with scheme: jetty
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:732)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1814)
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1600)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1475)
at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1443)
at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)
... 10 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint: jetty://http://localhost:8082/services/HelloService due
to: No component found with scheme: jetty
at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:495)
at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)
at
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
at
org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
at
org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
2013-11-14 16:26:55,421 | ERROR | xtenderThread-22 | ContextLoaderListener
| 82 - org.springframework.osgi.e at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:857)
xtender - 1.2.1 | Application context refresh failed
(OsgiBundleXmlApplicationContext(bundle=Proxy,
config=osgibundle:/META-INF/spring/*.xml))
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)
org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route11: Route[[Fr ... 19 more
om[jetty:http://localhost:8082/services/HelloServic... because of Failed to
resolve endpoint: jetty://http://localhost:8082/services/HelloService due
to: No component found with scheme: jetty
at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1326)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)[102:org.apache.camel.camel-spring:2.10.6]
at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:285)[102:org.apache.camel.camel-spring:2.10.6]
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[73:org.springframework.context:3.0.7.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[73:org.springframework.context:3.0.7.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[73:org.springframework.context:3.0.7.RELEASE]
at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[79:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[79:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[79:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[79:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[82:org.springframework.osgi.extender:1.2.1]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create
route route11:
Route[[From[jetty:http://localhost:8082/services/HelloServic... because of
Failed to resolve endpoint:
jetty://http://localhost:8082/services/HelloService due to: No component
found with scheme: jetty
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:732)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1814)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1600)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1475)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)[102:org.apache.camel.camel-spring:2.10.6]
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1443)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228)[102:org.apache.camel.camel-spring:2.10.6]
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)[102:org.apache.camel.camel-spring:2.10.6]
... 10 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint: jetty://http://localhost:8082/services/HelloService due
to: No component found with scheme: jetty
at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:495)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:857)[100:org.apache.camel.camel-core:2.10.6]
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)[100:org.apache.camel.camel-core:2.10.6]
... 19 more
--
View this message in context:
http://camel.465427.n5.nabble.com/Exposing-a-Remote-Web-Service-written-in-Axis2-tp5743186p5743265.html
Sent from the Camel - Users mailing list archive at Nabble.com.