On 20.12.2016 22:08, Mary Wiegand wrote:
Hi,

I'm installing tomcat v8.5.9 on ubuntu 16.04

this is my tomcat.service file:

#System unit file for tomcat
[Unit]
Description=Apache Tomcat Web Application Container
After=network.target

[Service]
Type=forking

Environment=JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre/bin/java
Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat
Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server-XX:+UseParallelGC'
Environment='JAVA_OPTS=-Djava.awt.headless=true
-Djava.security.edg=file:/dev/./urandom'

ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh

User=tomcat
Group=tomcat
UMask=0007
RestartSec=10
Restart=always

[Install]
WantedBy=multi-user.target


This is what I get when I check the journalctl -xe:

tomcat.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
PID file found but no matching process was found. Stop aborted.
tomcat.service: Control process exited, code=exited status=1
tomcat.service: Unit entered failed state.
tomcat.service:Failed with result 'exit-code'.

Anyone have any ideas for me on where to start looking for the
invalidargument?


Hi.

I don't think that whatever happens above is in the Tomcat code, from the standard Tomcat distribution at http://tomcat.apache.org. It looks more like something which happens in whatever code the Ubuntu Tomcat package is using to start/stop the Tomcat service.
Is /opt/tomcat really the directory in which the Ubuntu Tomcat package installs 
Tomcat ?
Or are you mixing up an Ubuntu Tomcat package and a Tomcat version downloaded from the Tomcat website ?

(It is not the Tomcat development team which creates these packages, it is someone of the Ubuntu distribution team. Therefore, people on this list would not necessarily know what is in this package or how to help you. You may have better luck / a quicker response asking on an Ubuntu forum).




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to