將以前的WebSphere EE應用程序移動到JBoss EAP 6.3時,在調用Castor 1.0組織的marshall(Object)方法時拋出了運行時異常。 exolab.castor.xml.Marshaller對象:JBoss EAP 6.3/Castor 1.0 - MappingException:找不到類
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文件中的第一個類。
什麼可能是問題,什麼是解決方案?