从 Eclipse 部署到 Weblogic 10.3.6 -- "There are no resources that can be added or removed from the server."

Deploying to Weblogic 10.3.6 from Eclipse -- "There are no resources that can be added or removed from the server."

我有一个 Spring 启动应用程序。我用 Maven 构建它。我将 pom 配置为生成与 Weblogic 兼容的 .war 文件。我可以通过 WebLogic 控制台或通过 weblogic-maven-plugin Maven 命令手动部署此 war 文件。

我现在已将我的 WebLogic 服务器和域添加到我的 Eclipse 服务器面板。我可以很好地启动和停止它,但是当我单击 "Add and Remove" 时,我得到:

There are no resources that can be added or removed from the server.

在我的项目方面,我有:

Dynamic Web Module 2.5
Java 1.7 (matches what WebLogic wants and what my pom specifies)

我还能检查或更改什么?

因此,即使我没有检查 Cloud Foundry 方面,问题仍然存在。我从 Eclipse 中删除了与 Cloud Foundry 相关的插件,它开始工作了。

有时问题也可能是因为您没有select动态网页模块。 为此,请打开您的项目属性,然后转到您的 Project Facets,然后 Check/Select 动态 Web 模块复选框,然后应用并关闭。