2016-03-30 47 views
0

我是Alfresco Comunity的新用戶,當嘗試配置數據庫時遇到問題。我遵循here的一步,但它不工作我還是得到了一個錯誤:Alfresco:在此服務器上找不到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' 

任何人都可以幫助我如何解決這個問題?

+2

你能否從Tomcat發佈日誌? – Naman

+1

您使用的是哪個版本的Alfresco社區?你是否下載了源代碼並正在構建它,或者你在使用安裝程序?你想要連接什麼數據庫? –

+1

您是否在MySQL中創建了名爲「alfrescoaio」的數據庫,並授予對「root」密碼爲「123abc」的用戶的訪問權限?使用mysql客戶端或類似工具來驗證您可以使用這些信用連接到該數據庫。 –

回答

1

Alfresco安裝程序附帶PostgreSQL。安裝時,它會將PostgreSQL驅動程序(postgresql-9.4-1201-jdbc41.jar)放置在$ TOMCAT_HOME/lib中。

如果您要切換到不同的數據庫,則需要確保新的數據庫驅動程序可用。你的錯誤消息似乎表明它不是。

查看$ TOMCAT_HOME/lib並查看是否有名爲mysql-connector-java - *。jar的文件。如果沒有,請從here下載,然後將JAR放入此目錄並重新啓動。

0

關注這個Link

請檢查你完成這些步驟:

  • 副本mysql-connector-java-5.x.x罐子到<alfresco>\tomcat\lib文件夾中。
  • max_connections = 275<MySQL>\MySQL Server 5.0\my.ini
  • 創建用戶露天和分配所有權限。
  • 在數據庫中創建模式alfresco
相關問題