Alfresco 无法访问 Alfreco Explorer
Alfresco not able to access alfreco explorer
我是户外新手。我在 ubuntu 笔记本电脑上安装了 alfresco 4.2.e。我无法使用
访问 alfresco explorer
http://localhost:8080/alfresco
它说 Http Status 404 错误。
我也可以访问 http://localhost:8080/share。但是在这个页面我无法登录。
在 /alfresco webapp 运行 正确之前,As Share 将无法工作。
我经历了一些post
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/
但是没有得到解决方案。
我的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)
将评论提升为答案 - you need to read and follow steps in the official Alfresco documentation on configuring Alfresco 4.2 for MySQL. (Similar documentation is available for the other Alfresco versions too, eg 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 工作。
我是户外新手。我在 ubuntu 笔记本电脑上安装了 alfresco 4.2.e。我无法使用
访问 alfresco explorerhttp://localhost:8080/alfresco
它说 Http Status 404 错误。
我也可以访问 http://localhost:8080/share。但是在这个页面我无法登录。
在 /alfresco webapp 运行 正确之前,As Share 将无法工作。
我经历了一些post
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/
但是没有得到解决方案。
我的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)
将评论提升为答案 - you need to read and follow steps in the official Alfresco documentation on configuring Alfresco 4.2 for MySQL. (Similar documentation is available for the other Alfresco versions too, eg 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 工作。