You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by andrejk <an...@koelewijn.net> on 2008/10/20 12:57:42 UTC
How do i install camel-xmpp into ServiceMix Kernel?
Camel-xmpp complains about unresolved packages (smackx). I've tried
installing them from the servicemix repository, but i think these are just
plain old jars, not osgi bundles. I can install them in servicemix, but it
doesn't solve the problem.
Here's what i tried:
servicemix> osgi install -s
http://svn.apache.org/repos/asf/servicemix/m2-repo/org/igniterealtime/smack/smack/3.0.4/smack-3.0.4.jar
Bundle ID: 75
servicemix> osgi install -s
http://svn.apache.org/repos/asf/servicemix/m2-repo/org/igniterealtime/smack/smackx/3.0.4/smackx-3.0.4.jar
Bundle ID: 76
servicemix> osgi install -s mvn:org.apache.camel/camel-xmpp/1.4.0
ERROR BundleException: Unresolved package in bundle 77: package;
(package=org.jivesoftware.smackx.muc)
How do i solve this?
Thanks,
Andrej
--
View this message in context: http://www.nabble.com/How-do-i-install-camel-xmpp-into-ServiceMix-Kernel--tp20067223p20067223.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How do i install camel-xmpp into ServiceMix Kernel?
Posted by andrejk <an...@koelewijn.net>.
Here's the log for the xmpp problem without the bundleactivator issue:
11:41:30,223 | INFO | Thread-27 | log:set |
shell.support.OsgiCommandSupport 113 | Executing w/args: [DEBUG]
11:41:41,907 | DEBUG | Thread-7 | JLineConsole |
.geronimo.gshell.console.Console 152 | Read line: osgi install -s
file:///tmp/osgi/camel-bundle-1.jar
11:41:41,909 | INFO | Thread-7 | SpringCommandExecutor$1 |
mo.gshell.DefaultCommandExecutor 90 | Executing (String): osgi install -s
file:///tmp/osgi/camel-bundle-1.jar
11:41:41,909 | DEBUG | Thread-7 | CommandLineParser |
.gshell.parser.CommandLineParser 29 | Parsing from reader:
java.io.StringReader@15c9f9d
11:41:41,911 | INFO | Thread-28 | osgi:install |
shell.support.OsgiCommandSupport 113 | Executing w/args: [-s,
file:///tmp/osgi/camel-bundle-1.jar]
11:41:41,918 | INFO | lixDispatchQueue | camel-bundle-1 |
? ? | BundleEvent INSTALLED
11:41:41,929 | DEBUG | Thread-28 | ContextLoaderListener |
.activator.ContextLoaderListener 696 | Scanning bundle [camel-bundle-1
(camel-bundle-1)] for configurations...
11:41:41,929 | DEBUG | Thread-28 | ContextLoaderListener |
.activator.ContextLoaderListener 702 | Creating an application context for
bundle [camel-bundle-1 (camel-bundle-1)]
11:41:41,930 | INFO | Thread-28 | ultOsgiApplicationContextCreator |
ultOsgiApplicationContextCreator 67 | Discovered configurations
{osgibundle:/META-INF/spring/*.xml} in bundle [camel-bundle-1
(camel-bundle-1)]
11:41:41,949 | INFO | lixDispatchQueue | camel-bundle-1 |
? ? | BundleEvent RESOLVED
11:41:41,965 | DEBUG | Thread-28 | ContextLoaderListener |
.activator.ContextLoaderListener 722 | Bundle [camel-bundle-1
(camel-bundle-1)] is Spring type compatible with Spring-DM
11:41:41,966 | DEBUG | Thread-28 | ContextLoaderListener |
.activator.ContextLoaderListener 771 | Asynchronous context creation for
bundle [camel-bundle-1 (camel-bundle-1)]
11:41:41,999 | DEBUG | ExtenderThread-3 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor 166 | Starting first stage of refresh for
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
11:41:42,000 | DEBUG | ExtenderThread-3 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor 207 | Calling preRefresh on
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
11:41:42,000 | INFO | ExtenderThread-3 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 412 | Refreshing
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@186dd93:
display name [OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)]; startup date [Tue Oct 21
11:41:42 CEST 2008]; root of context hierarchy
11:41:42,009 | INFO | lixDispatchQueue | camel-bundle-1 |
? ? | BundleEvent STARTED
11:41:42,013 | DEBUG | Thread-28 | SpringCommandExecutor$1 |
mo.gshell.DefaultCommandExecutor 290 | Command completed with result: null,
after: 0:00:00.099
11:41:42,019 | INFO | ExtenderThread-3 | XmlBeanDefinitionReader |
tory.xml.XmlBeanDefinitionReader 323 | Loading XML bean definitions from
URL [bundle://102.0:0/META-INF/spring/beans.xml]
11:41:42,023 | DEBUG | ExtenderThread-3 | DefaultDocumentLoader |
actory.xml.DefaultDocumentLoader 72 | Using JAXP provider
[com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
11:41:42,027 | DEBUG | ExtenderThread-3 | PluggableSchemaResolver |
tory.xml.PluggableSchemaResolver 125 | Loading schema mappings from
[META-INF/spring.schemas]
11:41:42,029 | DEBUG | ExtenderThread-3 | PluggableSchemaResolver |
tory.xml.PluggableSchemaResolver 131 | Loaded schema mappings: {}
11:41:42,031 | DEBUG | ExtenderThread-3 | NamespacePlugins |
nternal.support.NamespacePlugins 154 | Trying to resolving entity for
null|http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
11:41:42,039 | DEBUG | ExtenderThread-3 | PluggableSchemaResolver |
tory.xml.PluggableSchemaResolver 114 | Found XML schema
[http://www.springframework.org/schema/beans/spring-beans-2.5.xsd] in
classpath: org/springframework/beans/factory/xml/spring-beans-2.5.xsd
11:41:42,040 | DEBUG | ExtenderThread-3 | NamespacePlugins |
nternal.support.NamespacePlugins 164 | XML schema for
null|http://www.springframework.org/schema/beans/spring-beans-2.5.xsd found
inside spring-beans (org.springframework.bundle.spring.beans)
11:41:42,110 | DEBUG | ExtenderThread-3 | NamespacePlugins |
nternal.support.NamespacePlugins 154 | Trying to resolving entity for
null|http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
11:41:42,133 | DEBUG | ExtenderThread-3 | PluggableSchemaResolver |
tory.xml.PluggableSchemaResolver 114 | Found XML schema
[http://activemq.apache.org/camel/schema/spring/camel-spring.xsd] in
classpath: camel-spring.xsd
11:41:42,133 | DEBUG | ExtenderThread-3 | NamespacePlugins |
nternal.support.NamespacePlugins 164 | XML schema for
null|http://activemq.apache.org/camel/schema/spring/camel-spring.xsd found
inside camel-spring (org.apache.camel.camel-spring)
11:41:42,188 | DEBUG | ExtenderThread-3 | aultBeanDefinitionDocumentReader |
aultBeanDefinitionDocumentReader 86 | Loading bean definitions
11:41:42,189 | DEBUG | ExtenderThread-3 | DefaultNamespaceHandlerResolver |
.DefaultNamespaceHandlerResolver 153 | Loaded mappings [{}]
11:41:42,190 | DEBUG | ExtenderThread-3 | NamespacePlugins |
nternal.support.NamespacePlugins 126 | Trying to resolving namespace
handler for http://activemq.apache.org/camel/schema/spring
11:41:42,190 | DEBUG | ExtenderThread-3 | NamespacePlugins |
nternal.support.NamespacePlugins 134 | Namespace handler for
http://activemq.apache.org/camel/schema/spring found inside camel-spring
(org.apache.camel.camel-spring)
11:41:42,191 | DEBUG | ExtenderThread-3 | XmlBeanDefinitionReader |
ort.AbstractBeanDefinitionReader 185 | Loaded 2 bean definitions from
location pattern [osgibundle:/META-INF/spring/*.xml]
11:41:42,191 | INFO | ExtenderThread-3 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 427 | Bean factory for application context
[org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@186dd93]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@8353f6
11:41:42,192 | DEBUG | ExtenderThread-3 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 431 | 2 beans defined in
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@186dd93:
display name [OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)]; startup date [Tue Oct 21
11:41:42 CEST 2008]; root of context hierarchy
11:41:42,192 | DEBUG | ExtenderThread-3 | OsgiBundleXmlApplicationContext |
ractOsgiBundleApplicationContext 245 | Registering BundleContext as a bean
named bundleContext
11:41:42,223 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ort.DefaultSingletonBeanRegistry 213 | Creating shared instance of
singleton bean 'camelContext:beanPostProcessor'
11:41:42,223 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'camelContext:beanPostProcessor'
11:41:42,224 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
stractAutowireCapableBeanFactory 459 | Eagerly caching bean
'camelContext:beanPostProcessor' to allow for resolving potential circular
references
11:41:42,224 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ort.DefaultSingletonBeanRegistry 213 | Creating shared instance of
singleton bean 'camelContext'
11:41:42,224 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'camelContext'
11:41:42,225 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
stractAutowireCapableBeanFactory 459 | Eagerly caching bean 'camelContext'
to allow for resolving potential circular references
11:41:42,228 | DEBUG | ExtenderThread-3 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.spring.CamelContextFactoryBean] because it is not
cache-safe
11:41:42,229 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 210 | Returning eagerly cached instance of
singleton bean 'camelContext:beanPostProcessor' that is not fully
initialized yet - a consequence of a circular reference
11:41:42,230 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
stractAutowireCapableBeanFactory 1366 | Invoking afterPropertiesSet() on
bean with name 'camelContext'
11:41:42,230 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 210 | Returning eagerly cached instance of
singleton bean 'camelContext' that is not fully initialized yet - a
consequence of a circular reference
11:41:42,231 | INFO | ExtenderThread-3 | DefaultCamelContext |
e.camel.impl.DefaultCamelContext 103 | JMX enabled. Using
InstrumentationLifecycleStrategy.
11:41:42,248 | DEBUG | ExtenderThread-3 | CamelContextFactoryBean |
l.spring.CamelContextFactoryBean 189 | Found JAXB created routes: []
11:41:42,249 | DEBUG | ExtenderThread-3 | ResolverUtil |
g.apache.camel.util.ResolverUtil 218 | Searching for implementations of
org.apache.camel.builder.RouteBuilder in packages: [nl.iteye.camelbundle1]
11:41:42,250 | DEBUG | ExtenderThread-3 | ResolverUtil |
g.apache.camel.util.ResolverUtil 298 | Loading from osgi buindle using
classloader: BundleDelegatingClassLoader for [camel-bundle-1
(camel-bundle-1)]
11:41:42,288 | DEBUG | ExtenderThread-3 | ResolverUtil |
g.apache.camel.util.ResolverUtil 228 | Found: [class
nl.iteye.camelbundle1.JabberRouteBuilder, class
nl.iteye.camelbundle1.FileRouteBuilder, class
nl.iteye.camelbundle1.RestKandidaatRouteBuilder]
11:41:42,289 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'nl.iteye.camelbundle1.JabberRouteBuilder'
11:41:42,290 | INFO | ExtenderThread-3 | OsgiBundleXmlApplicationContext |
Context$BeanPostProcessorChecker 1197 | Bean
'nl.iteye.camelbundle1.JabberRouteBuilder' is not eligible for getting
processed by all BeanPostProcessors (for example: not eligible for
auto-proxying)
11:41:42,291 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'nl.iteye.camelbundle1.JabberRouteBuilder'
11:41:42,292 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'nl.iteye.camelbundle1.FileRouteBuilder'
11:41:42,292 | INFO | ExtenderThread-3 | OsgiBundleXmlApplicationContext |
Context$BeanPostProcessorChecker 1197 | Bean
'nl.iteye.camelbundle1.FileRouteBuilder' is not eligible for getting
processed by all BeanPostProcessors (for example: not eligible for
auto-proxying)
11:41:42,293 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'nl.iteye.camelbundle1.FileRouteBuilder'
11:41:42,294 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'nl.iteye.camelbundle1.RestKandidaatRouteBuilder'
11:41:42,295 | INFO | ExtenderThread-3 | OsgiBundleXmlApplicationContext |
Context$BeanPostProcessorChecker 1197 | Bean
'nl.iteye.camelbundle1.RestKandidaatRouteBuilder' is not eligible for
getting processed by all BeanPostProcessors (for example: not eligible for
auto-proxying)
11:41:42,295 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'nl.iteye.camelbundle1.RestKandidaatRouteBuilder'
11:41:42,296 | INFO | ExtenderThread-3 | JabberRouteBuilder |
.camelbundle1.JabberRouteBuilder 13 | configuring routes
11:41:42,307 | DEBUG | ExtenderThread-3 | DefaultCamelContext |
e.camel.impl.DefaultCamelContext 341 | Adding routes from: Routes: [Route[
[From[file:///tmp/jabber]] ->
[To[xmpp://myaccount@gmail.com/Home?password=secret]]]] routes: []
11:41:42,308 | INFO | ExtenderThread-3 | FileRouteBuilder |
ye.camelbundle1.FileRouteBuilder 13 | configuring routes
11:41:42,314 | DEBUG | ExtenderThread-3 | DefaultCamelContext |
e.camel.impl.DefaultCamelContext 341 | Adding routes from: Routes: [Route[
[From[file:///tmp/src]] -> [To[file:///tmp/dest]]]] routes: []
11:41:42,315 | INFO | ExtenderThread-3 | RestKandidaatRouteBuilder |
undle1.RestKandidaatRouteBuilder 13 | configuring routes
11:41:42,317 | DEBUG | ExtenderThread-3 | DefaultCamelContext |
e.camel.impl.DefaultCamelContext 341 | Adding routes from: Routes: []
routes: []
11:41:42,318 | INFO | ExtenderThread-3 | OsgiBundleXmlApplicationContext |
Context$BeanPostProcessorChecker 1197 | Bean 'camelContext' is not eligible
for getting processed by all BeanPostProcessors (for example: not eligible
for auto-proxying)
11:41:42,318 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'camelContext'
11:41:42,319 | INFO | ExtenderThread-3 | OsgiBundleXmlApplicationContext |
Context$BeanPostProcessorChecker 1197 | Bean 'camelContext' is not eligible
for getting processed by all BeanPostProcessors (for example: not eligible
for auto-proxying)
11:41:42,321 | DEBUG | ExtenderThread-3 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.spring.CamelBeanPostProcessor] because it is not
cache-safe
11:41:42,321 | DEBUG | ExtenderThread-3 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'camelContext:beanPostProcessor'
11:41:42,322 | DEBUG | ExtenderThread-3 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor 225 | Pre-refresh completed; determining
dependencies...
11:41:42,322 | DEBUG | ExtenderThread-3 | DependencyServiceManager |
startup.DependencyServiceManager 224 | Discovered local dependency
factories: []
11:41:42,322 | DEBUG | ExtenderThread-3 | DependencyServiceManager |
startup.DependencyServiceManager 261 | 0 OSGi service dependencies, 0
unsatisfied (for beans []) in
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
11:41:42,323 | INFO | ExtenderThread-3 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor 252 | No outstanding OSGi service
dependencies, completing initialization for
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
11:41:42,323 | DEBUG | ExtenderThread-3 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor 297 | Starting stage two for
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
11:41:42,324 | DEBUG | ExtenderThread-4 | WaiterApplicationContextExecutor |
textExecutor$CompleteRefreshTask 132 | Completing refresh for
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
11:41:42,324 | DEBUG | ExtenderThread-4 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 649 | Unable to locate MessageSource with
name 'messageSource': using default
[org.springframework.context.support.DelegatingMessageSource@1ca7841]
11:41:42,325 | DEBUG | ExtenderThread-4 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 673 | Unable to locate
ApplicationEventMulticaster with name 'applicationEventMulticaster': using
default
[org.springframework.context.event.SimpleApplicationEventMulticaster@19d0cf0]
11:41:42,325 | DEBUG | ExtenderThread-4 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 214 | Returning cached instance of
singleton bean 'camelContext'
11:41:42,326 | INFO | ExtenderThread-4 | DefaultListableBeanFactory |
pport.DefaultListableBeanFactory 414 | Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@8353f6:
defining beans [camelContext:beanPostProcessor,camelContext]; root of
factory hierarchy
11:41:42,326 | DEBUG | ExtenderThread-4 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 214 | Returning cached instance of
singleton bean 'camelContext:beanPostProcessor'
11:41:42,326 | DEBUG | ExtenderThread-4 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 214 | Returning cached instance of
singleton bean 'camelContext'
11:41:42,326 | DEBUG | ExtenderThread-4 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 273 | Publishing event in context
[org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@186dd93]:
org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@186dd93:
display name [OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)]; startup date [Tue Oct 21
11:41:42 CEST 2008]; root of context hierarchy]
11:41:42,327 | DEBUG | ExtenderThread-4 | SpringCamelContext |
.camel.spring.SpringCamelContext 95 | Publishing event:
org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@186dd93:
display name [OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)]; startup date [Tue Oct 21
11:41:42 CEST 2008]; root of context hierarchy]
11:41:42,327 | DEBUG | ExtenderThread-4 | SpringCamelContext |
.camel.spring.SpringCamelContext 102 | Starting the CamelContext now that
the ApplicationContext has started
11:41:42,328 | DEBUG | ExtenderThread-4 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 307 | Found MBeanServer with default
domain DefaultDomain
11:41:42,328 | DEBUG | ExtenderThread-4 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 307 | Found MBeanServer with default
domain org.apache.camel
11:41:42,329 | DEBUG | ExtenderThread-4 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 184 | Starting JMX agent on server:
com.sun.jmx.mbeanserver.JmxMBeanServer@10241ae
11:41:42,331 | DEBUG | ExtenderThread-4 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.springframework.jmx.export.metadata.ManagedResource] because it is not
cache-safe
11:41:42,335 | DEBUG | ExtenderThread-4 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.management.ManagedService] because it is not cache-safe
11:41:42,337 | DEBUG | ExtenderThread-4 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.springframework.jmx.export.metadata.ManagedAttribute] because it is not
cache-safe
11:41:42,347 | DEBUG | ExtenderThread-4 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.springframework.jmx.export.metadata.ManagedOperation] because it is not
cache-safe
11:41:42,351 | DEBUG | ExtenderThread-4 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 248 | Registered MBean with objectname:
org.apache.camel:context=akoelewijn-laptop/camelContext,type=context,name=akoelewijn-laptop/camelContext
11:41:42,352 | DEBUG | ExtenderThread-4 | DefaultComponentResolver |
el.impl.DefaultComponentResolver 67 | Found component: file via type:
org.apache.camel.component.file.FileComponent via
META-INF/services/org/apache/camel/component/file
11:41:42,352 | DEBUG | ExtenderThread-4 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'org.apache.camel.component.file.FileComponent'
11:41:42,353 | DEBUG | ExtenderThread-4 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 214 | Returning cached instance of
singleton bean 'camelContext'
11:41:42,353 | DEBUG | ExtenderThread-4 | DefaultListableBeanFactory |
tory.support.ConstructorResolver 601 | Autowiring by type from bean name
'org.apache.camel.component.file.FileComponent' via constructor to bean
named 'camelContext'
11:41:42,354 | DEBUG | ExtenderThread-4 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'org.apache.camel.component.file.FileComponent'
11:41:42,354 | DEBUG | ExtenderThread-4 | DefaultComponent |
ache.camel.impl.DefaultComponent 79 | Creating endpoint
uri=[file:///tmp/jabber], path=[/tmp/jabber], parameters=[{}]
11:41:42,355 | DEBUG | ExtenderThread-4 | DefaultCamelContext |
e.camel.impl.DefaultCamelContext 273 | file:///tmp/jabber converted to
endpoint: Endpoint[file:///tmp/jabber] by component:
org.apache.camel.component.file.FileComponent@6a1fbe
11:41:42,357 | DEBUG | ExtenderThread-4 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.management.ManagedEndpoint] because it is not cache-safe
11:41:42,364 | DEBUG | ExtenderThread-4 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 248 | Registered MBean with objectname:
org.apache.camel:context=akoelewijn-laptop/camelContext,type=endpoint,component=file,name=///tmp/jabber
11:41:42,367 | DEBUG | ExtenderThread-4 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.management.PerformanceCounter] because it is not
cache-safe
11:41:42,380 | DEBUG | ExtenderThread-4 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.management.Counter] because it is not cache-safe
11:41:42,381 | DEBUG | ExtenderThread-4 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 248 | Registered MBean with objectname:
org.apache.camel:context=akoelewijn-laptop/camelContext,route=[file]///tmp/jabber,type=processor,nodeid=to3,name="To[xmpp://myaccount@gmail.com/Home\?password=secret]"
11:41:42,382 | ERROR | ExtenderThread-4 | OsgiBundleXmlApplicationContext |
gatedExecutionApplicationContext 295 | Post refresh error
org.apache.camel.NoSuchEndpointException: No endpoint could be found for:
xmpp://myaccount@gmail.com/Home?password=secret
at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:54)
at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:100)
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:102)
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
at org.apache.camel.model.ToType.resolveEndpoint(ToType.java:83)
at org.apache.camel.model.ToType.createProcessor(ToType.java:77)
at
org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1635)
at
org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:95)
at
org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:66)
at
org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1519)
at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:99)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:221)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:90)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:537)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:529)
at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
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:275)
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.finishRefresh(AbstractDelegatedExecutionApplicationContext.java:306)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:279)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145)
at java.lang.Thread.run(Thread.java:619)
11:41:47,318 | DEBUG | Thread-7 | JLineConsole |
.geronimo.gshell.console.Console 152 | Read line:
11:41:48,899 | DEBUG | Thread-7 | JLineConsole |
.geronimo.gshell.console.Console 152 | Read line: log d
11:41:48,900 | INFO | Thread-7 | SpringCommandExecutor$1 |
mo.gshell.DefaultCommandExecutor 90 | Executing (String): log d
11:41:48,900 | DEBUG | Thread-7 | CommandLineParser |
.gshell.parser.CommandLineParser 29 | Parsing from reader:
java.io.StringReader@15e6691
11:41:48,903 | INFO | Thread-29 | log:display |
shell.support.OsgiCommandSupport 113 | Executing w/args: []
11:41:49,447 | DEBUG | Thread-29 | SpringCommandExecutor$1 |
mo.gshell.DefaultCommandExecutor 290 | Command completed with result:
SUCCESS, after: 0:00:00.545
-----
http://www.andrejkoelewijn.com/
--
View this message in context: http://www.nabble.com/How-do-i-install-camel-xmpp-into-ServiceMix-Kernel--tp20067223p20087544.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How do i install camel-xmpp into ServiceMix Kernel?
Posted by andrejk <an...@koelewijn.net>.
Something weird is going on with BundleActivator, eventhough i'm really using
my bundle Activator... Not sure if that has anything to do with the xmpp
problem though.
Thanks,
Andrej
08:17:22,996 | DEBUG | Thread-7 | JLineConsole |
.geronimo.gshell.console.Console 152 | Read line: osgi install -s
file:///tmp/osgi/camel-bundle-1.jar
08:17:22,996 | INFO | Thread-7 | SpringCommandExecutor$1 |
mo.gshell.DefaultCommandExecutor 90 | Executing (String): osgi install -s
file:///tmp/osgi/camel-bundle-1.jar
08:17:22,997 | DEBUG | Thread-7 | CommandLineParser |
.gshell.parser.CommandLineParser 29 | Parsing from reader:
java.io.StringReader@1370ce9
08:17:23,000 | INFO | Thread-17 | osgi:install |
shell.support.OsgiCommandSupport 113 | Executing w/args: [-s,
file:///tmp/osgi/camel-bundle-1.jar]
08:17:23,019 | INFO | lixDispatchQueue | camel-bundle-1 |
? ? | BundleEvent INSTALLED
08:17:23,027 | DEBUG | Thread-17 | ContextLoaderListener |
.activator.ContextLoaderListener 696 | Scanning bundle [camel-bundle-1
(camel-bundle-1)] for configurations...
08:17:23,028 | DEBUG | Thread-17 | ContextLoaderListener |
.activator.ContextLoaderListener 702 | Creating an application context for
bundle [camel-bundle-1 (camel-bundle-1)]
08:17:23,029 | INFO | Thread-17 | ultOsgiApplicationContextCreator |
ultOsgiApplicationContextCreator 67 | Discovered configurations
{osgibundle:/META-INF/spring/*.xml} in bundle [camel-bundle-1
(camel-bundle-1)]
08:17:23,029 | INFO | lixDispatchQueue | camel-bundle-1 |
? ? | BundleEvent RESOLVED
08:17:23,065 | DEBUG | Thread-17 | ContextLoaderListener |
.activator.ContextLoaderListener 722 | Bundle [camel-bundle-1
(camel-bundle-1)] is Spring type compatible with Spring-DM
08:17:23,066 | DEBUG | Thread-17 | ContextLoaderListener |
.activator.ContextLoaderListener 771 | Asynchronous context creation for
bundle [camel-bundle-1 (camel-bundle-1)]
08:17:23,068 | DEBUG | ExtenderThread-5 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor 166 | Starting first stage of refresh for
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
08:17:23,068 | DEBUG | ExtenderThread-5 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor 207 | Calling preRefresh on
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
08:17:23,070 | INFO | ExtenderThread-5 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 412 | Refreshing
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@1127c4d:
display name [OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)]; startup date [Tue Oct 21
08:17:23 CEST 2008]; root of context hierarchy
08:17:23,073 | INFO | lixDispatchQueue | camel-bundle-1 |
? ? | BundleEvent STARTED
08:17:23,078 | DEBUG | Thread-17 | SpringCommandExecutor$1 |
mo.gshell.DefaultCommandExecutor 290 | Command completed with result: null,
after: 0:00:00.080
08:17:23,083 | INFO | ExtenderThread-5 | XmlBeanDefinitionReader |
tory.xml.XmlBeanDefinitionReader 323 | Loading XML bean definitions from
URL [bundle://97.0:0/META-INF/spring/beans.xml]
08:17:23,099 | DEBUG | ExtenderThread-5 | DefaultDocumentLoader |
actory.xml.DefaultDocumentLoader 72 | Using JAXP provider
[com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
08:17:23,102 | DEBUG | ExtenderThread-5 | PluggableSchemaResolver |
tory.xml.PluggableSchemaResolver 125 | Loading schema mappings from
[META-INF/spring.schemas]
08:17:23,103 | DEBUG | ExtenderThread-5 | PluggableSchemaResolver |
tory.xml.PluggableSchemaResolver 131 | Loaded schema mappings: {}
08:17:23,104 | DEBUG | ExtenderThread-5 | NamespacePlugins |
nternal.support.NamespacePlugins 154 | Trying to resolving entity for
null|http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
08:17:23,105 | DEBUG | ExtenderThread-5 | PluggableSchemaResolver |
tory.xml.PluggableSchemaResolver 114 | Found XML schema
[http://www.springframework.org/schema/beans/spring-beans-2.5.xsd] in
classpath: org/springframework/beans/factory/xml/spring-beans-2.5.xsd
08:17:23,106 | DEBUG | ExtenderThread-5 | NamespacePlugins |
nternal.support.NamespacePlugins 164 | XML schema for
null|http://www.springframework.org/schema/beans/spring-beans-2.5.xsd found
inside spring-beans (org.springframework.bundle.spring.beans)
08:17:23,170 | DEBUG | ExtenderThread-5 | NamespacePlugins |
nternal.support.NamespacePlugins 154 | Trying to resolving entity for
null|http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
08:17:23,182 | DEBUG | ExtenderThread-5 | PluggableSchemaResolver |
tory.xml.PluggableSchemaResolver 114 | Found XML schema
[http://activemq.apache.org/camel/schema/spring/camel-spring.xsd] in
classpath: camel-spring.xsd
08:17:23,184 | DEBUG | ExtenderThread-5 | NamespacePlugins |
nternal.support.NamespacePlugins 164 | XML schema for
null|http://activemq.apache.org/camel/schema/spring/camel-spring.xsd found
inside camel-spring (org.apache.camel.camel-spring)
08:17:23,242 | DEBUG | ExtenderThread-5 | aultBeanDefinitionDocumentReader |
aultBeanDefinitionDocumentReader 86 | Loading bean definitions
08:17:23,243 | DEBUG | ExtenderThread-5 | DefaultNamespaceHandlerResolver |
.DefaultNamespaceHandlerResolver 153 | Loaded mappings [{}]
08:17:23,244 | DEBUG | ExtenderThread-5 | NamespacePlugins |
nternal.support.NamespacePlugins 126 | Trying to resolving namespace
handler for http://activemq.apache.org/camel/schema/spring
08:17:23,244 | DEBUG | ExtenderThread-5 | NamespacePlugins |
nternal.support.NamespacePlugins 134 | Namespace handler for
http://activemq.apache.org/camel/schema/spring found inside camel-spring
(org.apache.camel.camel-spring)
08:17:23,245 | DEBUG | ExtenderThread-5 | XmlBeanDefinitionReader |
ort.AbstractBeanDefinitionReader 185 | Loaded 2 bean definitions from
location pattern [osgibundle:/META-INF/spring/*.xml]
08:17:23,245 | INFO | ExtenderThread-5 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 427 | Bean factory for application context
[org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@1127c4d]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@9ba134
08:17:23,246 | DEBUG | ExtenderThread-5 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 431 | 2 beans defined in
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@1127c4d:
display name [OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)]; startup date [Tue Oct 21
08:17:23 CEST 2008]; root of context hierarchy
08:17:23,246 | DEBUG | ExtenderThread-5 | OsgiBundleXmlApplicationContext |
ractOsgiBundleApplicationContext 245 | Registering BundleContext as a bean
named bundleContext
08:17:23,247 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ort.DefaultSingletonBeanRegistry 213 | Creating shared instance of
singleton bean 'camelContext:beanPostProcessor'
08:17:23,248 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'camelContext:beanPostProcessor'
08:17:23,248 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
stractAutowireCapableBeanFactory 459 | Eagerly caching bean
'camelContext:beanPostProcessor' to allow for resolving potential circular
references
08:17:23,248 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ort.DefaultSingletonBeanRegistry 213 | Creating shared instance of
singleton bean 'camelContext'
08:17:23,249 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'camelContext'
08:17:23,249 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
stractAutowireCapableBeanFactory 459 | Eagerly caching bean 'camelContext'
to allow for resolving potential circular references
08:17:23,252 | DEBUG | ExtenderThread-5 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.spring.CamelContextFactoryBean] because it is not
cache-safe
08:17:23,253 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 210 | Returning eagerly cached instance of
singleton bean 'camelContext:beanPostProcessor' that is not fully
initialized yet - a consequence of a circular reference
08:17:23,254 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
stractAutowireCapableBeanFactory 1366 | Invoking afterPropertiesSet() on
bean with name 'camelContext'
08:17:23,254 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 210 | Returning eagerly cached instance of
singleton bean 'camelContext' that is not fully initialized yet - a
consequence of a circular reference
08:17:23,255 | INFO | ExtenderThread-5 | DefaultCamelContext |
e.camel.impl.DefaultCamelContext 103 | JMX enabled. Using
InstrumentationLifecycleStrategy.
08:17:23,255 | DEBUG | ExtenderThread-5 | CamelContextFactoryBean |
l.spring.CamelContextFactoryBean 189 | Found JAXB created routes: []
08:17:23,255 | DEBUG | ExtenderThread-5 | ResolverUtil |
g.apache.camel.util.ResolverUtil 218 | Searching for implementations of
org.apache.camel.builder.RouteBuilder in packages: [nl.iteye.camelbundle1]
08:17:23,256 | DEBUG | ExtenderThread-5 | ResolverUtil |
g.apache.camel.util.ResolverUtil 298 | Loading from osgi buindle using
classloader: BundleDelegatingClassLoader for [camel-bundle-1
(camel-bundle-1)]
08:17:23,274 | DEBUG | ExtenderThread-5 | ResolverUtil |
g.apache.camel.util.ResolverUtil 527 | Could not find the class defintion
'nl/iteye/camelbundle1/Activator.class' in classloader:
BundleDelegatingClassLoader for [camel-bundle-1 (camel-bundle-1)]. Reason:
java.lang.NoClassDefFoundError: nl.iteye.camelbundle1.Activator not found
from bundle [camel-bundle-1 (camel-bundle-1)]
java.lang.NoClassDefFoundError: nl.iteye.camelbundle1.Activator not found
from bundle [camel-bundle-1 (camel-bundle-1)]
at
org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:112)
at
org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.camel.util.ResolverUtil.addIfMatching(ResolverUtil.java:514)
at
org.apache.camel.util.ResolverUtil.loadImplementationsInBundle(ResolverUtil.java:394)
at org.apache.camel.util.ResolverUtil.find(ResolverUtil.java:300)
at org.apache.camel.util.ResolverUtil.find(ResolverUtil.java:277)
at
org.apache.camel.util.ResolverUtil.findImplementations(ResolverUtil.java:224)
at
org.apache.camel.spring.RouteBuilderFinder.appendBuilders(RouteBuilderFinder.java:77)
at
org.apache.camel.spring.CamelContextFactoryBean.findRouteBuiders(CamelContextFactoryBean.java:441)
at
org.apache.camel.spring.CamelContextFactoryBean.afterPropertiesSet(CamelContextFactoryBean.java:191)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881)
at
org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:606)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:226)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:221)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:172)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:136)
at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:746)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: BundleActivator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at
org.apache.felix.framework.searchpolicy.ContentClassLoader.findClass(ContentClassLoader.java:214)
at
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClassFromModule(ContentClassLoader.java:85)
at
org.apache.felix.framework.searchpolicy.ContentLoaderImpl.getClass(ContentLoaderImpl.java:141)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:473)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:187)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
at org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:146)
at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1501)
at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:358)
at
org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
... 42 more
Caused by: java.lang.ClassNotFoundException: BundleActivator
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:200)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
at
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(ContentClassLoader.java:109)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 54 more
Caused by: java.lang.ClassNotFoundException: BundleActivator
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:488)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:187)
... 58 more
08:17:23,276 | WARN | ExtenderThread-5 | ResolverUtil |
g.apache.camel.util.ResolverUtil 532 | Could not find class
'nl/iteye/camelbundle1/Activator.class' in any classloaders:
[BundleDelegatingClassLoader for [camel-bundle-1 (camel-bundle-1)]]
08:17:23,277 | DEBUG | ExtenderThread-5 | ResolverUtil |
g.apache.camel.util.ResolverUtil 228 | Found: [class
nl.iteye.camelbundle1.JabberRouteBuilder, class
nl.iteye.camelbundle1.FileRouteBuilder, class
nl.iteye.camelbundle1.RestKandidaatRouteBuilder]
08:17:23,277 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'nl.iteye.camelbundle1.JabberRouteBuilder'
08:17:23,278 | INFO | ExtenderThread-5 | OsgiBundleXmlApplicationContext |
Context$BeanPostProcessorChecker 1197 | Bean
'nl.iteye.camelbundle1.JabberRouteBuilder' is not eligible for getting
processed by all BeanPostProcessors (for example: not eligible for
auto-proxying)
08:17:23,279 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'nl.iteye.camelbundle1.JabberRouteBuilder'
08:17:23,280 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'nl.iteye.camelbundle1.FileRouteBuilder'
08:17:23,280 | INFO | ExtenderThread-5 | OsgiBundleXmlApplicationContext |
Context$BeanPostProcessorChecker 1197 | Bean
'nl.iteye.camelbundle1.FileRouteBuilder' is not eligible for getting
processed by all BeanPostProcessors (for example: not eligible for
auto-proxying)
08:17:23,281 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'nl.iteye.camelbundle1.FileRouteBuilder'
08:17:23,282 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'nl.iteye.camelbundle1.RestKandidaatRouteBuilder'
08:17:23,283 | INFO | ExtenderThread-5 | OsgiBundleXmlApplicationContext |
Context$BeanPostProcessorChecker 1197 | Bean
'nl.iteye.camelbundle1.RestKandidaatRouteBuilder' is not eligible for
getting processed by all BeanPostProcessors (for example: not eligible for
auto-proxying)
08:17:23,284 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'nl.iteye.camelbundle1.RestKandidaatRouteBuilder'
08:17:23,286 | INFO | ExtenderThread-5 | JabberRouteBuilder |
.camelbundle1.JabberRouteBuilder 13 | configuring routes
08:17:23,290 | DEBUG | ExtenderThread-5 | DefaultCamelContext |
e.camel.impl.DefaultCamelContext 341 | Adding routes from: Routes: [Route[
[From[file:///tmp/jabber]] ->
[To[xmpp://myaccount@gmail.com/Home?password=secret]]]] routes: []
08:17:23,292 | INFO | ExtenderThread-5 | FileRouteBuilder |
ye.camelbundle1.FileRouteBuilder 13 | configuring routes
08:17:23,297 | DEBUG | ExtenderThread-5 | DefaultCamelContext |
e.camel.impl.DefaultCamelContext 341 | Adding routes from: Routes: [Route[
[From[file:///tmp/src]] -> [To[file:///tmp/dest]]]] routes: []
08:17:23,298 | INFO | ExtenderThread-5 | RestKandidaatRouteBuilder |
undle1.RestKandidaatRouteBuilder 13 | configuring routes
08:17:23,298 | DEBUG | ExtenderThread-5 | DefaultCamelContext |
e.camel.impl.DefaultCamelContext 341 | Adding routes from: Routes: []
routes: []
08:17:23,299 | INFO | ExtenderThread-5 | OsgiBundleXmlApplicationContext |
Context$BeanPostProcessorChecker 1197 | Bean 'camelContext' is not eligible
for getting processed by all BeanPostProcessors (for example: not eligible
for auto-proxying)
08:17:23,299 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'camelContext'
08:17:23,299 | INFO | ExtenderThread-5 | OsgiBundleXmlApplicationContext |
Context$BeanPostProcessorChecker 1197 | Bean 'camelContext' is not eligible
for getting processed by all BeanPostProcessors (for example: not eligible
for auto-proxying)
08:17:23,301 | DEBUG | ExtenderThread-5 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.spring.CamelBeanPostProcessor] because it is not
cache-safe
08:17:23,302 | DEBUG | ExtenderThread-5 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'camelContext:beanPostProcessor'
08:17:23,302 | DEBUG | ExtenderThread-5 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor 225 | Pre-refresh completed; determining
dependencies...
08:17:23,302 | DEBUG | ExtenderThread-5 | DependencyServiceManager |
startup.DependencyServiceManager 224 | Discovered local dependency
factories: []
08:17:23,303 | DEBUG | ExtenderThread-5 | DependencyServiceManager |
startup.DependencyServiceManager 261 | 0 OSGi service dependencies, 0
unsatisfied (for beans []) in
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
08:17:23,303 | INFO | ExtenderThread-5 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor 252 | No outstanding OSGi service
dependencies, completing initialization for
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
08:17:23,303 | DEBUG | ExtenderThread-5 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor 297 | Starting stage two for
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
08:17:23,304 | DEBUG | ExtenderThread-6 | WaiterApplicationContextExecutor |
textExecutor$CompleteRefreshTask 132 | Completing refresh for
OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)
08:17:23,304 | DEBUG | ExtenderThread-6 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 649 | Unable to locate MessageSource with
name 'messageSource': using default
[org.springframework.context.support.DelegatingMessageSource@1e867d6]
08:17:23,304 | DEBUG | ExtenderThread-6 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 673 | Unable to locate
ApplicationEventMulticaster with name 'applicationEventMulticaster': using
default
[org.springframework.context.event.SimpleApplicationEventMulticaster@f942c4]
08:17:23,305 | DEBUG | ExtenderThread-6 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 214 | Returning cached instance of
singleton bean 'camelContext'
08:17:23,305 | INFO | ExtenderThread-6 | DefaultListableBeanFactory |
pport.DefaultListableBeanFactory 414 | Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@9ba134:
defining beans [camelContext:beanPostProcessor,camelContext]; root of
factory hierarchy
08:17:23,305 | DEBUG | ExtenderThread-6 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 214 | Returning cached instance of
singleton bean 'camelContext:beanPostProcessor'
08:17:23,305 | DEBUG | ExtenderThread-6 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 214 | Returning cached instance of
singleton bean 'camelContext'
08:17:23,306 | DEBUG | ExtenderThread-6 | OsgiBundleXmlApplicationContext |
pport.AbstractApplicationContext 273 | Publishing event in context
[org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@1127c4d]:
org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@1127c4d:
display name [OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)]; startup date [Tue Oct 21
08:17:23 CEST 2008]; root of context hierarchy]
08:17:23,306 | DEBUG | ExtenderThread-6 | SpringCamelContext |
.camel.spring.SpringCamelContext 95 | Publishing event:
org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@1127c4d:
display name [OsgiBundleXmlApplicationContext(bundle=camel-bundle-1,
config=osgibundle:/META-INF/spring/*.xml)]; startup date [Tue Oct 21
08:17:23 CEST 2008]; root of context hierarchy]
08:17:23,306 | DEBUG | ExtenderThread-6 | SpringCamelContext |
.camel.spring.SpringCamelContext 102 | Starting the CamelContext now that
the ApplicationContext has started
08:17:23,307 | DEBUG | ExtenderThread-6 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 307 | Found MBeanServer with default
domain DefaultDomain
08:17:23,308 | DEBUG | ExtenderThread-6 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 307 | Found MBeanServer with default
domain org.apache.camel
08:17:23,308 | DEBUG | ExtenderThread-6 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 184 | Starting JMX agent on server:
com.sun.jmx.mbeanserver.JmxMBeanServer@d507d3
08:17:23,312 | DEBUG | ExtenderThread-6 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.springframework.jmx.export.metadata.ManagedResource] because it is not
cache-safe
08:17:23,314 | DEBUG | ExtenderThread-6 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.management.ManagedService] because it is not cache-safe
08:17:23,317 | DEBUG | ExtenderThread-6 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.springframework.jmx.export.metadata.ManagedAttribute] because it is not
cache-safe
08:17:23,320 | DEBUG | ExtenderThread-6 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.springframework.jmx.export.metadata.ManagedOperation] because it is not
cache-safe
08:17:23,323 | DEBUG | ExtenderThread-6 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 248 | Registered MBean with objectname:
org.apache.camel:context=akoelewijn-laptop/camelContext,type=context,name=akoelewijn-laptop/camelContext
08:17:23,324 | DEBUG | ExtenderThread-6 | DefaultComponentResolver |
el.impl.DefaultComponentResolver 67 | Found component: file via type:
org.apache.camel.component.file.FileComponent via
META-INF/services/org/apache/camel/component/file
08:17:23,324 | DEBUG | ExtenderThread-6 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 383 | Creating instance of bean
'org.apache.camel.component.file.FileComponent'
08:17:23,325 | DEBUG | ExtenderThread-6 | DefaultListableBeanFactory |
tory.support.AbstractBeanFactory 214 | Returning cached instance of
singleton bean 'camelContext'
08:17:23,326 | DEBUG | ExtenderThread-6 | DefaultListableBeanFactory |
tory.support.ConstructorResolver 601 | Autowiring by type from bean name
'org.apache.camel.component.file.FileComponent' via constructor to bean
named 'camelContext'
08:17:23,326 | DEBUG | ExtenderThread-6 | DefaultListableBeanFactory |
ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean
'org.apache.camel.component.file.FileComponent'
08:17:23,331 | DEBUG | ExtenderThread-6 | DefaultComponent |
ache.camel.impl.DefaultComponent 79 | Creating endpoint
uri=[file:///tmp/jabber], path=[/tmp/jabber], parameters=[{}]
08:17:23,332 | DEBUG | ExtenderThread-6 | DefaultCamelContext |
e.camel.impl.DefaultCamelContext 273 | file:///tmp/jabber converted to
endpoint: Endpoint[file:///tmp/jabber] by component:
org.apache.camel.component.file.FileComponent@ef9d00
08:17:23,335 | DEBUG | ExtenderThread-6 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.management.ManagedEndpoint] because it is not cache-safe
08:17:23,338 | DEBUG | ExtenderThread-6 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 248 | Registered MBean with objectname:
org.apache.camel:context=akoelewijn-laptop/camelContext,type=endpoint,component=file,name=///tmp/jabber
08:17:23,341 | DEBUG | ExtenderThread-6 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.management.PerformanceCounter] because it is not
cache-safe
08:17:23,354 | DEBUG | ExtenderThread-6 | CachedIntrospectionResults |
beans.CachedIntrospectionResults 151 | Not strongly caching class
[org.apache.camel.management.Counter] because it is not cache-safe
08:17:23,356 | DEBUG | ExtenderThread-6 | DefaultInstrumentationAgent |
ment.DefaultInstrumentationAgent 248 | Registered MBean with objectname:
org.apache.camel:context=akoelewijn-laptop/camelContext,route=[file]///tmp/jabber,type=processor,nodeid=to5,name="To[xmpp://myaccount@gmail.com/Home\?password=secret]"
08:17:23,356 | ERROR | ExtenderThread-6 | OsgiBundleXmlApplicationContext |
gatedExecutionApplicationContext 295 | Post refresh error
org.apache.camel.NoSuchEndpointException: No endpoint could be found for:
xmpp://myaccount@gmail.com/Home?password=secret
at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:54)
at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:100)
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:102)
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
at org.apache.camel.model.ToType.resolveEndpoint(ToType.java:83)
at org.apache.camel.model.ToType.createProcessor(ToType.java:77)
at
org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1635)
at
org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:95)
at
org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:66)
at
org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1519)
at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:99)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:221)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:90)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:537)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:529)
at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
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:275)
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.finishRefresh(AbstractDelegatedExecutionApplicationContext.java:306)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:279)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145)
at java.lang.Thread.run(Thread.java:619)
-----
http://www.andrejkoelewijn.com/
--
View this message in context: http://www.nabble.com/How-do-i-install-camel-xmpp-into-ServiceMix-Kernel--tp20067223p20084385.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How do i install camel-xmpp into ServiceMix Kernel?
Posted by Guillaume Nodet <gn...@gmail.com>.
Can you run the following command before deploying your route:
log set DEBUG
Then, deploy your route, and paste the log file from data/log/servicemix.log
It may contain useful information.
On Mon, Oct 20, 2008 at 11:04 PM, andrejk <an...@koelewijn.net> wrote:
>
> Thanks, that solved my problem with installing camel-xmpp.
> But, now i'm stuck trying to use it. I have the following route defined:
>
> from("file:///tmp/jabber")
> .to("xmpp://myaccount@gmail.com/Home?password=secret");
>
> When i deploy my osgi bundle, the following exception is displayed:
>
> servicemix> osgi install -s file:///tmp/osgi/camel-bundle-1.jar
> Bundle ID: 95
> servicemix> Exception in thread "SpringOsgiExtenderThread-10"
> org.apache.camel.NoSuchEndpointException: No endpoint could be found for:
> xmpp://myaccount@gmail.com/Home?password=secret
> at
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:54)
> at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:100)
> at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:102)
> at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
> at org.apache.camel.model.ToType.resolveEndpoint(ToType.java:83)
> at org.apache.camel.model.ToType.createProcessor(ToType.java:77)
> at
> org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1635)
> at
> org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:95)
> at
> org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:66)
> at
> org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1519)
> at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:99)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:221)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:90)
> at
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:537)
> at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:529)
> at
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
>
> Any idea why?
>
> Thanks,
> Andrej
>
>
> -----
> http://www.andrejkoelewijn.com/
> --
> View this message in context: http://www.nabble.com/How-do-i-install-camel-xmpp-into-ServiceMix-Kernel--tp20067223p20078761.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com
Re: How do i install camel-xmpp into ServiceMix Kernel?
Posted by andrejk <an...@koelewijn.net>.
Thanks, that solved my problem with installing camel-xmpp.
But, now i'm stuck trying to use it. I have the following route defined:
from("file:///tmp/jabber")
.to("xmpp://myaccount@gmail.com/Home?password=secret");
When i deploy my osgi bundle, the following exception is displayed:
servicemix> osgi install -s file:///tmp/osgi/camel-bundle-1.jar
Bundle ID: 95
servicemix> Exception in thread "SpringOsgiExtenderThread-10"
org.apache.camel.NoSuchEndpointException: No endpoint could be found for:
xmpp://myaccount@gmail.com/Home?password=secret
at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:54)
at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:100)
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:102)
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
at org.apache.camel.model.ToType.resolveEndpoint(ToType.java:83)
at org.apache.camel.model.ToType.createProcessor(ToType.java:77)
at
org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1635)
at
org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:95)
at
org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:66)
at
org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1519)
at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:99)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:221)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:90)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:537)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:529)
at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
Any idea why?
Thanks,
Andrej
-----
http://www.andrejkoelewijn.com/
--
View this message in context: http://www.nabble.com/How-do-i-install-camel-xmpp-into-ServiceMix-Kernel--tp20067223p20078761.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How do i install camel-xmpp into ServiceMix Kernel?
Posted by Gert Vanthienen <ge...@skynet.be>.
Andrej,
We repackage requirements that aren't packaged as an OSGi bundle by
their own as a ServiceMix bundle. We also have an OSGi bundle availble
to provide the smack requirement. You can find it at
http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/bundles/org.apache.servicemix.bundles.smack.
The easiest way to install additional Camel components into ServiceMix
Kernel however, is by using the camel features.xml that we built for
ServiceMix 4. First add the Apache SNAPSHOT repository to the
etc/org.ops4j.pax.url.mvn.cfg file, because this thing isn't available
from a public repo yet. Something like
org.ops4j.pax.url.mvn.repositories=file:${user.home}/.m2/repository@snapshots,http://repo1.maven.org/maven2,http://people.apache.org/repo/m2-snapshot-repository@snapshots.
With the snapshot repository in place, you can add an additional
features.xml URL with the command:
features addUrl
mvn:org.apache.servicemix.camel/org.apache.servicemix.camel.features/4.0-m2-SNAPSHOT/xml/features
This will allow you to install any Camel component with a simple command
like "features install camel-xmpp". When you run the command, it will
download the necessary bundles to satisfy all the requirements for the
component automatically.
The "features list" gives the full list of components that can be
installed this way.
Regards,
Gert
andrejk schreef:
> Camel-xmpp complains about unresolved packages (smackx). I've tried
> installing them from the servicemix repository, but i think these are just
> plain old jars, not osgi bundles. I can install them in servicemix, but it
> doesn't solve the problem.
>
> Here's what i tried:
>
> servicemix> osgi install -s
> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/igniterealtime/smack/smack/3.0.4/smack-3.0.4.jar
> Bundle ID: 75
> servicemix> osgi install -s
> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/igniterealtime/smack/smackx/3.0.4/smackx-3.0.4.jar
> Bundle ID: 76
> servicemix> osgi install -s mvn:org.apache.camel/camel-xmpp/1.4.0
> ERROR BundleException: Unresolved package in bundle 77: package;
> (package=org.jivesoftware.smackx.muc)
>
> How do i solve this?
> Thanks,
> Andrej
>