You are not logged in.

#1 2020-09-13 12:50:15

synacktic
Member
Registered: 2020-09-13
Posts: 4

Tomcat9 refuses to start

Hi,

tried getting it to work via the method described in the tomcat page on the wiki. Installed tomcat9 from official repos, defined the needed users in the tomcat-users.xml
Refuses to start when trying to enable via

sudo systemctl start tomcat9

i get:

Subject: A start job for unit tomcat9.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit tomcat9.service has finished successfully.
░░ 
░░ The job identifier is 1448.
Sep 13 14:28:12 base audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=tomcat9 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 13 14:28:12 base kernel: audit: type=1130 audit(1600000092.239:80): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=tomcat9 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 13 14:28:12 base sudo[1506]: pam_unix(sudo:session): session closed for user root
Sep 13 14:28:12 base audit[1506]: USER_END pid=1506 uid=0 auid=1000 ses=2 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
Sep 13 14:28:12 base audit[1506]: CRED_DISP pid=1506 uid=0 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
Sep 13 14:28:12 base jsvc.exec[1513]: 2020-09-13 14:28:12 1514 jsvc.exec error: Cannot find any VM in Java Home /usr/lib/jvm/default-runtime
                                      2020-09-13 14:28:12 1514 jsvc.exec error: Cannot locate JVM library file
Sep 13 14:28:12 base jsvc.exec[1513]: 2020-09-13 14:28:12 1512 jsvc.exec error: Service exit with a return value of 1
Sep 13 14:28:12 base kernel: audit: type=1106 audit(1600000092.243:81): pid=1506 uid=0 auid=1000 ses=2 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
Sep 13 14:28:12 base kernel: audit: type=1104 audit(1600000092.243:82): pid=1506 uid=0 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
Sep 13 14:28:12 base systemd[1]: tomcat9.service: Control process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: [url]https://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
░░ 
░░ An ExecStop= process belonging to unit tomcat9.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 255.

running openjdk-14 and the file is present. tried it with openjdk-11, problem persists. also tried directly calling /usr/lib/jvm/java-14-openjdk: same.
any idea?

Last edited by synacktic (2020-09-13 18:55:28)

Offline

#2 2020-09-13 19:02:09

synacktic
Member
Registered: 2020-09-13
Posts: 4

Re: Tomcat9 refuses to start

I found the problem to be somewhere with jsvc.

jsvc --help

gives me an error along the lines of "no java found".
I then found out, that my

$JAVA_HOME

is empty.
after

export JAVA_HOME=/usr/lib/jvm/default-runtime

tomcat worked. once

I'm now back to the error from the first codeblock when trying to start tomcat service although $JAVA_HOME is set, and running jsvc directly also seems to find java.
strange behavoir.

Last edited by synacktic (2020-09-13 19:02:32)

Offline

Board footer

Powered by FluxBB