GithubHelp home page GithubHelp logo

Comments (9)

loftux avatar loftux commented on June 5, 2024

I just ran the entire script with the latest updates, and Alfresco started fine. Are you still trying with 32bit?

from alfresco-ubuntu-install.

chris001 avatar chris001 commented on June 5, 2024

@loftux This error shows on a new VM with Ubuntu 14.04 x86_64 ... 64 bit.
Selected the option to run on Postgresql JDBC (with updated 4.1 url), Solr4, openjdk, tomcat 8 (had to update url as it was on an unavailable old version of tomcat 7), nginx, the backup app.
EDIT: ** All inside a 2GB OpenVZ container. **
Any idea why the error?

from alfresco-ubuntu-install.

loftux avatar loftux commented on June 5, 2024

I have now run it again, this time with postgres, and it works fine.
The error indicates that there is an issue with the tomcat configuration files, check that they are correct (compare to the ones downloaded by the script).
Unless you have a reliable way to reproduce the error I'm going to close the issue.

from alfresco-ubuntu-install.

chris001 avatar chris001 commented on June 5, 2024

Steps to reproduce.

  1. Replace Postgres JDBC URL with:
    JDBCPOSTGRES=postgresql-9.3-1102.jdbc41.jar
  2. Replace Tomcat URL with:
    TOMCAT_DOWNLOAD=http://apache.mirrors.spacedump.net/tomcat/tomcat-8/v8.0.18.tar.gz
  3. Run alfinstall.sh
    Install everything (enter y to all yes/no prompts ).
    http as protocol type for both share and alfresco repository.
    Script completes installation.
    Make modifications requested by script (db username, db password, db type postgres, comment out mysql db settings).
    Start alfreso service.
    You should see the error log filling up quickly.
    /var/log/alfresco/upstart/alfresco.log

from alfresco-ubuntu-install.

loftux avatar loftux commented on June 5, 2024

The current supported version is Tomcat 7. You will have to merge the files in https://github.com/loftuxab/alfresco-ubuntu-install/tree/master/tomcat catalina.properties and server.xml. the script has downloaded those and overwritten the version 8 ones with version 7 compatible ones. There is your error. You have to manually make sure that you use working versions.

from alfresco-ubuntu-install.

chris001 avatar chris001 commented on June 5, 2024

Thanks @loftux
http://www.coderanch.com/t/84854/Tomcat/solve-erro-tomcat-console
Any thought of adding support for tomcat 8 by detecting downloaded tomcat version and then select matching version of catalina.properties and server.xml to download?

Also: alfresco 5 has html5 document preview, swf flash in Alfresco is deprecated as unnecessary. Isn't it now best to remove the swftools installer from the script?
http://blogs.alfresco.com/wp/kevinr/2014/06/27/alfresco-community-5-0-a/

from alfresco-ubuntu-install.

chris001 avatar chris001 commented on June 5, 2024

It's still throwing the same errors when installing Tomcat 7.
TOMCAT_DOWNLOAD=http://apache.mesi.com.ar/tomcat/tomcat-7/v7.0.59/bin/apache-tomcat-7.0.59.tar.gz

/var/log/alfresco/upstart/alfresco.log

20-Feb-2015 18:13:28.513 WARNING [main] org.apache.catalina.startup.Catalina.load Catalina.start using conf/server.xml: Error at (30, 67) : org.apache.catalina.core.JasperListener
20-Feb-2015 18:13:28.534 SEVERE [main] org.apache.tomcat.util.digester.Digester.startElement Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.JasperListener

Lines 29 and 30 of server.xml:
< !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -- >
< Listener className="org.apache.catalina.core.JasperListener" / >

from alfresco-ubuntu-install.

chris001 avatar chris001 commented on June 5, 2024

@loftux I found the cause of the problem.
The script created 2 tomcat lib folders in the /opt/alfresco/ tree.
One called tomcat, the other called tomcat-(full version number) - obviously leftover when the script failed to remove it.
Must be a bug, when you reinstall over an existing failed install, where the script fails to remove the existing tomcat folder, and leaves the uncompressed tomcat-(version). folder in place, to cause this class not found crash bug...
There was a set of Tomcat 8 libs (jars) in one folder, and a set of Tomcat 7 libs (jars) in the other folder.
The Tomcat java classloader was taking the incompatible Tomcat 8 version of the jasper.jar (JSP page support).
It would be a lot better if the Tomcat Java error log message actually said, "incompatible library version," and gave the full path of the offending jar.... Jeez...
Problem solved by removing both "tomcat" folders (each of which contained a lib folder full of jars) and re-run the install script from beginning.

from alfresco-ubuntu-install.

loftux avatar loftux commented on June 5, 2024

Opened a separate issue for Tomcat 8, Java 8 support #47
Opened a separate issue for removing swftools. #48
Closing this issue.

from alfresco-ubuntu-install.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.