本文共 1884 字,大约阅读时间需要 6 分钟。
A documentum 6.5SP2 project works with Tomcat and Weblogic, but when deploy in JBOSS 5.1. I got such error. I found that it is dfc.jar version issue. JBoss 5.1 only supports dfc.jar 6.7+. Using dfc.jar 6.5, 6.5 SP1, 6.5 SP2, 6.6, we got the ‘java.lang.NoClassDefFoundError: Could not initialize class com.documentum.fc.client.DfClient’.Using dfc.jar 6.7, 6.7SP1, 6.7SP2, 7.0, it works well.
java.lang.NoClassDefFoundError: Could not initialize class com.documentum.fc.client.DfClient at com.generiscorp.cara.dctm.api.impl.CaraRepositoryFactory.getAvailableRepositories(CaraRepositoryFactory.java:123) at com.generiscorp.cara.desktop.server.facade.RepositoryFacade.getRepositories(RepositoryFacade.java:57) at com.generiscorp.cara.web.dctm.common.server.AuthenticationServiceImpl.getRepositories(AuthenticationServiceImpl.java:111)Fatal error during session manager initialization java.lang.ExceptionInInitializerError at com.documentum.fc.client.DfClient.(DfClient.java:700) at com.documentum.com.DfClientX.getLocalClient(DfClientX.java:43)Caused by: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:394) at com.documentum.fc.common.impl.preferences.PreferencesManager.readPersistentProperties(PreferencesManager.java:321) at com.documentum.fc.common.impl.preferences.PreferencesManager. (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. (RuntimeContext.java:177)
more:
-Djboss.vfs.forceVfsJar=true
if you deploy it as a war file not a war folder, add the start parameter to avoid the Exception.
jboss vfs refer to http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/ch01.html#d0e495
转载地址:http://zysci.baihongyu.com/