Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unifiedviews-webapp installed in dedicated tomcat container #23

Closed
Jan-Marcek opened this issue Feb 11, 2015 · 2 comments
Closed

unifiedviews-webapp installed in dedicated tomcat container #23

Jan-Marcek opened this issue Feb 11, 2015 · 2 comments

Comments

@Jan-Marcek
Copy link
Contributor

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 Jan-Marcek added this to the Release v1.5.5-1 milestone Feb 11, 2015
@Jan-Marcek Jan-Marcek changed the title frontend should be in seperate tomcat frontend should use java7 Feb 11, 2015
@skrchnavy skrchnavy changed the title frontend should use java7 unifiedviews-webapp installed in dedicated tomcat container Feb 11, 2015
@skrchnavy skrchnavy modified the milestones: Release v1.6.0, Release v2.0.0 Mar 4, 2015
@Jan-Marcek
Copy link
Contributor Author

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 Jan-Marcek assigned Jan-Marcek and unassigned peterklimo Mar 27, 2015
Jan-Marcek pushed a commit that referenced this issue Mar 27, 2015
…look at /etc/unifiedviews/frontend-config.properties" via setenv.sh, we can use this way because frontend is running in dedicated tomcat. There were used link in a previous solution..
Jan-Marcek pushed a commit that referenced this issue Mar 27, 2015
…w unifiedviews-frontend is start|stop in postrm and postinstall
@Jan-Marcek
Copy link
Contributor Author

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants