【发布时间】:2017-02-15 20:39:42
【问题描述】:
将以前的 WebSphere Java EE 应用程序迁移到 JBoss EAP 6.3 时,在调用 Castor 1.0 的 org.exolab.castor.xml.Marshaller 对象的 marshall(Object) 方法时抛出运行时异常:
org.exolab.castor.mapping.MappingException: Nested error: org.exolab.castor.mapping.MappingException: Could not find the class
{fully qualified Java class name}
(Marshaller 正在尝试将对象序列化为 XML。)
我没有发现明显的类路径问题。这个使用 JBoss Developer Studio 编译良好的应用程序似乎没有理由在运行时失败。
问题出现在 mapping.xml 文件中描述的第一个 Java 类上——不是我尝试序列化的类,除非碰巧它恰好是 mapping.xml 文件中的第一个类。
可能是什么问题,有什么解决方案?
【问题讨论】:
标签: java jboss-eap-6 castor