<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-signature">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>
<small><small><font face="Courier New, Courier, monospace">#!/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>
</font></small></small><br>
<br>
But executing cmsshell.sh results in just hanging without issueing
any prompt:<br>
<small><small><font face="Courier New, Courier, monospace"><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.</font></small></small><br>
<br>
Hangs here....<br>
<br>
-- <br>
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
</div>
</body>
</html>