from bin/servicemix.sh, I can start it, 3 bundles can't be started though.
1.camel-jms bundle, which seems import the org.springframework.jms.listener,
but that bundle hasn't been installed in the system folder.
2. Configuration Admin service is not available:
java.lang.IllegalStateException: Configuration admin service is not
available. Please start configuration admin bundle.
at
org.ops4j.pax.configmanager.internal.ConfigurationAdminFacade.registerConfigurations
(ConfigurationAdminFacade.java:98)
at
org.ops4j.pax.configmanager.internal.ConfigurationAdminFacade.addFileHandler
(ConfigurationAdminFacade.java:71)
at
org.ops4j.pax.configmanager.internal.ConfigurationFileHandlerServiceTracker.addingService
(ConfigurationFileHandlerServiceTracker.java:36)
at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(
ServiceTracker.java:1021)
at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices
(ServiceTracker.java:882)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java
:289)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java
:228)
at org.ops4j.pax.configmanager.internal.Activator.start(
Activator.java:43)
at org.apache.felix.framework.util.SecureAction.startActivator(
SecureAction.java:589)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1535)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1469)
at org.apache.felix.framework.Felix.setFrameworkStartLevel(
Felix.java:1064)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java
:258)
at java.lang.Thread.run(Thread.java:595)
org.osgi.framework.BundleException: Unresolved package in bundle 16:
package; (package=org.springframework.jms.listener)
at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1649)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1516)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1469)
at org.apache.felix.framework.Felix.setFrameworkStartLevel(
Felix.java:1064)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java
:258)
at java.lang.Thread.run(Thread.java:595)
org.osgi.framework.BundleException: Unresolved package in bundle 16:
package; (package=org.springframework.jms.listener)
at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1649)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1516)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1469)
at org.apache.felix.framework.Felix.setFrameworkStartLevel(
Felix.java:1064)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java
:258)
at java.lang.Thread.run(Thread.java:595)
3. activemq-servicemix bundle, which I am looking into this:
Exception in thread "SimpleAsyncTaskExecutor-11"
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.apache.activemq.xbean.BrokerFactoryBean] for bean with name
'activemqBroker' defined in OSGi res[/META-INF/spring/servicemix-
activemq.xml|id=63|symName=org.apache.servicemix.activemq]; nested exception
is java.lang.ClassNotFoundException: *** Class '
org.apache.activemq.xbean.BrokerFactoryBean' was not found because bundle 3
does not import 'org.apache.activemq.xbean' even though bundle 21 does
export it. To resolve this issue, add an import for '
org.apache.activemq.xbean' to bundle 3. ***
at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass
(AbstractBeanFactory.java:1160)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType
(AbstractAutowireCapableBeanFactory.java:581)
at
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(
AbstractBeanFactory.java:1364)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
(DefaultListableBeanFactory.java:406)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization
(AbstractApplicationContext.java:735)
at
org.springframework.osgi.internal.context.support.AbstractDelegatedExecutionApplicationContext.postRefresh
(AbstractDelegatedExecutionApplicationContext.java:218)
at
org.springframework.osgi.internal.extender.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run
(DependencyWaiterApplicationContextExecutor.java:131)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: *** Class '
org.apache.activemq.xbean.BrokerFactoryBean' was not found because bundle 3
does not import 'org.apache.activemq.xbean' even though bundle 21 does
export it. To resolve this issue, add an import for '
org.apache.activemq.xbean' to bundle 3. ***
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(
R4SearchPolicyCore.java:161)
at org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(
R4SearchPolicy.java:45)
at
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(
ContentClassLoader.java:75)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.springframework.osgi.internal.context.support.BundleDelegatingClassLoader.loadClass
(BundleDelegatingClassLoader.java:158)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:230)
at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass
(AbstractBeanDefinition.java:371)
at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass
(AbstractBeanFactory.java:1157)
... 7 more
Caused by: java.lang.ClassNotFoundException:
org.apache.activemq.xbean.BrokerFactoryBean
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource
(R4SearchPolicyCore.java:389)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(
R4SearchPolicyCore.java:152)
... 15 more
On Nov 27, 2007 4:52 PM, Guillaume Nodet < [EMAIL PROTECTED]> wrote:
> Can you just run
> bin/servicemix.sh
> or
> bin/servicemix.bat
>
> instead of
>
> bin/linux/servicemix.sh
> or
> bin/win32/servicemix.bat
>
> I must admit I haven't tested them yet. They come straight from the
> activemq distribution....
>
> On Nov 27, 2007 9:22 AM, Freeman Fang <[EMAIL PROTECTED]> wrote:
>
> > Hi Guillaume,
> >
> > You are correct, I just use "dos2unix" tool to convert servicemix.sh in
> > my kit, and I can run it. But get the same error as Jeff saw, I update
> > code today.
> > Best Regards
> >
> > Freeman
> >
> >
> >
> > Guillaume Nodet wrote:
> > > Are you sure you have updated your sources recently ?
> > > It looks like the scripts from a few weeks ago.
> > >
> > > On Nov 27, 2007 8:29 AM, Jeff Yu <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >> well, tested it under linux (ubuntu), when I run the "./servicemix.sh
> > >> console", I get the same error with windows.
> > >>
> > >>
> > >> [EMAIL PROTECTED] :~/apache-servicemix-4.0/bin/linux$ ./servicemix.sh
> console
> > >> Running ServiceMix Server...
> > >> wrapper | --> Wrapper Started as Console
> > >> wrapper | Launching a JVM...
> > >> jvm 1 | Wrapper (Version 3.2.0) http://wrapper.tanukisoftware.org
> > >> jvm 1 |
> > >> jvm 1 | WrapperSimpleApp: Unable to locate the class
> > >> org.apache.activemq.console.Main: java.lang.ClassNotFoundException:
> > >> org.apache.activemq.console.Main
> > >> jvm 1 |
> > >> jvm 1 | WrapperSimpleApp Usage:
> > >> jvm 1 | java
> org.tanukisoftware.wrapper.WrapperSimpleApp{app_class}
> > >> [app_parameters]
> > >> jvm 1 |
> > >> jvm 1 | Where:
> > >> jvm 1 | app_class: The fully qualified class name of the
> > >> application to run.
> > >> jvm 1 | app_parameters: The parameters that would normally be
> > passed
> > >> to
> > >> the
> > >> jvm 1 | application.
> > >> wrapper | <-- Wrapper Stopped
> > >>
> > >>
> > >>
> > >> On Nov 27, 2007 2:53 PM, Freeman Fang <[EMAIL PROTECTED] > wrote:
> > >>
> > >>
> > >>> The linux version doesn't work as well,
> > >>> try to run "./servicemix.sh"
> > >>> get error per as below
> > >>> : bad interpreter: No such file or directory
> > >>>
> > >>> Jeff Yu wrote:
> > >>>
> > >>>> Hmm..
> > >>>> Compared the servicemix.bat to servicemix in the linux folder, it
> is
> > >>>>
> > >>> much
> > >>>
> > >>>> less... seems not finished that bat file yet?
> > >>>>
> > >>>>
> > >>>> On Nov 27, 2007 12:39 PM, Jeff Yu <[EMAIL PROTECTED]> wrote:
> > >>>>
> > >>>>
> > >>>>
> > >>>>> Hi,
> > >>>>>
> > >>>>> I am building the SMX 4.0 distribution, and when I run the "
> > >>>>>
> > >>> servicemix.bat",
> > >>>
> > >>>>> I got following error:
> > >>>>>
> > >>>>> STATUS | wrapper | 2007/11/27 11:12:58 | --> Wrapper Started as
> > >>>>>
> > >>> Console
> > >>>
> > >>>>> STATUS | wrapper | 2007/11/27 11:12:58 | Launching a JVM...
> > >>>>> INFO | jvm 1 | 2007/11/27 11:12:59 | Wrapper (Version 3.2.0)
> > >>>>> http://wrapper.tanukisoftware.org
> > >>>>> INFO | jvm 1 | 2007/11/27 11:12:59 |
> > >>>>> INFO | jvm 1 | 2007/11/27 11:12:59 | WrapperSimpleApp: Unable
>
> > to
> > >>>>> locate the class org.apache.activemq.console.Main:
> > >>>>> java.lang.ClassNotFoundException: org.apache.activemq.console.Main
> > >>>>> INFO | jvm 1 | 2007/11/27 11:12:59 |
> > >>>>> INFO | jvm 1 | 2007/11/27 11:12:59 | WrapperSimpleApp Usage:
> > >>>>> INFO | jvm 1 | 2007/11/27 11:12:59 | java
> > >>>>> org.tanukisoftware.wrapper.WrapperSimpleApp {app_class}
> > >>>>>
> > >>> [app_parameters]
> > >>>
> > >>>>> INFO | jvm 1 | 2007/11/27 11:12:59 |
> > >>>>> INFO | jvm 1 | 2007/11/27 11:12:59 | Where:
> > >>>>> INFO | jvm 1 | 2007/11/27 11:12:59 | app_class: The
> > fully
> > >>>>> qualified class name of the application to run.
> > >>>>> INFO | jvm 1 | 2007/11/27 11:12:59 | app_parameters: The
> > >>>>>
> > >>> parameters
> > >>>
> > >>>>> that would normally be passed to the
> > >>>>> INFO | jvm 1 | 2007/11/27 11:12:59 |
> > >>>>>
> > >>> application.
> > >>>
> > >>>>> STATUS | wrapper | 2007/11/27 11:13:01 | <-- Wrapper Stopped
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>> --
> > >>>>> Best Regards
> > >>>>> Jeff
> > >>>>>
> > >>>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>
> > >> --
> > >> Best Regards
> > >> Jeff
> > >>
> > >>
> > >
> > >
> > >
> > >
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>
--
Best Regards
Jeff