Check Tomcat installation :FAILED

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

Moderator: moderator

ubrog
Posts: 10
Joined: Thu Jul 26, 2012 4:49 pm

Check Tomcat installation :FAILED

Post by ubrog »

Hi,

I'm trying to install OpenEMM on an Ubuntu 12.04 Server (32Bit), but it won't start. It failes to check the tomcat installation, but I'm not sure how to fix this.

I'm trying to run OpenEMM 2011 and followed the instructions for Debian.

Code: Select all

openemm@newserver:~$ bin/openemm.sh start
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.
Starting sendmails:   listener /bin/sh: 0: Can't open /etc/init.d/sendmail
 admin queue  mail queue  done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Starting up Tomcat ......
Check Java installation          :OK
Check Tomcat installation        :FAILED
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Check Tomcat installation :FAILED

Post by maschoff »

From your log posting I would say that this is the problem:

Code: Select all

Starting sendmails:   listener /bin/sh: 0: Can't open /etc/init.d/sendmail
Please check if file sendmail exists in directory /etc/init.d. Maybe Ubuntu stores is somewhere else or under a slightly different name.
OpenEMM Maintainer
ubrog
Posts: 10
Joined: Thu Jul 26, 2012 4:49 pm

Re: Check Tomcat installation :FAILED

Post by ubrog »

Thanks for your reply. I didn't catch that, but installing sendmail fixed it. I still have the problem with tomcat.

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.
Starting sendmails:   listener  * Starting Mail Transport Agent (MTA) sendmail                                                       * MTA is already running.
 admin queue  mail queue  done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Starting up Tomcat ......
Check Java installation          :OK
Check Tomcat installation        :FAILED
I also disabled iptables for testing but it didn't help. Any other ideas?
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Check Tomcat installation :FAILED

Post by maschoff »

I think you need to be a little bit more specific regarding your error description "I still have the problem with tomcat."
OpenEMM Maintainer
ubrog
Posts: 10
Joined: Thu Jul 26, 2012 4:49 pm

Re: Check Tomcat installation :FAILED

Post by ubrog »

Well, the problem was still the same as in the first post and the error message was just "FAILED", so I was not really able to provide more details. And the whole process of installing tomcat is not in the wiki, so I was unsure how to configure it correctly. I managed to solve that problem by reinstalling tomcat to /opt/openemm and changing the path in openemm.sh.


I'm still not able to open it in the browser even though OpenEMM seems to start fine now. I think there's still something wrong with Tomcat, but I don't find the exact problem.

This is the output of openemm.sh:

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.
Starting sendmails:   listener  * Starting Mail Transport Agent (MTA) sendmail                                                       * MTA is already running.
 admin queue  mail queue  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.org/software/tomcat
Using CATALINA_TMPDIR: /home/openemm/temp
Using JRE_HOME:        /opt/openemm.org/software/java
Using CLASSPATH:       /opt/openemm.org/software/tomcat/bin/bootstrap.jar
This is a cat of all of the log files:

Code: Select all

[27.07.2012  10:54:09] 8229 INFO/bavd: Starting up
[27.07.2012  10:54:08] 8204 INFO/trigger: Starting up
[27.07.2012  10:54:08] 8178 INFO/main: Starting up
[27.07.2012  10:54:08] 8178 ERROR/data: Unable to read mailertable (2, 'No such file or directory')
[27.07.2012  10:54:08] 8178 ERROR/data: Unable to read relay-domains (2, 'No such file or directory')
[27.07.2012  10:54:08] 8178 ERROR/data: Unable to read virtusertable (2, 'No such file or directory')
[27.07.2012  10:54:10] 8329 INFO/main: Starting up
[27.07.2012  10:54:09] 8278 INFO/main: Starting up
[27.07.2012  10:54:09] 8278 INFO/collect: Found 0 mailing(s) to recover
[27.07.2012  10:54:09] 8278 INFO/main: Going down
[27.07.2012  10:54:13] 8441 INFO/main: Starting up
[27.07.2012  10:54:09] 8304 INFO/main: Starting up
When I stop OpenEMM it says "No Tomcat is running."

I'm really thankful for your help. I'm not used to work with Tomcat, so everything is a bit new.
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Check Tomcat installation :FAILED

Post by maschoff »

Your Tomcat output looks fine to m but you should check the log in catalina.out as well.
OpenEMM Maintainer
ubrog
Posts: 10
Joined: Thu Jul 26, 2012 4:49 pm

Re: Check Tomcat installation :FAILED

Post by ubrog »

Ah yeah, there is a problem:

Code: Select all

Jul 30, 2012 9:57:21 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/openemm.org/software/jdk1.5.0_22/jre/lib/i386/server:/opt/openemm.org/software/jdk1.5.0_22/jre/lib/i386:/opt/openemm.org/software/jdk1.5.0_22/jre/../lib/i386
Jul 30, 2012 9:57:22 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 30, 2012 9:57:22 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1939 ms
Jul 30, 2012 9:57:22 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 30, 2012 9:57:22 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
Jul 30, 2012 9:57:23 AM org.apache.tomcat.util.modeler.Registry registerComponent
SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//openemm/,J2EEApplication=none,J2EEServer=none
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.agnitas.util.web.SessionCleanUpListener)
	at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)
	at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
	at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:145)
	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:73)
	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:56)
	at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)
	at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1078)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4612)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	... 6 more
I tried to search, but didn't find a solution for that problem. Is it possible I'm running the wrong java version? Which version should I be running?
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Check Tomcat installation :FAILED

Post by maschoff »

That seems to be ok but looks like Tomcat was not able to find OpenEMM in its webapps directory.
OpenEMM Maintainer
ubrog
Posts: 10
Joined: Thu Jul 26, 2012 4:49 pm

Re: Check Tomcat installation :FAILED

Post by ubrog »

I tried to test that, but CATALINA_BASE is set to the correct directory (the home dir of the opemm user) and the webapps directory is accessible. From what I've found in the Tomcat documentation, this should be correct. So I'm not really sure what I should check next, I've already tried going through all of the configuration file, but didn't find anything. It probably doesn't register the module, but just can't find why.
ubrog
Posts: 10
Joined: Thu Jul 26, 2012 4:49 pm

Re: Check Tomcat installation :FAILED

Post by ubrog »

Ok, now it's working. I'm still not sure what was wrong, but I reinstalled it from scratch and now everything is fine.

Thanks a lot maschoff for your help, now I'm really looking forward to test OpenEMM.
vblkprrr
Posts: 2
Joined: Tue Aug 07, 2012 7:20 am

Re: Check Tomcat installation :FAILED

Post by vblkprrr »

I want my email sent from openemm to be DK signed.
My sendmail is configured to sign my email and it is working fine.
When i send an email directly from sendmail (using webmin) to a yahoo account it tells me domainkey is verified and i see the added headers domainey signatures.....
However when i send a mailing from openemm it doesnt sign the mail at all.
I receive the email but there is no Domainkey headers in it.


------------------------------


Lunettes De Soleil Carrera 2012
Post Reply