【问题标题】:Alfresco not able to access alfreco explorerAlfresco 无法访问 alfreco explorer
【发布时间】:2016-03-25 12:04:56
【问题描述】:

我是 alfresco 的新手。我已经在 ubuntu 笔记本电脑上安装了 alfresco 4.2.e。我无法使用 alfresco explorer 访问

http://localhost:8080/alfresco

它说 Http Status 404 错误。

我也可以访问http://localhost:8080/share。但是在这个页面上我无法登录。

在 /alfresco webapp 正常运行之前,共享将无法工作。

我看过一些帖子

Alfresco Service Forum RESTFul API not working properly (empty results and 404s)

Alfresco share login issue

Error while trying to log into Alfresco Community Edition

http://element14.wordpress.com/2007/07/05/howto-install-alfresco-on-linux-sharepoint-alternative/

http://www.linuxquestions.org/questions/linux-software-2/alfresco-not-able-to-open-in-internet-browser-840259/

但没有得到解决。

我的 catalina.out 节目

Mar 25, 2016 3:08:01 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 25, 2016 3:08:01 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.42
Mar 25, 2016 3:08:01 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/varun/alfresco-4.2.e/tomcat/conf/Catalina/localhost/solr.xml
Mar 25, 2016 3:08:01 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
2016-03-25 15:08:07,561  WARN  [solr.core.SolrCore] [localhost-startStop-1] [archive] Solr index directory '/home/varun/alfresco-4.2.e/alf_data/solr/archive/SpacesStore/index' doesn't exist. Creating new index...
 2016-03-25 15:08:07,901  WARN  [handler.component.SpellCheckComponent] [localhost-startStop-1] No queryConverter defined, using default converter
 2016-03-25 15:08:08,985  WARN  [solr.core.SolrCore] [localhost-startStop-1] [alfresco] Solr index directory '/home/varun/alfresco-4.2.e/alf_data/solr/workspace/SpacesStore/index' doesn't exist. Creating new index...
 2016-03-25 15:08:09,101  WARN  [handler.component.SpellCheckComponent] [localhost-startStop-1] No queryConverter defined, using default converter
 Mar 25, 2016 3:08:09 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /home/varun/alfresco-4.2.e/tomcat/webapps/share.war
2016-03-25 15:08:22,941  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
 2016-03-25 15:08:23,035  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
 2016-03-25 15:08:23,036  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
 2016-03-25 15:08:23,041  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
 2016-03-25 15:08:25,341  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 353 Web Scripts (+0 failed), 367 URLs
 2016-03-25 15:08:25,341  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 8 Package Description Documents (+0 failed) 
 2016-03-25 15:08:25,342  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Schema Description Documents (+0 failed) 
 2016-03-25 15:08:25,535  INFO  [extensions.webscripts.AbstractRuntimeContainer] [localhost-startStop-1] Initialised Spring Surf Container Web Script Container (in 2481.7234ms)
 2016-03-25 15:08:25,539  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
 2016-03-25 15:08:25,542  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
 Mar 25, 2016 3:08:25 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /home/varun/alfresco-4.2.e/tomcat/webapps/alfresco.war
Mar 25, 2016 3:08:36 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
Mar 25, 2016 3:08:36 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2016-03-25 15:08:41,179  INFO  [alfresco.repo.admin] [localhost-startStop-1] Using database URL 'jdbc:mysql://localhost:3306/alfrescomdm' with user 'alfrescomdm'.
 2016-03-25 15:08:41,218  ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeTableCache' defined in class path resource [alfresco/cache-context.xml]: Cannot resolve reference to bean 'tenantService' while setting bean property 'tenantService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantService' defined in file [/home/varun/alfresco-4.2.e/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/mt/mt-context.xml]: Cannot resolve reference to bean 'tenantAdminDAO' while setting bean property 'tenantAdminDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantAdminDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'repoSqlSessionTemplate' while setting bean property 'sqlSessionTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repoSqlSessionTemplate' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Cannot resolve reference to bean 'repoSqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repoSqlSessionFactory' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Cannot resolve reference to bean 'dialectResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectResourceLoader' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Cannot create inner bean 'org.springframework.beans.factory.config.PropertyPathFactoryBean#2e385de5' of type [org.springframework.beans.factory.config.PropertyPathFactoryBean] while setting bean property 'dialectClass'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.PropertyPathFactoryBean#2e385de5' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialect' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean '&sessionFactory' while setting bean property 'localSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceCheck' defined in class path resource [alfresco/core-services-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.alfresco.repo.domain.schema.DataSourceCheck]: Constructor threw exception; nested exception is java.lang.RuntimeException: Database connection failed: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)  

【问题讨论】:

标签: environment-variables ubuntu-14.04 alfresco mysql-connector alfresco-share


【解决方案1】:

提升对答案的评论 - you need to read and follow steps in the official Alfresco documentation on configuring Alfresco 4.2 for MySQL。 (其他 Alfresco 版本也有类似的文档,例如 Alfresco 5.1

因为这将引导您完成,您需要下载 MySQL Connector for Java jar 文件(由于与 Oracle 的长期许可争议,Alfresco 已经有好几年没有将其作为标准提供),然后删除将该 jar 放入您的 Tomcat lib 文件夹中,以便 Alfresco 可以使用它。然后,您可能需要编辑您的 alfresco-global.properties 文件来告诉它您的 MySQL 数据库详细信息

或者,您可以切换到 PostGreSQL(Alfresco 推荐的用于与 Alfresco 一起使用的开源数据库的选项)和 follow these instructions for installing the jdbc driver and configuring it 工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多