linagora / linshare

LinShare
https://www.linshare.org/
GNU Affero General Public License v3.0
487 stars 86 forks source link

Trouble installing on Ubuntu 18.04 #53

Closed obrochard closed 5 years ago

obrochard commented 5 years ago

OS : Ubuntu 18.04 linshare version : 2.2.3

tomcat8 start with error : Unresolvable class definition for NamespaceHandler class [org.apache.cxf.jaxrs.spring.NamespaceHandler] for namespace [http://cxf.apache.org/jaxrs]

Could you help me

tail /var/log/tomcat8/catalina.out

[ERROR]:localhost-startStop-1:20190207.104847:org.springframework.web.context.ContextLoader:initWebApplicationContext:Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-webservice-admin.xml]; nested exception is org.springframework.beans.FatalBeanException: Unresolvable class definition for NamespaceHandler class [org.apache.cxf.jaxrs.spring.NamespaceHandler] for namespace [http://cxf.apache.org/jaxrs]; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:413) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:187) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:223) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:194) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)

rouazana commented 5 years ago

Hi, Which Java version are you using? Regards, Raphaël.

obrochard commented 5 years ago

java -version

java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

fmartin-linagora commented 5 years ago

Hi, Please can you execute the following command and return us the result : dpkg -l |grep openjdk Fred.

obrochard commented 5 years ago

dpkg -l |grep openjdk ii openjdk-11-jdk:amd64 10.0.2+13-1ubuntu0.18.04.4 amd64 OpenJDK Development Kit (JDK) ii openjdk-11-jdk-headless:amd64 10.0.2+13-1ubuntu0.18.04.4 amd64 OpenJDK Development Kit (JDK) (headless) ii openjdk-11-jre:amd64 10.0.2+13-1ubuntu0.18.04.4 amd64 OpenJDK Java runtime, using Hotspot JIT ii openjdk-11-jre-headless:amd64 10.0.2+13-1ubuntu0.18.04.4 amd64 OpenJDK Java runtime, using Hotspot JIT (headless) ii openjdk-8-jdk:amd64 8u191-b12-2ubuntu0.18.04.1 amd64 OpenJDK Development Kit (JDK) ii openjdk-8-jdk-headless:amd64 8u191-b12-2ubuntu0.18.04.1 amd64 OpenJDK Development Kit (JDK) (headless) ii openjdk-8-jre:amd64 8u191-b12-2ubuntu0.18.04.1 amd64 OpenJDK Java runtime, using Hotspot JIT ii openjdk-8-jre-headless:amd64 8u191-b12-2ubuntu0.18.04.1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)

fmartin-linagora commented 5 years ago

Hi, You can either remove java 11 or make tomcat use java 8. Ex: sudo vim /etc/default/tomcat8 JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 Then restart tomcat

sudo systemctl restart tomcat8.service
sudo systemctl status tomcat8.service
obrochard commented 5 years ago

Hi, It's works better, no error on tomcat8

But i had error on user interface :

elinks http://127.0.0.1/linshare

cf screenshot.

Do you have an idea ?

tomcat_error

obrochard commented 5 years ago

It's works