CMDBuild Forum

CMDBUILT No running in Tomcat 9.0.6

Hello everyone, I try to install OpenMaint and followed all the steps described for the installation indicators, but in the tomcat manager, OpenMaint.war and Shark.war appear running True, CMDBuilt.war running False, when I try execuite OpenMaint or CMbuilt appers Error 404.

 

what is the issues?

 

this is part of Log text.

 

INFO  2018-03-29 21:36:31 [cmdbuild] loading configurations

ERROR 2018-03-29 21:36:36 [org.springframework.web.context.ContextLoader] Context initialization failed

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:org/cmdbuild/rest/*.xml]

Offending resource: class path resource [application-context.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%209.0/webapps/cmdbuild/WEB-INF/lib/cmdbuild-services-rest-v1-2.5.0.jar!/org/cmdbuild/rest/rest_v1.xml]; nested exception is org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class [org.apache.cxf.jaxrs.spring.NamespaceHandler] for namespace [http://cxf.apache.org/jaxrs]: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)

 

Thanks very much for your help.

Previously Marco wrote:

Hello everyone, I try to install OpenMaint and followed all the steps described for the installation indicators, but in the tomcat manager, OpenMaint.war and Shark.war appear running True, CMDBuilt.war running False, when I try execuite OpenMaint or CMbuilt appers Error 404.

 

what is the issues?

 

this is part of Log text.

 

INFO  2018-03-29 21:36:31 [cmdbuild] loading configurations

ERROR 2018-03-29 21:36:36 [org.springframework.web.context.ContextLoader] Context initialization failed

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:org/cmdbuild/rest/*.xml]

Offending resource: class path resource [application-context.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%209.0/webapps/cmdbuild/WEB-INF/lib/cmdbuild-services-rest-v1-2.5.0.jar!/org/cmdbuild/rest/rest_v1.xml]; nested exception is org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class [org.apache.cxf.jaxrs.spring.NamespaceHandler] for namespace [http://cxf.apache.org/jaxrs]: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)

 

Thanks very much for your help.

Up! I have the same exact problem. Have you resolved the issue?

Exactly the same problem here. 

starting with a fresh installation. ubuntu 18.04.01 64bit:
 
 
==============================
sudo apt-get update && apt-get upgrade -y
 
# install tomcat
# https://www.digitalocean.com/community/tutorials/install-tomcat-9-ubuntu-1804
sudo apt install default-jdk
sudo groupadd tomcat
sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat
curl -O http://ftp.nluug.nl/internet/apache/tomcat/tomcat-9/v9.0.12/bin/apache-tomcat-9.0.12.tar.gz
sudo mkdir /opt/tomcat
sudo tar xzvf apache-tomcat-9*tar.gz -C /opt/tomcat --strip-components=1
cd /opt/tomcat
sudo chgrp -R tomcat /opt/tomcat
sudo chmod -R g+r conf
sudo chmod g+x conf
sudo chown -R tomcat webapps/ work/ temp/ logs/
sudo update-java-alternatives -l
# note jvm-version installed!
 
sudo nano /etc/systemd/system/tomcat.service
'''
[Unit]
Description=Apache Tomcat Web Application Container
After=network.target
 
[Service]
Type=forking
 
Environment=JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64.              # <- from note
Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat
Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC'
Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom'
 
ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh
 
User=tomcat
Group=tomcat
UMask=0007
RestartSec=10
Restart=always
 
[Install]
WantedBy=multi-user.target
'''
 
sudo systemctl daemon-reload
sudo systemctl start tomcat
sudo systenctl status tomcat
 
sudo ufw allow 8080
-> test https:\\10.100.16.0:8080 : check!
sudo systemctl enable tomcat
 
sudo nano /opt/tomcat/conf/tomcat-users.xml
'''
  <user username="admin" password="********" roles="manager-gui,admin-gui"/>
'''
 
sudo nano /opt/tomcat/webapps/manager/META-INF/context.xml
'''
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
         allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1|10.100.16.0" /> 
'''
 
sudo nano /opt/tomcat/webapps/host-manager/META-INF/context.xml
'''
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
         allow="127\.\d+\.\d+\.\d+|0\.100\.\d+\.\d+|::1|0:0:0:0:0:0:0:1|10.100.16.0" /> 
'''
 
sudo systemctl restart tomcat
 
 
+++ check: Tomcat manger and host-manager are up!
 
#install postgresql
sudo apt-get install postgresql-10
 
sudo su -l postgres
psql
ALTER USER postgres WITH PASSWORD '********';
 
 
#install cmdbuild
cd 
wget https://downloads.sourceforge.net/project/cmdbuild/2.5.1/cmdbuild-2.5.1.zip
sudo apt install unzip
unzip cmdbuild-2.5.1.zip
 
sudo cp ./extras/tomcat-libs/6.0 or higher/postgresql-9.4.1204.jar /opt/tomcat/lib
sudo cp cmdbuild-2.5.1.war /opt/tomcat/webapps
 
 
=======================
Could be I missed some obscure depencency, could be something entirely else. 
Any clues in what direction I should start diggin?
 
Here you can find the CMDBuild sw requirements:
http://www.cmdbuild.org/en/download/ultima-versione-en
CMDBuild Team

 

 

Rightyo. I'll give it a try with tomcat 8 and progresql 9 then.
Thanks.
 
Previously Tecnoteca wrote:
Here you can find the CMDBuild sw requirements:
http://www.cmdbuild.org/en/download/ultima-versione-en
CMDBuild Team