<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks, Kai. But it doesn't seem to
      solve the problem, that cmsshell.sh is hanging and doesn't issue a
      prompt.<br>
      <br>
      Am 17.01.2015 um 17:39 schrieb Kai Widmann:<br>
    </div>
    <blockquote
cite="mid:C55BD5BAE254404F9AC26C237DA9BB93014240EBF3CD@EXCHANGE.mediaworx.de"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi
            Chris,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">this is due to a bug in the Linux version of
            the CmsShell, there is a relative path set in the Classpath
            where an absolute path is needed.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">We had the same problem and fixed it. There is
            a pull request on GitHub that is already merged but it will
            only become available in the next version of OpenCms.
            Meanwhile there are two options: start cmsshell only from
            the same directory where cmsshell.sh is located (WEB-INF I
            think), or change cmsshell.sh according to our Pull Request:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><a moz-do-not-send="true"
href="https://github.com/mediaworx/opencms-core/commit/53ae1e0bc07aadc46413da755517c1061adb7759">https://github.com/mediaworx/opencms-core/commit/53ae1e0bc07aadc46413da755517c1061adb7759</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">Cheers<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">Kai<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">Von:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                <a class="moz-txt-link-abbreviated" href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a>
                [<a class="moz-txt-link-freetext" href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</a>] <b>Im Auftrag
                  von </b>Christoph Kukulies<br>
                <b>Gesendet:</b> Freitag, 16. Januar 2015 17:48<br>
                <b>An:</b> The OpenCms mailing list<br>
                <b>Betreff:</b> Re: [opencms-dev] opencms 9.5.0
                cmsshell.sh<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">Just to add another observation during
            opencms startup:<br>
            <br>
            16 Jan 2015 17:34:43,490  INFO
            [pencms.module.CmsModuleManager: 795] . Module configuration
            : initializing module class
            org.opencms.search.solr.spellchecking.CmsSpellcheckingModuleAction<br>
            16 Jan 2015 17:34:43,491  INFO
            [pencms.module.CmsModuleManager: 786] . Module configuration
            : could not create instance for module
            "org.opencms.frontend.templatetwo"<br>
            java.lang.ClassNotFoundException:
            org.opencms.frontend.templatetwo.CmsTemplateModuleAction<br>
                    at
            java.net.URLClassLoader$1.run(URLClassLoader.java:366)<br>
                    at
            java.net.URLClassLoader$1.run(URLClassLoader.java:355)<br>
                    at
            java.security.AccessController.doPrivileged(Native Method)<br>
                    at
            java.net.URLClassLoader.findClass(URLClassLoader.java:354)<br>
                    at
            java.lang.ClassLoader.loadClass(ClassLoader.java:425)<br>
                    at
            sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)<br>
                    at
            java.lang.ClassLoader.loadClass(ClassLoader.java:358)<br>
                    at java.lang.Class.forName0(Native Method)<br>
                    at java.lang.Class.forName(Class.java:191)<br>
                    at
org.opencms.module.CmsModuleManager.initialize(CmsModuleManager.java:784)<br>
                    at
            org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:1350)<br>
                    at
            org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1970)<br>
                    at
            org.opencms.main.CmsShell.<init>(CmsShell.java:526)<br>
                    at org.opencms.main.CmsShell.main(CmsShell.java:604)<br>
            16 Jan 2015 17:34:43,493  INFO
            [pencms.module.CmsModuleManager: 795] . Module configuration
            : initializing module class
            org.opencms.workplace.CmsWorkplaceAction<br>
            16 Jan 2015 17:34:43,493  INFO
            [pencms.module.CmsModuleManager: 820] . Module configuration
            : 3 module classes initialized<br>
            <br>
            (For backward compatibility I've loaded
            org.opencms.frontend.templatetwo)<br>
            <br>
            <br>
            <br>
            Am 16.01.2015 um 17:03 schrieb Christoph Kukulies:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <div>
            <p class="MsoNormal">Some remarks on running cmsshell.sh
              under ubuntu (Tomcat 7)<br>
              <br>
              cmsshell.sh is run by<br>
              #!/bin/sh<br>
              <br>
              (which doesn't know of pushd/popd) , so I changed that to
              our beloved /bin/bash<br>
              <br>
              The whole cmsshell.sh now looks with me here under Ubuntu 
              Ubuntu 14.04.1 LTS:<br>
              <br>
              <span style="font-size:7.5pt;font-family:"Courier
                New"">#!/bin/bash<br>
                # Start script for the OpenCms Shell<br>
                #<br>
                # Please make sure that "servlet-api.jar" and
                "jsp-api.jar" are found.<br>
                #<br>
                <br>
                # get path to opencms base directory<br>
                pushd `dirname $0` > /dev/null<br>
                OPENCMS_BASE=`dirs +0 -l`<br>
                popd > /dev/null<br>
                <br>
                # get path to tomcat home<br>
                if [ -z "$TOMCAT_HOME" ]; then<br>
                        [ -n "$CATALINA_HOME" ] &&
                TOMCAT_HOME="$CATALINA_HOME"<br>
                        [ -z "$TOMCAT_HOME" ] &&
                TOMCAT_HOME="$OPENCMS_BASE"/../../..<br>
                fi<br>
                <br>
                TOMCAT_CLASSPATH=""<br>
                # Support for tomcat 5<br>
                for JAR in ${TOMCAT_HOME}/common/lib/*.jar; do<br>
                   TOMCAT_CLASSPATH="${TOMCAT_CLASSPATH}:${JAR}"<br>
                done<br>
                for JAR in ${TOMCAT_HOME}/shared/lib/*.jar; do<br>
                   TOMCAT_CLASSPATH="${TOMCAT_CLASSPATH}:${JAR}"<br>
                done<br>
                # Support for tomcat 6<br>
                for JAR in ${TOMCAT_HOME}/lib/*.jar; do<br>
                   TOMCAT_CLASSPATH="${TOMCAT_CLASSPATH}:${JAR}"<br>
                done<br>
                <br>
                OPENCMS_CLASSPATH=""<br>
                for JAR in ${OPENCMS_BASE}/lib/*.jar; do<br>
                   OPENCMS_CLASSPATH="${OPENCMS_CLASSPATH}:${JAR}"<br>
                done<br>
                <br>
                SERVLET_API=/usr/share/java/servlet-api-3.0.jar<br>
                JSP_API=/usr/share/java/jsp-api-2.2.jar<br>
                <br>
                java -classpath
                "${SERVLET_API}:${JSP_API}:${OPENCMS_CLASSPATH}:${TOMCAT_CLASSPATH}:classes"
                org.opencms.main.CmsShell -base="${OPENCMS_BASE}" "$@"<br>
              </span><br>
              <br>
              But executing cmsshell.sh results in just hanging without
              issueing any prompt:<br>
              <span style="font-size:7.5pt;font-family:"Courier
                New""><br>
                root@kuku:/var/lib/tomcat7/webapps/ROOT/WEB-INF#
                ./cmsshell.sh<br>
                OpenCms WEB-INF path: 
                "/var/lib/tomcat7/webapps/ROOT/WEB-INF".<br>
                OpenCms property file:
                "/var/lib/tomcat7/webapps/ROOT/WEB-INF/config/opencms.properties".<br>
                <br>
                Not starting JLAN server because no config file was
                found at
                /var/lib/tomcat7/webapps/ROOT/WEB-INF/config/jlanConfig.xml<br>
                <br>
                Welcome to the OpenCms shell!<br>
                <br>
                <br>
                This is OpenCms 9.5.0.<br>
                <br>
                Copyright (c) 2014 Alkacon Software GmbH<br>
                OpenCms comes with ABSOLUTELY NO WARRANTY<br>
                This is free software, and you are welcome to<br>
                redistribute it under certain conditions.<br>
                Please see the GNU Lesser General Public Licence for<br>
                further details.</span><br>
              <br>
              Hangs here....<o:p></o:p></p>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
    </div>
  </body>
</html>