camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sailaja p <spind...@progress.com>
Subject Problems while running route with the JBI Endpoint
Date Fri, 16 Oct 2009 06:29:41 GMT

Hi All,

 I am trying to invoke a webservice using the JBI Endpoint. I got into
problems. I goggled the errors, but no luck.
 
 I have created a Bottom Up webservice and deployed it in FUSE ESB 4.2
server and published it. Service is deployed properly and I am able to view
the corresponding endpoints in the jconsole. Now I am trying to invoke this
endpoint using JBI Endpoint in my camel route. When I run the route, I got
the following exception.
 
 My route looks like this:
 
 		<route id="N91255671698904Onull_1">
 			<description />
 			<from id="N111255671979954OJMS_0" uri="jms:queue:Test"></from>
 			<to id="N121255673304157OJBI_1"
 			
uri="jbi:endpoint:{http://sample.test/}HelloSampleService:HelloSamplePort">
 			</to>
		</route>
 
 Following is xbean.xml of the created Webservice
 
 <jaxws:endpoint xmlns:tns="http://sample.test/" id="hellosample"
 		implementor="test.sample.HelloSample"
wsdlLocation="wsdl/hellosample.wsdl"
 		endpointName="tns:HelloSamplePort" serviceName="tns:HelloSampleService"
 		address="/HelloSamplePort">
 		<jaxws:features>
 			<bean class="org.apache.cxf.feature.LoggingFeature" />
 		</jaxws:features>
	</jaxws:endpoint>

 
 
 org.apache.camel.ResolveEndpointFailedException: Failed to resolve
endpoint:
jbi:endpoint:{http://sample.test/}HelloSampleService:HelloSamplePort due to:
org.apache.camel.RuntimeCamelException: Could not auto create component: jbi
 	at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:357)
 	at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:54)
 	at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:99)
 	at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)
 	at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)
 	at org.apache.camel.model.SendType.resolveEndpoint(SendType.java:57)
 	at org.apache.camel.model.SendType.createProcessor(SendType.java:51)
 	at
org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:2011)
 	at
org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:102)
 	at
org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:66)
 	at
org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1895)
 	at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:106)
 	at org.apache.camel.model.RouteType.addRoutes(RouteType.java:220)
 	at org.apache.camel.model.RouteType.addRoutes(RouteType.java:89)
 	at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:670)
 	at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:663)
 	at
org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:166)
 	at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:161)
 	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:53)
 	at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:607)
 	at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:96)
 	at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:115)
 	at
org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
 	at
org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
 	at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
 	at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
 	at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
 	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
 	at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:140)
 	at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:94)
 	at
com.fusesource.tools.eip.debug.launch.CamelStandinRuntime.doLaunchDebuggedContext(Unknown
Source)
 	at com.fusesource.tools.eip.debug.launch.CamelStandinRuntime.init(Unknown
Source)
 	at com.fusesource.tools.eip.debug.launch.CamelLauncher.main(Unknown
Source)
 Caused by: org.apache.camel.RuntimeCamelException: Could not auto create
component: jbi
 	at
org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:189)
 	at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:332)
 	... 32 more
 Caused by: java.lang.IllegalArgumentException: Invalid URI, no Component
registered for scheme : jbi
 	at
org.apache.camel.impl.DefaultComponentResolver.resolveComponent(DefaultComponentResolver.java:63)
 	at
org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:178)
 	... 33 more
 Caused by: java.lang.NoClassDefFoundError:
org/springframework/osgi/context/BundleContextAware
 	at java.lang.ClassLoader.defineClass1(Native Method)
 	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
 	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 	at java.security.AccessController.doPrivileged(Native Method)
 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 	at org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:516)
 	at org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:485)
 	at org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:468)
 	at org.apache.camel.util.FactoryFinder.newInstance(FactoryFinder.java:139)
 	at org.apache.camel.util.FactoryFinder.findClass(FactoryFinder.java:108)
 	at org.apache.camel.util.FactoryFinder.findClass(FactoryFinder.java:98)
 	at
org.apache.camel.impl.DefaultComponentResolver.resolveComponent(DefaultComponentResolver.java:59)
 	... 34 more
 Caused by: java.lang.ClassNotFoundException:
org.springframework.osgi.context.BundleContextAware
 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 	at java.security.AccessController.doPrivileged(Native Method)
 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	... 52 more
 
-- 
View this message in context: http://www.nabble.com/Problems-while-running-route-with-the-JBI-Endpoint-tp25920433p25920433.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message