Alfresco:在这台服务器上找不到Alfresco Repository

时间:2016-03-30 09:29:31

标签: mysql alfresco

我是Alfresco Comunity的新手,我在尝试配置数据库时遇到了麻烦。我按照here中的步骤操作,但它无法正常工作我仍然收到错误:“在此服务器上找不到Alfresco存储库

这是我的C:\alfresco-community\tomcat\shared\classes\alfresco-global.properties

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

dir.root=C:/alfresco-community/alf_data

alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http

### database connection properties ###
#db.driver=org.postgresql.Driver
#db.username=alfresco
#db.password=admin
#db.name=alfresco
#db.url=jdbc:postgresql://localhost:5432/${db.name}
# Note: your database must also be able to accept at least this many connections.  Please see your database documentation for instructions on how to configure this.
#db.pool.max=275
#db.pool.validate.query=SELECT 1

db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost:3306/alfrescoaio?useUnicode=yes&characterEncoding=UTF-8 

db.username=root
db.password=123abc

db.name=alfrescoaio
db.host=localhost
db.port=3306
db.pool.max=275

user.name.caseSensitive=true




# The server mode. Set value here
# UNKNOWN | TEST | BACKUP | PRODUCTION
system.serverMode=UNKNOWN

### FTP Server Configuration ###
ftp.port=21

### RMI registry port for JMX ###
alfresco.rmi.services.port=50500

### External executable locations ###
ooo.exe=C:/alfresco-community/libreoffice/App/libreoffice/program/soffice.exe
ooo.enabled=true
ooo.port=8100
img.root=C:\\alfresco-community\\imagemagick
img.coders=${img.root}\\modules\\coders
img.config=${img.root}
img.gslib=${img.root}\\lib
img.exe=${img.root}\\convert.exe

jodconverter.enabled=false
jodconverter.officeHome=C:/alfresco-community/libreoffice/App/libreoffice
jodconverter.portNumbers=8100

### Initial admin password ###
alfresco_user_store.adminpassword=209c6174da490caeb422f3fa5a7ae634

### E-mail site invitation setting ###
notification.email.siteinvite=false

### License location ###
dir.license.external=C:/alfresco-community

### Solr indexing ###
index.subsystem.name=solr4
dir.keystore=${dir.root}/keystore
solr.host=localhost
solr.port.ssl=8443

### Allow extended ResultSet processing
security.anyDenyDenies=false

### Smart Folders Config Properties ###
smart.folders.enabled=false

### Remote JMX (Default: disabled) ###
alfresco.jmx.connector.enabled=false
日志中的

错误:

rnate-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 'org.gjt.mm.mysql.Driver'

任何人都可以帮我解决这个问题吗?

3 个答案:

答案 0 :(得分:1)

Alfresco安装程序附带PostgreSQL。安装后,它会将PostgreSQL驱动程序(postgresql-9.4-1201-jdbc41.jar)放在$ TOMCAT_HOME / lib中。

如果要切换到其他数据库,则需要确保新数据库驱动程序可用。您的错误消息似乎表明它不是。

查看$ TOMCAT_HOME / lib,看看你是否有一个名为mysql-connector-java - * .jar的文件。如果不这样做,请从here下载,然后将JAR放在此目录中并重新启动。

答案 1 :(得分:0)

关注此Link

请检查您是否已完成以下步骤:

  • mysql-connector-java-5.x.x jar复制到<alfresco>\tomcat\lib文件夹。
  • max_connections = 275
  • <MySQL>\MySQL Server 5.0\my.ini
  • 创建用户 alfresco 并分配所有权限。
  • 在DB中创建架构alfresco

答案 2 :(得分:0)

如果更改了alfresco的数据库技术,则必须创建名为alfresco的数据库模式。

因为当Alfresco当时启动时,它会找到数据库并根据该模式创建一些表。

  

http://docs.alfresco.com/5.0/tasks/mysql-config.html