search for: tomcat_user

Displaying 3 results from an estimated 3 matches for "tomcat_user".

2017 May 04
0
running tomcat as non-root user.. (/var/run pidfile issue)
...- See the systemd-tmpfiles(8) and tmpfiles.d(5) man pages. After you install that file, do systemd-tmpfiles --create The second method is to add an ExecStartPre to /usr/lib/systemd/system/tomcat.service, e.g., [Service] Type=simple EnvironmentFile=/etc/sysconfig/tomcat # this assumes that TOMCAT_USER is defined correctly # in the EnvironmentFile ExecStartPre=/usr/bin/install -d \ -o ${TOMCAT_USER} -m 0700 /run/tomcat ExecStart=/usr/libexec/tomcat/server start # etc etc If you go that route, then after editing the service file, do systemctl daemon-reload systemctl start tomcat I'...
2017 May 04
2
running tomcat as non-root user.. (/var/run pidfile issue)
hey folks, we are migrating our tomcat setup over to centos 7. Im converting init-scripts over to systemd services and whatnot.. One thing that Ive noticed is that my systemd startup script cant seem to write to /var/run as a non-root user to drop a pidfile.. If I create a directory in /var/run owned by my user, it gets wiped out on reboot. Ive searched and found this
2009 Mar 30
0
Problem with Tomcat
...ME="/usr/share/tomcat5" JASPER_HOME="/usr/share/tomcat5" CATALINA_TMPDIR="/usr/share/tomcat5/temp" JAVA_ENDORSED_DIRS="/usr/share/tomcat5/common/endorsed" JAVA_OPTS="$JAVA_OPTS -Dcatalina.ext.dirs=$CATALINA_HOME/shared/lib:$CATALINA_HOME/common/lib" TOMCAT_USER="tomcat" SHUTDOWN_WAIT=30 CATALINA_PID=/var/run/tomcat5.pid And var/log/tomcat5/catalina.out has: SEVERE: Begin event threw error java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defin...