Par contre j'ai désormais un autre problème sous Debian
Je ne parviens pas à lancer la commande [b]startup.sh[/b] en mode nohup. l'application démarre puis s'arrête ( voir les fichiers squash-tm.log et stderrout.log en pièce jointe
Quelle serait la procédure à suivre pour démarrer correctement l'application dans une session SSH ?
EDIT : J'ai retiré les logs pour améliorer la lisibilité des messages
probleme de démarrage sur debian
Re:probleme de démarrage sur debian
Merci pour votre réponse détaillée.
Bon normalement tout est OK et l'application démarre
Par contre dans les log J'ai des nouvelles erreurs (j'ai changé de port) qui n'ont pas l'air de pertuber le démarrage.
Quelques exemples :
[u][b]dans stderror.log
[/b][/u]
[pre]2013-03-01 10:45:17.500::WARN: Nested in javax.servlet.ServletException: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/context]
Offending resource: URL [bundle://70.0:0/WEB-INF/squashtest.csp.core-servlet.xml]
:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/context]
Offending resource: URL [bundle://70.0:0/WEB-INF/squashtest.csp.core-servlet.xml]
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
[/pre]
[u][b]dans squash-tm.log[/b][/u]
[pre]
[/pre]
[pre]WebExtender-Init WARN 01/03 10:44:07 [org.springframework.aop.framework.Cglib2AopProxy] - Unable to proxy method [public final void org.mortbay.component.AbstractLifeCycle.stop() throws java.lang.Exception] because it is final: All calls to this method via a proxy will be routed directly to the proxy.[/pre]
[pre]Spring DM context shutdown thread WARN 01/03 10:44:12 [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext] - Exception thrown from LifecycleProcessor on context close[/pre]
[pre]java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: OsgiBundleXmlApplicationContext(bundle=org.squashtest.tm.plugin.report.qualitativecoverage, config=osgibundle:/META-INF/spring/*.xml): startup date [Fri Mar 01 10:43:54 CET 2013]; root of context hierarchy[/pre]
[pre] at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:329)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1015[/pre]
[pre] at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.doClose(AbstractOsgiBundleApplicationContext.java:188)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$501(AbstractDelegatedExecutionApplicationContext.java:62)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$2.run(AbstractDelegatedExecutionApplicationContext.java:196)[/pre]
[pre] at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:87)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDelegatedExecutionApplicationContext.java:192)[/pre]
[pre] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:383)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegatedExecutionApplicationContext.java:216)[/pre]
[pre] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:970)[/pre]
[pre] at org.springframework.osgi.extender.internal.activator.LifecycleManager.closeApplicationContext(LifecycleManager.java:328)[/pre]
[pre] at org.springframework.osgi.extender.internal.activator.LifecycleManager.access$200(LifecycleManager.java:63)[/pre]
[pre] at org.springframework.osgi.extender.internal.activator.LifecycleManager$2.run(LifecycleManager.java:303)[/pre]
[pre] at org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(RunnableTimedExecution.java:57)[/pre]
[pre] at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)[/pre]
[pre] at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)[/pre]
[pre]Timer-1 WARN 01/03 10:44:21 [org.springframework.aop.framework.Cglib2AopProxy] - Unable to proxy method [public final void org.squashtest.tm.api.report.ReportPlugin.afterPropertiesSet() throws java.lang.Exception] because it is final: All calls to this method via a proxy will be routed directly to the proxy.[/pre]
[pre]fileinstall-../plugins ERROR 01/03 10:44:22 [org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution] - Closing runnable for context OsgiBundleXmlApplicationContext(bundle=org.squashtest.tm.plugin.report.qualitativecoverage, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs[/pre]
[pre]SpringOsgiExtenderThread-9 ERROR 01/03 10:44:22 [org.springframework.osgi.extender.internal.activator.ContextLoaderListener] - Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=org.squashtest.tm.plugin.report.qualitativecoverage, config=osgibundle:/META-INF/spring/*.xml))[/pre]
[pre]org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Can only register services while bundle is active or activating.[/pre]
[pre] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[/pre]
[pre] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[/pre]
[pre] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)[/pre]
[pre] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:62)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:327)[/pre]
[pre] at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:87)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:292)[/pre]
[pre] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138)[/pre]
[pre] at java.lang.Thread.run(Thread.java:636)[/pre]
[pre]Caused by: java.lang.IllegalStateException: Can only register services while bundle is active or activating.[/pre]
[pre] at org.apache.felix.framework.Felix.registerService(Felix.java:3209)[/pre]
[pre] at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)[/pre]
[pre] at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:387)[/pre]
[pre] at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:345)[/pre]
[pre] at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.registerService(OsgiServiceFactoryBean.java:100)[/pre]
[pre] at org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.registerService(ExporterController.java:40) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.startExporter(DefaultMandatoryDependencyManager.java:333)[/pre]
[pre] at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.checkIfExporterShouldStart(DefaultMandatoryDependencyManager.java:271)[/pre]
[pre] at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.discoverDependentImporterFor(DefaultMandatoryDependencyManager.java:262)[/pre]
[pre] at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.addServiceExporter(DefaultMandatoryDependencyManager.java:192)[/pre]
[pre] at org.springframework.osgi.service.dependency.internal.MandatoryDependencyBeanPostProcessor.postProcessAfterInitialization(MandatoryDependencyBeanPostProcessor.java:45)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1426)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[/pre]
[pre] ... 13 more[/pre]
[u][b]
[/b][/u]
Bon normalement tout est OK et l'application démarre
Par contre dans les log J'ai des nouvelles erreurs (j'ai changé de port) qui n'ont pas l'air de pertuber le démarrage.
Quelques exemples :
[u][b]dans stderror.log
[/b][/u]
[pre]2013-03-01 10:45:17.500::WARN: Nested in javax.servlet.ServletException: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/context]
Offending resource: URL [bundle://70.0:0/WEB-INF/squashtest.csp.core-servlet.xml]
:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/context]
Offending resource: URL [bundle://70.0:0/WEB-INF/squashtest.csp.core-servlet.xml]
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
[/pre]
[u][b]dans squash-tm.log[/b][/u]
[pre]
[/pre]
[pre]WebExtender-Init WARN 01/03 10:44:07 [org.springframework.aop.framework.Cglib2AopProxy] - Unable to proxy method [public final void org.mortbay.component.AbstractLifeCycle.stop() throws java.lang.Exception] because it is final: All calls to this method via a proxy will be routed directly to the proxy.[/pre]
[pre]Spring DM context shutdown thread WARN 01/03 10:44:12 [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext] - Exception thrown from LifecycleProcessor on context close[/pre]
[pre]java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: OsgiBundleXmlApplicationContext(bundle=org.squashtest.tm.plugin.report.qualitativecoverage, config=osgibundle:/META-INF/spring/*.xml): startup date [Fri Mar 01 10:43:54 CET 2013]; root of context hierarchy[/pre]
[pre] at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:329)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1015[/pre]
[pre] at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.doClose(AbstractOsgiBundleApplicationContext.java:188)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$501(AbstractDelegatedExecutionApplicationContext.java:62)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$2.run(AbstractDelegatedExecutionApplicationContext.java:196)[/pre]
[pre] at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:87)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDelegatedExecutionApplicationContext.java:192)[/pre]
[pre] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:383)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegatedExecutionApplicationContext.java:216)[/pre]
[pre] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:970)[/pre]
[pre] at org.springframework.osgi.extender.internal.activator.LifecycleManager.closeApplicationContext(LifecycleManager.java:328)[/pre]
[pre] at org.springframework.osgi.extender.internal.activator.LifecycleManager.access$200(LifecycleManager.java:63)[/pre]
[pre] at org.springframework.osgi.extender.internal.activator.LifecycleManager$2.run(LifecycleManager.java:303)[/pre]
[pre] at org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(RunnableTimedExecution.java:57)[/pre]
[pre] at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)[/pre]
[pre] at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)[/pre]
[pre]Timer-1 WARN 01/03 10:44:21 [org.springframework.aop.framework.Cglib2AopProxy] - Unable to proxy method [public final void org.squashtest.tm.api.report.ReportPlugin.afterPropertiesSet() throws java.lang.Exception] because it is final: All calls to this method via a proxy will be routed directly to the proxy.[/pre]
[pre]fileinstall-../plugins ERROR 01/03 10:44:22 [org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution] - Closing runnable for context OsgiBundleXmlApplicationContext(bundle=org.squashtest.tm.plugin.report.qualitativecoverage, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs[/pre]
[pre]SpringOsgiExtenderThread-9 ERROR 01/03 10:44:22 [org.springframework.osgi.extender.internal.activator.ContextLoaderListener] - Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=org.squashtest.tm.plugin.report.qualitativecoverage, config=osgibundle:/META-INF/spring/*.xml))[/pre]
[pre]org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Can only register services while bundle is active or activating.[/pre]
[pre] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[/pre]
[pre] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[/pre]
[pre] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)[/pre]
[pre] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:62)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:327)[/pre]
[pre] at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:87)[/pre]
[pre] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:292)[/pre]
[pre] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138)[/pre]
[pre] at java.lang.Thread.run(Thread.java:636)[/pre]
[pre]Caused by: java.lang.IllegalStateException: Can only register services while bundle is active or activating.[/pre]
[pre] at org.apache.felix.framework.Felix.registerService(Felix.java:3209)[/pre]
[pre] at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)[/pre]
[pre] at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:387)[/pre]
[pre] at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:345)[/pre]
[pre] at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.registerService(OsgiServiceFactoryBean.java:100)[/pre]
[pre] at org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.registerService(ExporterController.java:40) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.startExporter(DefaultMandatoryDependencyManager.java:333)[/pre]
[pre] at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.checkIfExporterShouldStart(DefaultMandatoryDependencyManager.java:271)[/pre]
[pre] at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.discoverDependentImporterFor(DefaultMandatoryDependencyManager.java:262)[/pre]
[pre] at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.addServiceExporter(DefaultMandatoryDependencyManager.java:192)[/pre]
[pre] at org.springframework.osgi.service.dependency.internal.MandatoryDependencyBeanPostProcessor.postProcessAfterInitialization(MandatoryDependencyBeanPostProcessor.java:45)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1426)[/pre]
[pre] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[/pre]
[pre] ... 13 more[/pre]
[u][b]
[/b][/u]