Problem sending mailings after manual compilation

Use this forum for all questions related to the source code of OpenEMM

Moderator: moderator

joran
Posts: 2
Joined: Thu Oct 01, 2009 12:01 pm
Location: Stuttgart, Germany
Contact:

Problem sending mailings after manual compilation

Post by joran »

Hi all

I've finally managed to compile OpenEMM from source and got it to work. Everything appears to work fine but I don't seem to be able to send any mailings. The web interface tells me that my mailing has been successfully sent to all recipients but the messages never arrive in any of the accounts specified in the mailing list (I've checked the spam folders, too).

Everything works fine if I install the binary distribution on the same system, which means that I can rule out a misconfiguration of sendmail.

The mailings make it to OpenEMM's mail queue but seem to be stuck there.

Code: Select all

root@zimbra:/home/openemm/var/spool/QUEUE# ls -lah
total 80K
drwxr-xr-x  2 openemm openemm 4.0K 2009-10-01 10:27 .
drwxr-xr-x 11 openemm openemm 4.0K 2009-09-18 14:57 ..
-rw-r--r--  1 openemm openemm  671 2009-09-28 11:45 df00000E00000000007
-rw-r--r--  1 openemm openemm  495 2009-09-28 11:55 df00000F00000000003
-rw-r--r--  1 openemm openemm  671 2009-09-28 11:55 df00000F00000000007
-rw-r--r--  1 openemm openemm  495 2009-09-28 12:25 df00001000000000003
-rw-r--r--  1 openemm openemm  671 2009-09-28 12:25 df00001000000000007
-rw-r--r--  1 openemm openemm  495 2009-09-30 12:03 df00001100000000003
-rw-r--r--  1 openemm openemm  671 2009-09-30 12:03 df00001100000000007
-rw-r--r--  1 openemm openemm  495 2009-10-01 10:27 df00001200000000003
-rw-r--r--  1 openemm openemm  671 2009-10-01 10:27 df00001200000000007
-rw-r--r--  1 openemm openemm  549 2009-09-28 11:45 qf00000E00000000007
-rw-r--r--  1 openemm openemm  562 2009-09-28 11:55 qf00000F00000000003
-rw-r--r--  1 openemm openemm  549 2009-09-28 11:55 qf00000F00000000007
-rw-r--r--  1 openemm openemm  562 2009-09-28 12:25 qf00001000000000003
-rw-r--r--  1 openemm openemm  549 2009-09-28 12:25 qf00001000000000007
-rw-r--r--  1 openemm openemm  562 2009-09-30 12:03 qf00001100000000003
-rw-r--r--  1 openemm openemm  549 2009-09-30 12:03 qf00001100000000007
-rw-r--r--  1 openemm openemm  562 2009-10-01 10:27 qf00001200000000003
-rw-r--r--  1 openemm openemm  549 2009-10-01 10:27 qf00001200000000007
The only error in ~openemm/var/log/core_stderr.log appears to be referring to a configuration glitch with log4j (something which I've been able to rectify since):

Code: Select all

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /home/nse/log/axis_core.log (No such file or directory)
	at java.io.FileOutputStream.openAppend(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
	at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
	at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:524)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:408)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432)
	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
	at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
	at org.apache.log4j.Logger.getLogger(Logger.java:85)
	at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
	at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
	at org.springframework.web.context.ContextLoader.<init>(ContextLoader.java:145)
	at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:57)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
	at com.caucho.server.webapp.Application.start(Application.java:1597)
	at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
	at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
	at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
	at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:158)
	at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:652)
	at com.caucho.server.host.Host.start(Host.java:385)
	at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
	at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
	at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
	at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:158)
	at com.caucho.server.host.HostContainer.start(HostContainer.java:501)
	at com.caucho.server.resin.ServletServer.start(ServletServer.java:977)
	at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
	at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
	at com.caucho.server.deploy.DeployController.start(DeployController.java:517)
	at com.caucho.server.resin.ResinServer.start(ResinServer.java:485)
	at com.caucho.server.resin.Resin.init(Resin.java)
	at com.caucho.server.resin.Resin.main(Resin.java:624)
Clearing mailing
BTW: The OpenEMM source distribution seems to be incomplete as I had to copy several files from the binary distribution to the corresponding directories to get it to work after the build process. Most notably the emm.properties file and a bunch of jars (the latter having been noted elsewhere in this support forum already).

As we are greatly interested in using OpenEMM any help will be appreciated.

Thanks in advance!

joran
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

Please have a look at the development section in the OpenEMM download area at SourceForge (http://sourceforge.net/projects/openemm/files/). It includes a source tarball for OpenEMM 6.beta with a build script which automatically generates the binary tarball. The source of the script will tell you everything.

BTW, your problem was a hard coded link (/home/nse/log/axis_core.log) for the axis log which has to be adapted.
OpenEMM Maintainer
joran
Posts: 2
Joined: Thu Oct 01, 2009 12:01 pm
Location: Stuttgart, Germany
Contact:

Post by joran »

Thanks for your reply and your hint concerning the log file. I have been able to get it to work in the meantime. It turned out that I had set the wrong permissions for bin/smctrl. So that was entirely my fault, but it had me stuck for several days. :oops:

Anyway, thanks a lot. I look forward to the OpenEMM 6 release! :-)
Post Reply