我有一个问题,我已经检查了一段时间了,用谷歌搜索了一切,但还是无法理解。我真的不习惯 java,更不用说 tomcat 了。就是这样。
首先,设置。
- 虚拟化服务器上的 Centos 5.3。
- Bitnami Native Alfresco 堆栈(tomcat5.5、mysql5、java、javajdk、JDBC)
catalina.log 的内容。因为它是最短的,也是我找到问题所在的第一个线索:严重:错误 listenerStart
Aug 27, 2009 5:32:58 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 27, 2009 5:32:58 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 229 ms
Aug 27, 2009 5:32:58 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 27, 2009 5:32:58 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.25
Aug 27, 2009 5:32:58 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 27, 2009 5:34:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Aug 27, 2009 5:34:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
Aug 27, 2009 5:34:48 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 27, 2009 5:34:48 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 27, 2009 5:34:48 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/11 config=null
Aug 27, 2009 5:34:48 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 27, 2009 5:34:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 110327 ms
Aug 27, 2009 5:38:27 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Aug 27, 2009 5:38:28 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Aug 27, 2009 5:38:29 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
这是 catalina.out 的内容,它看起来像是错误的堆栈跟踪或应用程序跟踪,对吗?
出现 404 错误告诉我:请求的资源 (/alfresco/) 不可用。
我想就是这样了。
答案1
错误日志中的这一行表明问题出在数据库配置上:
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'luceneIndexBackupComponent'
defined in class path resource [alfresco/core-services-context.xml]:
Invocation of init method failed; nested exception is
org.springframework.transaction.CannotCreateTransactionException:
Could not open Hibernate Session for transaction;
nested exception is org.hibernate.exception.GenericJDBCException
检查你的 Hibernate 配置,因为有些地方不正确。
我猜您已将 Alfresco 配置为使用外部数据库(例如 MySQL),但尚未安装适当的驱动程序(例如 MySQL 的 Connector/J)。有关更多信息,请参阅此 Alfresco 论坛帖子:
答案2
看起来 alfresco/file-servers.properties 文件包含一些错误。