-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 5.8.0-HF05
-
Fix Version/s: None
-
Component/s: nuxeoctl start/stop/admin
I follow the documentation here
Problem 1 :
- The ./bin/nuxeoctl failed because the endorsed directory doesn't exist
Workaround found
- If I create the $NUXEO_HOME/endorsed the zip package is created
Problem 2:
- I unzip the pack created previously into a tomcat 7.0.50 downloaded here
- I start the server, I have the following error
Grave: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/nuxeo]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:634) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1230) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1876) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.NoClassDefFoundError: Lorg/apache/commons/logging/Log; at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2397) at java.lang.Class.getDeclaredFields(Class.java:1806) at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106) at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:263) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:92) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65) at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:407) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:883) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:378) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5343) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 10 more Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.Log at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547) ... 24 more
Workaround found
I copy the following libs from my nuxeo distribution from the lib directory
- jcl-over-slf4j-1.7.5.jar
- slf4j-api-1.7.5.jar
- slf4j-log4j12-1.7.5.jar
Into the $TOMCAT/lib directory
Problem 3 :
So I restart my server and I have the following error :
16:35:42,049 ERROR [FrameworkLoader] Failed to install bundle: /opt/tomcat/static/apache-tomcat-7.0.50/webapps/nuxeo/WEB-INF/lib/cxf-rt-core-2.6.8.jar org.osgi.framework.BundleException: Failed to start bundle at: /opt/tomcat/static/apache-tomcat-7.0.50/webapps/nuxeo/WEB-INF/lib/cxf-rt-core-2.6.8.jar with activator: org.apache.cxf.bus.osgi.CXFActivator at org.nuxeo.osgi.BundleImpl.start(BundleImpl.java:308) at org.nuxeo.osgi.BundleRegistry.doRegister(BundleRegistry.java:178) at org.nuxeo.osgi.BundleRegistry.register(BundleRegistry.java:127) at org.nuxeo.osgi.BundleRegistry.install(BundleRegistry.java:99) at org.nuxeo.osgi.OSGiAdapter.install(OSGiAdapter.java:189) at org.nuxeo.osgi.application.loader.FrameworkLoader.install(FrameworkLoader.java:265) at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:220) at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:112) at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:110) at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:78) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4961) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5455) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:634) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1230) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1876) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.UnsupportedOperationException: BundleContext.createFilter() was not yet implemented at org.nuxeo.osgi.OSGiBundleContext.createFilter(OSGiBundleContext.java:81) at org.osgi.util.tracker.ServiceTracker.<init>(ServiceTracker.java:200) at org.apache.cxf.bus.osgi.CXFActivator.start(CXFActivator.java:59) at org.nuxeo.osgi.BundleImpl.start(BundleImpl.java:301) ... 22 more
Workaround found
I remove the following jar (because the runtime consider them as bundle but they are not) :
- cxf-api-2.6.8.jar
- cxf-rt-bindings-soap-2.6.8.jar
- cxf-rt-bindings-xml-2.6.8.jar
- cxf-rt-core-2.6.8.jar
- cxf-rt-databinding-jaxb-2.6.8.jar
- cxf-rt-frontend-jaxws-2.6.8.jar
- cxf-rt-frontend-simple-2.6.8.jar
- cxf-rt-transports-http-2.6.8.jar
- cxf-rt-ws-addr-2.6.8.jar
- cxf-rt-ws-policy-2.6.8.jar
Problem 4 (without workaround):
I rerestart the server and I have just the following error (without any other)
16:39:37,792 WARN [SeamPhaseListener] There should only be one Seam phase listener per application janv. 21, 2014 4:39:37 PM org.apache.catalina.core.StandardContext startInternal Grave: Error listenerStart
And if I try to access to localhost:8080/nuxeo I have a 404 error into my web page.
See my logs attached to this issue
- duplicates
-
NXP-13729 Fix nuxeoctl pack after Tomcat 7 upgrade
- Resolved