我有一个documentum应用程序,当我通过从eclipse中删除config文件夹的引用而通过eclipse创建了一个jar项目时,
jar是可执行的,在我的classpath中我有一个DCTM.jar和config文件夹的值,当我试图通过批处理文件运行这个jar时,我正在关注
例外
java.io.FileNotFoundException: dfc.properties
at com.documentum.fc.common.impl.preferences.PreferencesManager.locateMainPersistentStore(PreferencesManager.java:357)
at com.documentum.fc.common.impl.preferences.PreferencesManager.readPersistentProperties(PreferencesManager.java:311)
at com.documentum.fc.common.impl.preferences.PreferencesManager.<init>(PreferencesManager.java:37)
at com.documentum.fc.common.DfPreferences.initialize(DfPreferences.java:79)
at com.documentum.fc.common.DfPreferences.getInstance(DfPreferences.java:58)
at com.documentum.fc.impl.RuntimeContext.<clinit>(RuntimeContext.java:177)
at com.documentum.fc.client.DfClient.<clinit>(DfClient.java:700)
at com.documentum.com.DfClientX.getLocalClient(DfClientX.java:43)
at com.impact.qtl12.documentum.services.DocumentumHandler.setIdfClient(DocumentumHandler.java:123)
at com.impact.qtl12.documentum.services.DocumentumHandler.getDocumentumHandler(DocumentumHandler.java:154)
at com.impact.qtl12.imports.UI.CSVFile.QTL.<init>(QTL.java:115)
at com.impact.qtl12.imports.UI.CSVFile.QTL.main(QTL.java:599)
1422 [main] WARN com.documentum.fc.client.security.internal.RegistrationMgr - [DFC_SECURITY_GR_PUBLICATION_FAILED] Publication
of DFC instance with global registry failed
DfException:: THREAD: main; MSG: [DFC_BOF_GLOBAL_REGISTRY_NOT_CONFIGURED] A global registry is not configured; ERRORCODE: ff; NE
XT: null
at com.documentum.fc.client.security.impl.DfcIdentityPublisher.<init>(DfcIdentityPublisher.java:51)
at com.documentum.fc.client.security.internal.RegistrationMgr.register(RegistrationMgr.java:34)
at com.documentum.fc.impl.RuntimeContext.<clinit>(RuntimeContext.java:191)
at com.documentum.fc.client.DfClient.<clinit>(DfClient.java:700)
at com.documentum.com.DfClientX.getLocalClient(DfClientX.java:43)
at com.impact.qtl12.documentum.services.DocumentumHandler.setIdfClient(DocumentumHandler.java:123)
at com.impact.qtl12.documentum.services.DocumentumHandler.getDocumentumHandler(DocumentumHandler.java:154)
at com.impact.qtl12.imports.UI.CSVFile.QTL.<init>(QTL.java:115)
at com.impact.qtl12.imports.UI.CSVFile.QTL.main(QTL.java:599)
15:04:10,222 ERROR [main] Application - DfException Exception occurred while executing method getDocbaseList of DocumentumHandle
r class
15:04:10,222 ERROR [main] Application - [DM_DOCBROKER_E_NO_DOCBROKERS]error: "No DocBrokers are configured"
15:04:11,879 ERROR [main] Application - QTLConnectionException Exception occurred while executing method populateAvailableDocBas
eCombo of CSVImport class
15:04:11,879 ERROR [main] Application - [DM_DOCBROKER_E_NO_DOCBROKERS]error: "No DocBrokers are configured"
[DM_DOCBROKER_E_NO_DOCBROKERS]error: "No DocBrokers are configured"
at com.impact.qtl12.documentum.services.DocumentumHandler.getDocbaseList(DocumentumHandler.java:190)
at com.impact.qtl12.imports.UI.CSVFile.QTL.populateAvailableDocBaseCombo(QTL.java:627)
at com.impact.qtl12.imports.UI.CSVFile.QTL.addTargetGroup(QTL.java:264)
at com.impact.qtl12.imports.UI.CSVFile.QTL.createShell(QTL.java:565)
at com.impact.qtl12.imports.UI.CSVFile.QTL.launch(QTL.java:587)
at com.impact.qtl12.imports.UI.CSVFile.QTL.main(QTL.java:607)
但当我试图通过在同一目录中指定带有库文件夹的地址编译主类来运行相同的应用程序时
应用程序已启动,因此这两种情况有什么区别
答案 0 :(得分:0)
EMC Documentum DFC需要dfc.properties才能找到可用的documentum docbrokers。 dfc.properties文件应位于类路径中。 此文件的确切查找机制取决于您使用的DFC版本。但是将此文件放在类路径上应该适用于所有版本。