2017-05-16 56 views
0

我是Alfresco Community的新成員,當我嘗試配置數據庫時遇到問題。我按照這裏的步驟,但它不工作,我仍然有一個錯誤:無法找到此服務器上的Alfresco存儲庫。 (這個應用程式是否有權訪問alfresco-global.properties?這是否應用具有的跨情境的權限?)Alfresco:找不到Alfresco Repository

here is alfresco-global 

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

dir.root=C:/Alfresco/alf_data 

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

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

### database connection properties ### 
db.driver=org.postgresql.Driver 
db.username=alfresco 
db.password=testinsa 
db.name=alfresco 

db.url=jdbc:postgresql://172.20.0.71:5433/${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.port=5433 
db.pool.max=275 
db.pool.validate.query=SELECT 1 

# 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:/ALFRES~1/LIBREO~1/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:/ALFRES~1/LIBREO~1/App/libreoffice 
jodconverter.portNumbers=8100 

### Initial admin password ### 
alfresco_user_store.adminpassword=e32bca6e6d84b73a6278c84bff8242df 

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

### License location ### 
dir.license.external=C:/ALFRES~1 

### Solr indexing ### 
index.subsystem.name=solr4 
dir.keystore=${dir.root}/keystore 
solr.host=localhost 
[email protected]@[email protected]@ 

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

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

### Remote JMX (Default: disabled) ### 
alfresco.jmx.connector.enabled=false 
+1

你創建了maven項目還是你安裝了alfresco? –

+0

還沒有,我怎麼能創造這個? #Krutik Jayswal – Temesgen

+0

我想你已經使用露天安裝創建了該項目,對吧?一旦從alfresco-home \ tomcat \ webapps中刪除提取的alfresco和共享文件夾,然後嘗試。 –

回答

0

的露天安裝附帶的PostgreSQL。安裝時,它會將PostgreSQL驅動程序(postgresql-9.4-1201-jdbc41.jar)放置在$ TOMCAT_HOME/lib中。 如果這個lib不存在,那就放置它。

0
  1. 當您啓動Alfresco時,您的數據庫是否正常運行? 您可以通過使用像https://www.pgadmin.org/

  2. 工具如果數據庫已經啓動並運行確認一次,你都能夠使用相同的憑據,在屬性中提到連接到數據庫文件,然後嘗試創建一個新的數據庫並在屬性文件中提及新名稱。

此外,從堆棧跟蹤中發佈片段通常有助於更快地識別根本原因。

希望這有助於! Sid