我有一个 Web 应用程序,其中包含一个在 Apache Tomcat 上运行良好的 servlet。但是,当我在 Websphere Developer Edition 8 上部署 war 文件时,在执行 servlet 时出现以下错误。
E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0014E: Uncaught
service() exception root cause DfsDownloadServiceServlet: javax.servlet.ServletException:
com.emc.documentum.fs.rt.ServiceInvocationRuntimeException:
com.emc.documentum.fs.rt.ServiceInvocationRuntimeException: JAXB marshalling failed:
"null". at com.company.dfs.download.DfsDownloadServiceServlet.doPost(DfsDownloadServiceServlet.java:158)
任何人都可以就我收到此错误的原因给出任何指示。
谢谢
最佳答案
您是否检查过您的 warfile 中是否存在不同版本的相同库,或者是否由 websphere 提供。
我也有这个问题,war 文件在 tomcat 上运行没有问题,但在 websphere 上它没有运行。
我搜索并找到了一些不同版本的库。看起来Tomcat和Websphere的类加载器加载顺序不同。
也许这能解决你的问题
关于java - JAXB 编码失败 : "null" error when running an application on websphere. 相同的应用程序在 Tomcat 上运行良好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6538706/