Tomcat 7 not starting on Debian (Problem with directory)

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

S.A.L.
Posts: 3
Joined: Tue Aug 18, 2015 4:47 pm

Tomcat 7 not starting on Debian (Problem with directory)

Post by S.A.L. »

Hello all,

I'm installing OpenEMM 2015 R2 on a Debian Wheezy. I followed step by step the InstallAdminGuide up to step 6.4 (Start and Stop OpenEMM). If I type "openemm.sh start" I get this (good looking) output:

Code: Select all

Start /home/openemm/bin/scripts/bav-update.py .. done.
Start /home/openemm/bin/scripts/bav-trigger.py .. done.
Start /home/openemm/bin/scripts/bavd.py .. done.
Start /home/openemm/bin/bav -L INFO .. done.
Start python /home/openemm/bin/scripts/recovery.py .. done.
Start /home/openemm/bin/scripts/update.py account bounce .. done.
Start /home/openemm/bin/scripts/pickdist.py .. done.
Stopping obsolete sendmail processes:   done.
[warning sendmails:   listener [....] Starting Mail Transport Agent (MTA): sendmail[....] MTA is already running. ... (warning).
 mail queues  ADMIN  QUEUE  MIDQUEUE  SLOWQUEUE  done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Starting up Tomcat ......
Check Java installation          :OK
Check Tomcat installation        :OK
Using CATALINA_BASE:   /home/openemm
Using CATALINA_HOME:   /opt/openemm/tomcat
Using CATALINA_TMPDIR: /home/openemm/temp
Using JRE_HOME:        /opt/openemm/java
Using CLASSPATH:       /opt/openemm/tomcat/bin/bootstrap.jar:/opt/openemm/tomcat/bin/tomcat-juli.jar
Tomcat started.
So everything seems to be fine. But tomcat is not running. Tomcat works fine if I start it separately (I can access the default tomcat site).
The catalina.out log shows me the following:

Code: Select all

Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Aug 18, 2015 5:46:44 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/home/openemm-2015-r2/"/home/openemm/lib"], exists: [false], isDirectory: [false], canRead: [false]
Aug 18, 2015 5:46:44 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/home/openemm-2015-r2/"/home/openemm/lib/*.jar"], exists: [false], isDirectory: [false], canRead: [false]
Aug 18, 2015 5:46:44 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/home/openemm-2015-r2/"/opt/openemm/tomcat/lib"], exists: [false], isDirectory: [false], canRead: [false]
Aug 18, 2015 5:46:44 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/home/openemm-2015-r2/"/opt/openemm/tomcat/lib/*.jar"], exists: [false], isDirectory: [false], canRead: [false]
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:235)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
So for me it looks like that the directory variable is messed up. (he added "/home/openemm-2015-r2" at the beginning of every path).
But I can't find out why he's doing this or in which script that happens.

Do you have any ideas to solve this problem?

Many thanks in advance.

Regards,
Steffen
jim_frey
Posts: 132
Joined: Wed Nov 29, 2006 11:32 pm
Location: Middle Caicos, Turks and Caicos Islands
Contact:

Re: Tomcat 7 not starting on Debian (Problem with directory)

Post by jim_frey »

Just a guess, but you may need to set up the symbolic link between them
OpenEMM Moderator
S.A.L.
Posts: 3
Joined: Tue Aug 18, 2015 4:47 pm

Re: Tomcat 7 not starting on Debian (Problem with directory)

Post by S.A.L. »

Good idea for a workaround. But it doesn't work :( The error still remains
I set the following link:
openemm@otrs:~$ ls -l /home/openemm-2015-r2/opt/openemm/tomcat/
insgesamt 0
lrwxrwxrwx 1 openemm openemm 24 Aug 19 11:33 lib -> /opt/openemm/tomcat/lib/
Also I have no "/home/opnemm/lib" directory. Is that normal? If this is normal, why is he looking for that dir?
maschoff
Site Admin
Posts: 2596
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Tomcat 7 not starting on Debian (Problem with directory)

Post by maschoff »

You do not need a directory /home/openemm/lib. Did you do an update or a fresh installation?
OpenEMM Maintainer
S.A.L.
Posts: 3
Joined: Tue Aug 18, 2015 4:47 pm

Re: Tomcat 7 not starting on Debian (Problem with directory)

Post by S.A.L. »

Sorry for not answering, I was on holiday and then had some major problems to solve here.
I've done a fresh installation of OpenEMM (it was also the first installation).
Post Reply