7

GlassFish 的这个错误(与 Eclipse 一起使用时)是什么意思?login 是我之前使用的一个 Java 项目。我接受它我必须停止它或删除它或其他东西。有人可以帮忙吗?

cannot Deploy numberquiz
deploy is failing=Error occurred during deployment: Exception while loading the app : 
java.lang.Exception: WEB0113: Virtual server [server] already has a web module [login] loaded at 
[/numberquiz]; therefore web module [numberquiz] cannot be loaded at this context path on this 
virtual server. . Please see server.log for more details.

谢谢,康纳。

4

2 回答 2

10

您已经使用 contextpath 部署了一个应用程序/numberquiz。在您的项目设置中更改上下文路径将在您下次部署应用程序时导致相同的问题。

您必须通过 Eclipse 或 Glassfish 管理 GUI 取消部署您的应用程序,

可以在 下访问管理 GUI http://localhost:4848。转到Applications左侧菜单,选择您的应用程序并单击Undeploy

于 2013-05-29T08:52:44.763 回答
0

此错误的原因是因为您尝试在 GlassFish 中部署与具有相同“上下文根”的另一个应用程序冲突的应用程序。您必须在 GlassFish 中取消部署应用程序或更改任一应用程序的上下文根。在 Glassfish 5 中,打开浏览器并转到 url-localhost:4848,它将打开 GlassFish Server Open Source Edition index.jsf 页面。在左侧面板上单击应用程序下拉菜单并选择其上下文根与新应用程序冲突的应用程序。编辑应用程序窗格在右侧打开,然后您现在可以更改上下文根。之后,单击右上角的保存按钮。

于 2017-08-09T09:30:21.440 回答