博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jboss java.lang.NoClassDefFoundError: Could not initialize class com.documentum.fc.client.DfClient
阅读量:4051 次
发布时间:2019-05-25

本文共 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/

你可能感兴趣的文章
git clone拉代码的时候出现permission denied 没有权限的问题解决
查看>>
前端-vue-文件上传(图片、word,ppt,pdf,excel,txt等文件流)
查看>>
word,PDF,excel、ppt等文件上传,视频上传查看等
查看>>
java 不用递归写tree
查看>>
springboot2 集成Hibernate JPA 用 声明式事物
查看>>
fhs-framework jetcache 缓存维护之自动清除缓存
查看>>
SpringBoot 动态编译 JAVA class 解决 jar in jar 的依赖问题
查看>>
fhs_framework springcloud使用统一的控制器来接收rpc调用请求教程,无需每个rpc接口都写控制器
查看>>
fhs-framework springboot mybatis 解决表关联查询问题的关键方案-翻译服务
查看>>
Springboot + easyui + mybatis 高级搜索功能实现
查看>>
k8s 踩坑笔记
查看>>
SpringCloud Seata Nacos 整合教程和坑
查看>>
nacos 本地覆盖远程 本地优先
查看>>
java 查询内存泄漏
查看>>
httpclient4.5 绕过ssl证书校验 -看别人文章解决不了的,看下我这个
查看>>
基于webpack的vue语法糖实现思路
查看>>
jenkins流水线脚本 从sonar代码扫描,到maven构建,到docker打包,到k8s发布
查看>>
微服务项目占用内存过多机器扛不住怎么办?服务allinone设计
查看>>
项目快速开发经验
查看>>
LambdaQueryWrapper动态加过滤条件 动态Lambda(首发)
查看>>