unifiedviews-webapp installed in dedicated tomcat container
Closed this issue · 2 comments
Jan-Marcek commented
Motivation:
tomcat7 uses java-default in Debian wheezy by default.
/usr/lib/jvm/default-java could be java6.
Unifiedviews-webapp (frontend) requires java >=7
see also UnifiedViews/Core#258
Solution:
create extra tomcat7 container (similar to odn-solr debian packages)
Jan-Marcek commented
Possible stack trace:
[ ok ing unifiedviews-backend: .
[ ok ing unifiedviews-backend: .
Setting up unifiedviews-webapp-shared (1.6.0) ...
Setting up unifiedviews-webapp-pgsql (1.6.0) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
[FAIL] no JDK found - please set JAVA_HOME ... failed!
invoke-rc.d: initscript tomcat7, action "restart" failed.
Setting up unifiedviews-webapp (1.6.0) ...
[FAIL] no JDK found - please set JAVA_HOME ... failed!
dpkg: error processing unifiedviews-webapp (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of unifiedviews-pgsql:
unifiedviews-pgsql depends on unifiedviews-webapp (= 1.6.0); however:
Package unifiedviews-webapp is not configured yet.
dpkg: error processing unifiedviews-pgsql (--configure):
dependency problems - leaving unconfigured
Setting up odn-solr (4.10.2-odn0.11.0) ...
Adding system user `odn-solr' (UID 105) ...
Adding new user `odn-solr' (UID 105) with group `nogroup' ...
Not creating home directory `/usr/share/odn-solr'.
[ ok ] Starting Tomcat servlet engine: odn-solr.
dpkg: dependency problems prevent configuration of odn-simple:
odn-simple depends on unifiedviews-pgsql (= 1.6.0); however:
Package unifiedviews-pgsql is not configured yet.
dpkg: error processing odn-simple (--configure):
dependency problems - leaving unconfigured
Setting up g++-4.7 (4.7.2-5) ...
Setting up g++ (4:4.7.2-1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (11.5) ...
Setting up libstdc++6-4.7-dev (4.7.2-5) ...
Processing triggers for ca-certificates ...
Updating certificates in /etc/ssl/certs... 171 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Errors were encountered while processing:
unifiedviews-webapp
unifiedviews-pgsql
odn-simple
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up unifiedviews-webapp (1.6.0) ...
[FAIL] no JDK found - please set JAVA_HOME ... failed!
dpkg: error processing unifiedviews-webapp (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of unifiedviews-pgsql:
unifiedviews-pgsql depends on unifiedviews-webapp (= 1.6.0); however:
Package unifiedviews-webapp is not configured yet.
dpkg: error processing unifiedviews-pgsql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of odn-simple:
odn-simple depends on unifiedviews-pgsql (= 1.6.0); however:
Package unifiedviews-pgsql is not configured yet.
dpkg: error processing odn-simple (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
unifiedviews-webapp
unifiedviews-pgsql
odn-simple
Jan-Marcek commented
fixed