Jahia Install Forum > Shutdown error -...

0 (0 Good)
0 (0 Bad)

Shutdown error - Jahia.bat

by  panoone »  2011/06/07 20:51

Hi guys,

Below is the common error/exception I receive when trying to shutdown Jahia using the default batch file. I hope it means more to you than it does to me.

We are running Jahia 4.1.1 w/ Tomcat 4.1 and j2sdk 4.2.10. Yes, an old version! frown But upgrade is still not possible at this stage due to a number of dependent legacy applications.

Regards,

Paul

Online Developer, ICT
CEO Sydney

8<--

Stopping service Tomcat-Standalone
20/05/2009 14:11:00 org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
WebappClassLoader: Lifecycle error : CL stopped
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1064)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1292)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95)
at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:301)
at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1191)
at java.io.ObjectStreamClass.access$1300(ObjectStreamClass.java:47)
at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:347)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:333)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:329)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1010)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at java.util.Hashtable.writeObject(Hashtable.java:806)
at sun.reflect.GeneratedMethodAccessor1983.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1429)
at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:852)
at org.apache.catalina.session.StandardManager.unload(StandardManager.java:489)
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:644)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3625)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:989)
at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:423)
at org.apache.catalina.core.StandardHost.remove(StandardHost.java:821)
at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:711)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:691)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1174)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1186)
at org.apache.catalina.core.StandardService.stop(StandardService.java:507)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178)
at org.apache.catalina.startup.Catalina.start(Catalina.java:494)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

  • Shutdown error - Jahia.bat
    2011/07/08 08:49

    panoone <p> Hi guys,<br /> <br /> Below is the common error/exception I receive when trying to shutdown Jahia using the default batch file. I hope it means more to you than it does to me.<br /> <br /> We are running Jahia 4.1.1 w/ Tomcat 4.1 and j2sdk 4.2.10. Yes, an old version! <img alt="frown" height="20" src="https://www.jahia.com/modules/assets/javascript/ckeditor/plugins/smiley/images/confused_smile.gif" title="frown" width="20" />&nbsp;But upgrade is still not possible at this stage due to a number of dependent legacy applications.<br /> <br /> Regards,<br /> <br /> Paul<br /> <br /> Online Developer, ICT<br /> CEO Sydney<br /> <br /> 8&lt;--<br /> <br /> Stopping service Tomcat-Standalone<br /> 20/05/2009 14:11:00 org.apache.coyote.http11.Http11Protocol destroy<br /> INFO: Stopping Coyote HTTP/1.1 on http-8080<br /> WebappClassLoader: Lifecycle error : CL stopped<br /> java.lang.Exception: Stack trace<br /> at java.lang.Thread.dumpStack(Thread.java:1064)<br /> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1292)<br /> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1252)<br /> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)<br /> at sun.misc.Unsafe.defineClass(Native Method)<br /> at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)<br /> at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)<br /> at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95)<br /> at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:301)<br /> at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1191)<br /> at java.io.ObjectStreamClass.access$1300(ObjectStreamClass.java:47)<br /> at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:347)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> at java.io.ObjectStreamClass.&lt;init&gt;(ObjectStreamClass.java:333)<br /> at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)<br /> at java.io.ObjectStreamClass.&lt;init&gt;(ObjectStreamClass.java:329)<br /> at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)<br /> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1010)<br /> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)<br /> at java.util.Hashtable.writeObject(Hashtable.java:806)<br /> at sun.reflect.GeneratedMethodAccessor1983.invoke(Unknown Source)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:324)<br /> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)<br /> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)<br /> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)<br /> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)<br /> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)<br /> at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1429)<br /> at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:852)<br /> at org.apache.catalina.session.StandardManager.unload(StandardManager.java:489)<br /> at org.apache.catalina.session.StandardManager.stop(StandardManager.java:644)<br /> at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3625)<br /> at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:989)<br /> at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:423)<br /> at org.apache.catalina.core.StandardHost.remove(StandardHost.java:821)<br /> at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:711)<br /> at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:691)<br /> at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)<br /> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)<br /> at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1174)<br /> at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1186)<br /> at org.apache.catalina.core.StandardService.stop(StandardService.java:507)<br /> at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178)<br /> at org.apache.catalina.startup.Catalina.start(Catalina.java:494)<br /> at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)<br /> at org.apache.catalina.startup.Catalina.process(Catalina.java:129)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:324)<br /> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)</p>

  • Number of messages  4
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Shutdown error - Jahia.bat

    by  shyrkov »  2011/06/07 20:51

    Hello Paul,

    the problem comes from the Tomcat's session manager, which tries to persist the active HTTP sessions on the server shutdown and is restoring them on the startup.
    We have by default disabled this manager in the Jahia 5 and 6 (as restoring session information is not working correctly by Tomcat in all the cases).

    Please refer to the [url=http#58;//tomcat
  • Re: Shutdown error - Jahia.bat
    2011/06/07 20:51

    shyrkov Hello Paul,<br/><br/>the problem comes from the Tomcat's session manager, which tries to persist the active HTTP sessions on the server shutdown and is restoring them on the startup.<br/>We have by default disabled this manager in the Jahia 5 and 6 (as restoring session information is not working correctly by Tomcat in all the cases).<br/><br/>Please refer to the [url=http#58;//tomcat

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Shutdown error - Jahia.bat

    by  panoone »  2011/06/07 20:51

     

    Hi Sergiy,

    Thanks for the quick response. I've been through the server.xml file (C:\Jahia\jahia4.1.1\tomcat\conf) but am unsure how to proceed.

    There is no Jahia context path. The only <Context...> reference I can find is:

    <Context path="/examples" docBase="examples" debug="0" reloadable="true" crossContext="true">

    This contains a <Manager...> element with saveOnrestart="true" but the whole block is commented. Am I looking at the right file??

    I can tell you that the path for our Jahia installation is /cms in the webapps directory. Should I have a context path for this? May this actually be my problem?

    Many thanks,

    Paul

  • Re: Shutdown error - Jahia.bat
    2011/07/08 08:51

    panoone <p> &nbsp;</p> <p> <title></title> </p> <p> Hi Sergiy,</p> <p> Thanks for the quick response. I&#39;ve been through the server.xml file (C:\Jahia\jahia4.1.1\tomcat\conf) but am unsure how to proceed.</p> <p> There is no Jahia context path. The only &lt;Context...&gt; reference I can find is:</p> <pre> &lt;Context path=&quot;/examples&quot; docBase=&quot;examples&quot; debug=&quot;0&quot; reloadable=&quot;true&quot; crossContext=&quot;true&quot;&gt;</pre> <p> This contains a &lt;Manager...&gt; element with saveOnrestart=&quot;true&quot; but the whole block is commented. Am I looking at the right file??</p> <p> I can tell you that the path for our Jahia installation is /cms in the webapps directory. Should I have a context path for this? May this actually be my problem?</p> <p> Many thanks,</p> <p> Paul</p>

  • Number of messages  4
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Shutdown error - Jahia.bat

    by  shyrkov »  2011/06/07 20:51

     

    Hi Paul,

     

    you can add the <Context/> element for you Jahia Web application into the server.xml file in the form:

    <Context path="/cms" docBase="cms" crossContext="true">
    
        <Manager pathname=""/>
    
    </Context>

    The <Context/> element is not mandatory for a Web application. If it is not present then the settings of the <DefaultContext/> will be taken. But in order to define a <Manager/> (session persistence), you need the <Context/> element for your Web app.

     

    Kind regards

    Sergiy

  • Re: Shutdown error - Jahia.bat
    2011/07/08 08:52

    shyrkov <p> &nbsp;</p> <p> <title></title> </p> <p> Hi Paul,</p> <p> &nbsp;</p> <p> you can add the &lt;Context/&gt; element for you Jahia Web application into the server.xml file in the form:</p> <pre> &lt;Context path=&quot;/cms&quot; docBase=&quot;cms&quot; crossContext=&quot;true&quot;&gt; &lt;Manager pathname=&quot;&quot;/&gt; &lt;/Context&gt;</pre> <p> The &lt;Context/&gt; element is not mandatory for a Web application. If it is not present then the settings of the &lt;DefaultContext/&gt; will be taken. But in order to define a &lt;Manager/&gt; (session persistence), you need the &lt;Context/&gt; element for your Web app.</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Shutdown error - Jahia.bat

    by  panoone »  2011/06/07 20:51

     

    Hi Sergiy,

     

    That's great. So I'm assuming then that certain <manager> settings are enabled by default and all I need to do is provide an empty path with no other parameters to stop this?

     

    Or should I be more explicit?

     

    e.g.

    <Context path="/cms" docBase="cms" crossContext="true">
    
        <Manager className="org.apache.catalina.session.PersistentManager"
    
            debug="0"
    
            saveOnRestart="false"
    
            maxActiveSessions="-1"
    
            minIdleSwap="-1"
    
            maxIdleSwap="-1"
    
            maxIdleBackup="-1">
    
              <Store className="org.apache.catalina.session.FileStore"/>
    
        </Manager>
    
    </Context>

    Sorry to belabour this point but I don't want to make several attempts at this as rebooting the server is disruptive to services.

     

    Thanks very much for your time,

     

    Paul

  • Re: Shutdown error - Jahia.bat
    2011/07/08 08:53

    panoone <p> &nbsp;</p> <p> <title></title> </p> <p> Hi Sergiy,</p> <p> &nbsp;</p> <p> That&#39;s great. So I&#39;m assuming then that certain &lt;manager&gt; settings are enabled by default and all I need to do is provide an empty path with no other parameters to stop this?</p> <p> &nbsp;</p> <p> Or should I be more explicit?</p> <p> &nbsp;</p> <p> e.g.</p> <pre> &lt;Context path=&quot;/cms&quot; docBase=&quot;cms&quot; crossContext=&quot;true&quot;&gt; &lt;Manager className=&quot;org.apache.catalina.session.PersistentManager&quot; debug=&quot;0&quot; saveOnRestart=&quot;false&quot; maxActiveSessions=&quot;-1&quot; minIdleSwap=&quot;-1&quot; maxIdleSwap=&quot;-1&quot; maxIdleBackup=&quot;-1&quot;&gt; &lt;Store className=&quot;org.apache.catalina.session.FileStore&quot;/&gt; &lt;/Manager&gt; &lt;/Context&gt;</pre> <p> Sorry to belabour this point but I don&#39;t want to make several attempts at this as rebooting the server is disruptive to services.</p> <p> &nbsp;</p> <p> Thanks very much for your time,</p> <p> &nbsp;</p> <p> Paul</p>

  • Number of messages  4
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Shutdown error - Jahia.bat

    by  shyrkov »  2011/06/07 20:51

     

    Hello Paul,

     

    yes, there are default <Manager/> parameters.

    In case of

    <Manager pathname=""/>

    you use the standard implementation of the Manager (class org.apache.catalina.session.StandardManager). By providing empty pathname value, you disable the persistence.

    We use this configuration in all Jahia releases (from 5.0 upwards) by default to ensure, we are not persisting and restoring partially consistent sessions between server restarts.

    I would not use the org.apache.catalina.session.PersistentManager, noted with a warning "WARNING - Use of this Manager implementation has not been thoroughly tested, and should be considered experimental!" in the Server Configuration Reference  Providing empty path for the standard manager implementation is enough.

    Kind regards

    Sergiy

  • Re: Shutdown error - Jahia.bat
    2011/07/08 08:54

    shyrkov <p> &nbsp;</p> <p> <title></title> </p> <p> Hello Paul,</p> <p> &nbsp;</p> <p> yes, there are default &lt;Manager/&gt; parameters.</p> <p> In case of</p> <pre> &lt;Manager pathname=&quot;&quot;/&gt;</pre> <p> you use the standard implementation of the Manager (class org.apache.catalina.session.StandardManager). By providing empty pathname value, you disable the persistence.</p> <p> We use this configuration in all Jahia releases (from 5.0 upwards) by default to ensure, we are not persisting and restoring partially consistent sessions between server restarts.</p> <p> I would not use the org.apache.catalina.session.PersistentManager, noted with a warning &quot;WARNING - Use of this Manager implementation has not been thoroughly tested, and should be considered experimental!&quot; in the <a href="http://tomcat.apache.org/tomcat-4.1-doc/config/manager.html">Server Configuration Reference</a>&nbsp; Providing empty path for the standard manager implementation is enough.</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Shutdown error - Jahia.bat

    by  panoone »  2011/06/07 20:51

    Hi Sergiy,

    I made the updates and performed our first clean Jahia shutdown in over 2 years!

    As always, you are a legend! Thanks, mate. laugh

    Paul

  • Re: Shutdown error - Jahia.bat
    2011/07/08 08:55

    panoone <p> Hi Sergiy,<br /> <br /> I made the updates and performed our first clean Jahia shutdown in over 2 years!<br /> <br /> As always, you are a legend! Thanks, mate. <img alt="laugh" height="20" src="https://www.jahia.com/modules/assets/javascript/ckeditor/plugins/smiley/images/teeth_smile.gif" title="laugh" width="20" /><br /> <br /> Paul</p>

  • Number of messages  4
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page