This sequence seems fine to me if you use the InstallationService.loadNewInstaller. Check the JBI spec for more infos, but if you install your component using jmx, there are several steps to perform. The next one is to really install your component using the newly created installer install method. Then, you will be able to start your component using the LifeCycle mbean for the component.
For the servicemix-jms, it looks like you miss the xstream jar in your classpath. Cheers, Guillaume Nodet On 3/3/06, Charles Souillard <[EMAIL PROTECTED]> wrote: > > Hi all, > > I am trying to install my SE to SM web app and it is not going well... > In fact, the folloing sequence call is initiated by SM when I give my > archive url in JMX console : > > BaseBootstrap.constructor > BaseBootstrap.init > Initializing bootstrap > BaseBootstrap.doInit > BaseBootstrap.getExtensionMBean > Bootstrap initialized > Bootstrap onInstall > Bootstrap onInstall done > BaseComponent.constructor > OrchestraComponent.createLifeCycle > BaseLifeCycle.constructor > OrchestraLifeCycle.constructor > BaseComponent.createRegistry > Registry.constructor > OrchestraComponent.createServiceUnitManager > AbstractDeployer.constructor > BaseServiceUnitManager.constructor > 2006-03-03 14:50:19,061 : JBIContainer.activateComponent : Activating > component for: [container=defaultJBI,name=Orchestra,id=Orchestra] with > service: null component: [EMAIL PROTECTED] > BaseBootstrap.cleanUp > Cleaning up bootstrap > BaseBootstrap.doCleanUp > Bootstrap cleaned up > > but then nothing happens... > > So I tried to install given archives like the jms one available in > components directory (I am working with svn of today) and I get the > following error. > > Can you help me ? > > Thanks a lot > Charles > > > 2006-03-03 14:48:07,774 : AutoDeploymentService$2.run : Directory: > install: Archive changed: processing servicemix-jms-3.0-SNAPSHOT.zip ... > 2006-03-03 14:48:07,799 : AutoDeploymentService.unpackLocation : > Unpacked archive > /home/souillac/serviceMix/install/servicemix-jms-3.0-SNAPSHOT.zip to > /home/souillac/serviceMix/wdir/defaultJBI/tmp/servicemix- > jms-3.0-SNAPSHOT.0.tmp > 2006-03-03 14:48:07,818 : XmlBeanDefinitionReader.loadBeanDefinitions : > Loading XML bean definitions from URL > [ > file://home/souillac/serviceMix/wdir/defaultJBI/tmp/servicemix-jms-3.0-SNAPSHOT.0.tmp/META-INF/jbi.xml > ] > 2006-03-03 14:48:08,048 : > AbstractRefreshableApplicationContext.refreshBeanFactory : Bean factory > for application context > [org.apache.xbean.spring.context.FileSystemXmlApplicationContext > ;hashCode=3715728]: > org.springframework.beans.factory.support.DefaultListableBeanFactory > defining beans [installationDescriptorExtension,jbi]; root of > BeanFactory hierarchy > 2006-03-03 14:48:08,048 : AbstractApplicationContext.refresh : 2 beans > defined in application context > [org.apache.xbean.spring.context.FileSystemXmlApplicationContext > ;hashCode=3715728] > 2006-03-03 14:48:08,049 : AbstractApplicationContext.initMessageSource : > Unable to locate MessageSource with name 'messageSource': using default > [EMAIL PROTECTED] > 2006-03-03 14:48:08,055 : > AbstractApplicationContext.initApplicationEventMulticaster : Unable to > locate ApplicationEventMulticaster with name > 'applicationEventMulticaster': using default > [ > [EMAIL PROTECTED] > ] > 2006-03-03 14:48:08,056 : > DefaultListableBeanFactory.preInstantiateSingletons : Pre-instantiating > singletons in factory > [org.springframework.beans.factory.support.DefaultListableBeanFactory > defining beans [installationDescriptorExtension,jbi]; root of > BeanFactory hierarchy] > 2006-03-03 14:48:08,071 : AutoDeploymentService.updateArchive : > Uninstalling Component: servicemix-jms > 2006-03-03 14:48:08,077 : InstallationService.doInstallComponent : moved > /home/souillac/serviceMix/wdir/defaultJBI/tmp/servicemix- > jms-3.0-SNAPSHOT.0.tmp > to > > /home/souillac/serviceMix/wdir/defaultJBI/components/servicemix-jms/version_1/installation > 2006-03-03 14:48:08,171 : JBIContainer.activateComponent : Activating > component for: > [container=defaultJBI,name=servicemix-jms,id=servicemix-jms] with > service: null component: [EMAIL PROTECTED] > 2006-03-03 14:48:08,189 : AutoDeploymentService.monitorDirectory : > Automatic install of > /home/souillac/serviceMix/install/servicemix-jms-3.0-SNAPSHOT.zip failed > errorCode: 0 > at > org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java > :323) > at > EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.NoClassDefFoundError: > com/thoughtworks/xstream/io/HierarchicalStreamDriver > at > > org.apache.servicemix.jbi.framework.LocalComponentConnector.writeRunningState > (LocalComponentConnector.java:338) > at > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.persistRunningState > (ComponentMBeanImpl.java:225) > at > org.apache.servicemix.jbi.framework.InstallerMBeanImpl.install( > InstallerMBeanImpl.java:138) > at > org.apache.servicemix.jbi.framework.InstallationService.install( > InstallationService.java:369) > at > org.apache.servicemix.jbi.framework.InstallationService.install( > InstallationService.java:342) > at > org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive( > AutoDeploymentService.java:208) > at > org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run( > AutoDeploymentService.java:517) > at > org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java > :291) > ... 2 more > Exception in thread "Timer-3" java.lang.NoClassDefFoundError: > com/thoughtworks/xstream/io/HierarchicalStreamDriver > at > org.apache.servicemix.jbi.framework.AutoDeploymentService.persistState( > AutoDeploymentService.java:560) > at > org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory > (AutoDeploymentService.java:531) > at > org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200( > AutoDeploymentService.java:61) > at > org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run( > AutoDeploymentService.java:478) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > >
