建立documentum工程后,一直包dfc.properties文件缺失这个错误,还有No DocBrokers are configured 等等。但我机器上dfc已经正常安装,并且可以看到D:\Documentum\Config
后来结果一番实验,发现结果下边这样就可以解决。
对工程点右键 propertiess ->Java Build Path-> Libraries -> Add Class Folder -> 选择D:\Documentum\Config.
然后重新执行就可以了,如果包log4j文件夹错误,再按照提示重新配一下log4j就可以了。
我的配位文件如下:
dfc.properties
dfc.data.dir=D\:/Documentum
dfc.search.ecis.enable=false
dfc.search.ecis.host=
dfc.search.ecis.port=
dfc.tokenstorage.dir=D\:/Documentum/apptoken
dfc.tokenstorage.enable=false
dfc.docbroker.host[0]=192.168.6.245
dfc.docbroker.port[0]=1489
dfc.security.keystore.file=D\:/Documentum/config/dfc.keystore
dfc.session.secure_connect_default=try_native_first
log4j.properties
log4j.rootCategory=WARN, A1, F1
log4j.category.MUTE=OFF
log4j.additivity.tracing=false
log4j.category.tracing=DEBUG, FILE_TRACE
#------------------- CONSOLE --------------------------
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.threshold=ERROR
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{ABSOLUTE} %5p [%t] %c - %m%n
#------------------- FILE --------------------------
log4j.appender.F1=org.apache.log4j.RollingFileAppender
log4j.appender.F1.File=D:Documentumlogs race.log
log4j.appender.F1.MaxFileSize=10MB
log4j.appender.F1.layout=org.apache.log4j.PatternLayout
log4j.appender.F1.layout.ConversionPattern=%d{ABSOLUTE} %5p [%t] %c - %m%n
#------------------- FILE_TRACE --------------------------
log4j.appender.FILE_TRACE=org.apache.log4j.net.SocketAppender
log4j.appender.FILE_TRACE.File=D:Documentumlogslog4j.log
log4j.appender.FILE_TRACE.MaxFileSize=100MB
log4j.appender.FILE_TRACE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE_TRACE.layout.ConversionPattern=%d{ABSOLUTE} [%t] %m%n
log4j.appender.FILE_TRACE.Port=4445
log4j.appender.FILE_TRACE.RemoteHost=localhost