异常:org.exolab.castor.xml.ValidationException 未添加到已排序类型列表中

Exception: org.exolab.castor.xml.ValidationException was not added to the list of sorted types

我正在尝试在 Websphere Application Server 上部署 EAR 文件,但在部署时显示错误。

错误代码:

SEVERER: Exception org.exolab.castor.xml.ValidationException was not added to the list of sorted types.

The project was not built since its build path is incomplete. Cannot find the class file for org.exolab.castor.xml.ValidationException. Fix the build path then try building this project.

我在我的项目中使用 Castor,但它在我通过 Shellscript 设置的类路径中。

提前感谢您的帮助。

您的依赖项需要表达到应用程序服务器运行时,而不是添加到某些 shell 变量或独立的 java 调用。要么将它们打包到您的应用程序中,要么创建一个独立的共享库并将其与您的依赖应用程序相关联。