cancel
Showing results for 
Search instead for 
Did you mean: 

Install alfresco3.2 in Ubuntu9.04 with tomcat already instal

alpargata
Champ in-the-making
Champ in-the-making
Hi!!

I'm new to the Alfresco community and am bit lost. I am trying to install Alfresco in Ubuntu 9.04, but am not able.  I need this installed on tomcat6 for others applications, by this I install to alfresco-community-war-3.2.tar.gz. I take several days.


Here are the steps I've done, recently installed with Ubuntu:

1º- Install Java:
   # sudo apt-get install sun-java6-jdk sun-java6-fonts
   # sudo update-java-alternatives -s java-6-sun

2º Enter your variable:
   # echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | sudo tee -a /etc/environment
   # source /etc/environment

3º install to tomcat6:
   # sudo apt-get install tomcat6 tomcat6-admin
   # sudo /etc/init.d/tomcat6 start

4º Install mysql:
   # sudo apt-get install mysql-server mysql-client

5º Install alfresco war:
   #sudo mkdir /opt/alfresco
   # sudo mv alfresco-community-war-3.2.tar.gz /opt/alfresco/
   # sudo tar xvzf ./alfresco-community-war-3.2.tar.gz
   # sudo mv alfresco-community-war-3.2.tar.gz /opt
   # sudo cp alfresco.war /var/lib/tomcat6/webapps/
   # sudo cp share.war /var/lib/tomcat6/webapps/

6º Configure tomcat6:
   # sudo mkdir share
   # cd share
   # sudo mkdir classes
   # sudo mkdir /var/lib/tomcat6/share/lib
   # sudo gedit /var/lib/tomcat6/conf/catalina.properties
      Escribir en el fichero lo siguiente en el atributo "share.loader="
   shared.loader=shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
   
7º Prepare database:
   # sudo apt-get install chkconfig
   # sudo chkconfig mysql on
   # mysql -u root -p < /opt/alfresco/extras/databases/mysql/db_setup.sql
   # mysql -u root -p
   mysql> show databases;
      Check that the database exists Alfresco
   mysql> exit;
   
8º Configure repository:
   # sudo mkdir -p /var/lib/alfresco/alf_data/
   # sudo chown -R tomcat6:tomcat6 /var/lib/alfresco

9º Download to the conector of mysql:
   http://ftp.plusline.de/mysql/Downloads/Connector-J/
   #sudo mv /home/antonio/Escritorio/mysql-connector-java-5.1.8.tar.gz /opt/alfresco
   # sudo tar -xzf mysql-connector-java-5.1.8.tar.gz
   # sudo mv mysql-connector-java-5.1.8.tar.gz /opt
   # cd mysql-connector-java-5.1.8/
   # sudo cp mysql-connector-java-5.1.8-bin.jar /usr/share/java/
   # sudo cp /usr/share/java/commons-dbcp.jar /var/lib/tomcat6/share/lib/
   # sudo cp /usr/share/java/commons-dbcp-1.2.1.jar /var/lib/tomcat6/share/lib/

10º check tomcat:
   # sudo service tomcat6 start
   # sudo service tomcat6 stop

11º Download extension:
   http://sourceforge.net/projects/alfresco/files/Alfresco/3.2%20Community%20Edition/alfresco-community...
   # sudo cp /home/antonio/Escritorio/alfresco-community-sample-extensions-3.2.tar.gz /var/lib/tomcat6/share/classes/
   # cd /var/lib/tomcat6/share/classes/
   # sudo tar -xzf alfresco-community-sample-extensions-3.2.tar.gz
   # cd /var/lib/tomcat6/share/classes/alfresco/extension
   # sudo gedit custom-reposity.properties
      Write this:
——————————————————————————

###############################
## Common Alfresco Properties #
###############################

#
# Sample custom content and index data location
#
dir.root=/var/lib/alfresco/alf_data

#
# Sample database connection properties
#
db.username=alfresco
db.password=1122
db.pool.initial=10
db.pool.max=100
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost/alfresco

#
# Sample external executable locations
#
#ooo.exe=/opt/openoffice/program/soffice
#ooo.user=${dir.root}/oouser
#img.root=/srv/alfresco/ImageMagick
#swf.exe=/srv/alfresco/bin/pdf2swf

#
# Sample index tracking frequency
#
#index.tracking.cronExpression=0/5 * * * * ?

#
# Property to control whether schema updates are performed automatically.
# Updates must be enabled during upgrades as, apart from the static upgrade scripts,
# there are also auto-generated update scripts that will need to be executed.  After
# upgrading to a new version, this can be disabled.
#
#db.schema.update=true

#
# Derby connection
#
#db.driver=org.apache.derby.jdbc.EmbeddedDriver
#db.url=jdbc:derby:alf_data/derby_data/alfresco;create=true

#
# HSQL connection
#
#db.driver=org.hsqldb.jdbcDriver
#db.url=jdbc:hsqldb:file:alf_data/hsql_data/alfresco;ifexists=true;shutdown=true;

#
# MySQL connection (This is default and requires mysql-connector-java-5.0.3-bin.jar, which ships with the Alfresco server)
#
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost/alfresco
# PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent)
#
#db.driver=org.postgresql.Driver
#db.url=jdbcSmiley Tongueostgresql://localhost:5432/alfresco
————————————————————————————-

12º Create second file:
   # sudo gedit custom-hibernate-dialect.properties
      Write this:
—————————————————————————————

#
# Sample Hibernate configuration for changing Database dialect
# For a full list: http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#configuration-optional-dialects
#

#
# Derby dialect
#
#hibernate.dialect=org.hibernate.dialect.DerbyDialect

#
# HSQL dialect
#
#hibernate.dialect=org.hibernate.dialect.HSQLDialect

#
# MySQL dialect (default)
#
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

#
# PostgreSQL dialect
#
#hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
#hibernate.query.substitutions=true TRUE, false FALSE
————————————————————————————-

13º Configure to the user into database
   # mysql -u root -p
   mysql> set password for 'alfresco'@'localhost' = PASSWORD('1122');
   mysql>exit

14º Configure log:
   # cd /var/lib/tomcat6/webapps/alfresco/WEB-INF/classes/
   # sudo gedit log4j.properties
      Sustituimos esta linea:
   log4j.appender.File.File=/var/log/tomcat6/alfresco.log
   # sudo chkconfig tomcat6 on
   # sudo service tomcat6 start

__________________________________________________________________________________

Finally, I try to access:
   http://localhost:8080/alfresco/
But, this is the result:
   Estado HTTP 404

I look at the forums and the wiki, but I can not find the solution. I need help. thanks
6 REPLIES 6

mrogers
Star Contributor
Star Contributor
You need to find the contents of your alfresco.log file.  
And post details of any errors before people can help you.

A couple of things I noticed in your posting.
- you should have the following folder (your version is missing an "ed")
${catalina.base}/shared/lib/
- 3.2 is configured via alfresco-global.properties which should be in ${catalina.base}/shared/classes, not repository.properties.

alpargata
Champ in-the-making
Champ in-the-making
This is the problem, don't generate alfresco.log. That is why I have not written into post. (Sorry for my English, I help google translate).

mrogers
Star Contributor
Star Contributor
Your database drivers should be in the shared folder (with the ed) but it doesn't sound like you are getting that far.

Have you got a catalina.log anywhere?

Does tomcat do anything?   It may be worth trying to start alfresco from the command line rather than running as a service.

alpargata
Champ in-the-making
Champ in-the-making
The Tomcat makes no catalina.log, but it works well, by written http://localhost:8080/ display "It works"

Sorry, but you can explain this better, you do not understand, I am fairly new to Ubuntu and Alfresco.
- you should have the following folder (your version is missing an "ed")
${catalina.base}/shared/lib/
- 3.2 is configured via alfresco-global.properties which should be in ${catalina.base}/shared/classes, not repository.properties.

bwakkie
Champ in-the-making
Champ in-the-making
I managed to get it to work. Check out: http://forums.alfresco.com/en/viewtopic.php?f=8&t=21103

alpargata
Champ in-the-making
Champ in-the-making
Hi!!!

After several days without log file, I decided to try again to install, but the difference now is that the Tomcat6 is downloaded of de apache.org (package before of ubuntu). The result is better that before, but  now provide this error:

When I tried access to http://localhost:8080/alfresco display this:
——————————————————————————————————————-
Estado HTTP 500 -

type Informe de Excepción

mensaje

descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.

excepción

javax.faces.FacesException: java.lang.OutOfMemoryError: Java heap space
   org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
   org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
   org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
   org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
   org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:110)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:597)
   org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:122)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   $Proxy185.doFilter(Unknown Source)
   org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:88)
   org.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:74)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:597)
   org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:122)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   $Proxy185.doFilter(Unknown Source)
   org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:88)

causa raíz

javax.servlet.ServletException: java.lang.OutOfMemoryError: Java heap space
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
   org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
   org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
   org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
   org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:110)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:597)
   org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:122)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   $Proxy185.doFilter(Unknown Source)
   org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:88)
   org.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:74)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:597)
   org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:122)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   $Proxy185.doFilter(Unknown Source)
   org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:88)

causa raíz

java.lang.OutOfMemoryError: Java heap space
   org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown Source)
   org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown Source)
   org.apache.xerces.dom.DeferredElementNSImpl.synchronizeChildren(Unknown Source)
   org.apache.xerces.dom.ParentNode.getChildNodes(Unknown Source)
   org.apache.jasper.xmlparser.ParserUtils.convert(ParserUtils.java:164)
   org.apache.jasper.xmlparser.ParserUtils.convert(ParserUtils.java:179)
   org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:116)
   org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:133)
   org.apache.jasper.compiler.TldLocationsCache.getUriFromTld(TldLocationsCache.java:460)
   org.apache.jasper.compiler.TldLocationsCache.scanJar(TldLocationsCache.java:367)
   org.apache.jasper.compiler.TldLocationsCache.scanJars(TldLocationsCache.java:512)
   org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:244)
   org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:219)
   org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:550)
   org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:428)
   org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
   org.apache.jasper.compiler.Parser.parseElements(Parser.java:1439)
   org.apache.jasper.compiler.Parser.parse(Parser.java:137)
   org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
   org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:170)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/6.0.20.
Apache Tomcat/6.0.20
————————————————————————————————-

This is showing to the log file (alfresco.log):

———————————————————————————–

18:31:44,107 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
18:31:44,128 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
18:31:44,330 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
18:32:16,907 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
18:32:18,418 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
18:32:23,266 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [default]
18:32:23,309 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
18:32:23,449 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] ImageMagickContentTransformerWorker not available: 07180000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, /usr/local/tomcat6/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_9065706344231101997.gif[0], /usr/local/tomcat6/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_8644306204711563680.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./ImageMagick/bin/convert": java.io.IOException: error=2, No such file or directory
18:32:23,516 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./bin/pdf2swf": java.io.IOException: error=2, No such file or directory
18:32:24,395 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
18:32:24,395 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [default] complete
18:32:27,564 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
18:32:27,564 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
18:32:27,625 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
18:32:28,159 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
18:32:28,165 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
18:32:28,189 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [default]
18:32:28,311 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
18:32:29,627 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [managed, alfrescoNtlm1]
18:32:29,702 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
18:32:30,780 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [managed, alfrescoNtlm1] complete
18:32:35,818 ERROR [org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
18:32:35,818 ERROR [org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)
18:32:35,976 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [default] complete
18:32:35,976 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [default]
18:32:36,041 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
18:32:36,114 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [default] complete
18:32:36,116 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [default]
18:32:37,168 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
18:32:37,182 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [default] complete
18:32:37,263 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_14-b08; maximum heap size 63,563MB
18:32:37,263 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 63,563MB is less than recommended 512MB
18:32:37,264 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.2.0 (2039) schema 2019 - Installed version 3.2.0 (2039) schema 2019
18:33:01,698 INFO  [org.alfresco.util.OpenOfficeConnectionTester] The OpenOffice connection was re-established.
18:33:27,827 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework

———————————————————-

Does anyone know what happens?
thank you!!