OpenEMM on FreeBSD with tomcat 8.0

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

Moderator: moderator

OpenEMM on FreeBSD with tomcat 8.0

Postby horstL » Tue Oct 27, 2015 11:22 am

hi all,

i just wanted to inform that's now possible to run OpenEMM 2013R2 / 2015 on FreeBSD with tomcat 8

here short instructions how to install:

# if you haven't already installed poudriere see at the end...

# create the build environment (-v from
Code: Select all
poudriere jail -c -j 10samd64 -m svn -v releng/10.1 -a amd64 -p svnports

# now configuration for the build
vi /home/YOUR_USER/openemm/conf/openemm.conf

Code: Select all
# DB packages

# PORTAL packages

# DEVEL packages

# openemm
# mail/openemm2013

# configure all options
Code: Select all
poudriere options -cf/home/YOUR_USER/openemm/conf/openemm.conf -p svnports

# build the port packages
Code: Select all
poudriere bulk -f /home/YOUR_USER/openemm/openemm.conf -j 10samd64 -p svnports

# now you can install the build packages
# MySQL Setup
Code: Select all
pkg install mysql56-server

add to file
vi /etc/rc.conf

Code: Select all
# MYSQL Server startup
mysql_args=" --max_allowed_packet=16M"

# start mysql-server
Code: Select all
/usr/local/etc/rc.d/mysql-server start

# add java and tomcat (+tab) means to show existing versions of java
Code: Select all
pkg install openjdk+tab

# Register the VM
Code: Select all
"/usr/local/bin/registervm" "/usr/local/openjdk7/bin/java # OpenJDK7"

should result in is already registered !

# control openjdk installation
java -version

# tomcat installation
Code: Select all
pkg install tomcat8

vi /etc/rc.conf

Code: Select all
# Tomcat8 Server startup
tomcat8_java_opts="-server -Djava.awt.headless=true -Xms256m -Xmx512m -XX:MaxPermSize=256m -Xss256k"
# -Dfile.encoding=UTF-8  -Duser.timezone=GMT

# add user to
vi /usr/local/apache-tomcat-8.0/conf/tomcat-users.xml

Code: Select all
  <role rolename="manager-gui"/>
  <role rolename="manager-status"/>
  <role rolename="manager-script"/>
  <role rolename="manager-jmx"/>

  <user username="YOUR_NAME" password="YOUR_SECURE_PASSWORD" roles="manager-gui,manager-status,manager-script,manager-jmx"/>

TODO check for the manager interface not to be accessible from outside!

# install db driver for java to tomcat
Code: Select all
pkg install mysql-connector-java

# link the installed file
Code: Select all
ln -s /usr/local/share/java/classes/mysql-connector-java.jar /usr/local/apache-tomcat-8.0/lib/
chown -h www /usr/local/apache-tomcat-8.0/lib/mysql-connector-java.jar

# install openemm package 2013-R2
for version openemm2013-R2
Code: Select all
pkg install openemm2013-R2

# add to /etc/rc.conf
Code: Select all

READ the PORT MESSAGE and follow the installation guidelines !!!

# install openemm package 2015
for version openemm2015
Code: Select all
pkg install openemm2015

# add to /etc/rc.conf
Code: Select all

READ the PORT MESSAGE and follow the installation guidelines !!!

# startup
Code: Select all
service start tomcat8
service start openemm2015

if there are problems with the port / either post here or in the freebsd-port mail group
hope it helps :)

### more information
# install Packagemanagement if not already done
cd /usr/ports/ports-mgmt/poudriere
make install clean

# copy the config
cp /usr/local/etc/poudriere.conf.sample /usr/local/etc/poudriere.conf

# configure see ... riere.html

# set ZPOOL variabel for ZFS
vi /usr/local/etc/poudriere.conf

# create new ports tree with svn
poudriere ports -c -m svn -p svnports

# default ports tree is via portsnap set in
# /usr/local/etc/poudriere.d/ports/default/method

# check the created ports tree
poudriere ports -l

# now you can switch back to the svn version you want to build

# check base ports svn info
cd /usr/ports/
svn info => check revision number

cd /usr/local/poudriere/ports/svnports
svn update -r <revision number>
Posts: 2
Joined: Sat Oct 24, 2015 4:32 pm

Re: OpenEMM on FreeBSD with tomcat 8.0

Postby maschoff » Tue Oct 27, 2015 9:35 pm

Thanks for sharing!
OpenEMM Maintainer
Site Admin
Posts: 2144
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: OpenEMM on FreeBSD with tomcat 8.0

Postby sditguru » Mon Nov 16, 2015 3:34 am

I am on FREEBSD 10.1, with Tomcat 8.

>>>Once installed how to I get to the openemm interface. I have tomcat installed and running but I can't see how to reach the openemm admin interface.

I was able to add the openemm to the manager interface on tomcat. Now sure if that is how I was supposed to do it or not.

However my next problem is it says that it can't connect to the DB:

DB Error:
Cannot acquire connection, caused by unknown DriverClassName: com.mysql.jdbc.Driver

I have installed the port pkg and ln and crowned it however it doesn't see it... Can you help with this?

Posts: 1
Joined: Mon Nov 16, 2015 3:31 am

Re: OpenEMM on FreeBSD with tomcat 8.0

Postby clebedamasio » Sat Apr 09, 2016 9:24 pm

root@unix:~ # service sendmail status
sendmail is running as pid 1104.
sendmail_msp_queue is running as pid 1107.
root@unix:~ #

root@unix:~ # service openemm2015 restart
Stop bin/bav program with signal 15 .. done.
Stop scripts/bavd program .. done.
Stop scripts/bav-update program with signal 15 .. done.
Stop scripts/pickdist program .. done.
Stop scripts/ program .. done.
Stopping sendmail.
Waiting for PIDS: 1104.
Stopping sendmail_msp_queue.
Waiting for PIDS: 1107.
Stop bin/qctrl program with signal 15 ..
Preconditions for openemm2015
- check if sendmail processes are stopped, it will be started via this application
[: missing ]
Starting openemm2015.
Tomcat is running... starting app
Start BOUNCE Servcie....
Start Merger Service....
Start Mailer Service....
Start SLRT scan Service....
root@unix:~ #
Another thing, in virtual domain?
configuration in tomcat 8
Posts: 1
Joined: Sat Apr 09, 2016 9:15 pm

Return to Installation & Upgrades

Who is online

Users browsing this forum: No registered users and 3 guests