2017-05-16 54 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