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.
谢谢,Conor。
答案 0 :(得分:10)
您已经使用contextpath /numberquiz
部署了一个应用程序。在下次部署应用程序时,更改项目设置中的上下文路径将导致相同的问题。
您必须通过Eclipse或Glassfish Admin GUI取消部署您的应用程序,
可以在http://localhost:4848
下访问Admin GUI。转到左侧菜单中的Applications
,选择您的应用,然后点击Undeploy
。
答案 1 :(得分:0)
出现此错误的原因是您尝试在GlassFish中部署与具有相同“上下文根”的另一个应用程序冲突的应用程序。您必须在GlassFish中取消部署应用程序或更改任一应用程序的Context Root。 在Glassfish 5中,打开浏览器并转到url-localhost:4848它将打开GlassFish Server开源版index.jsf页面。在左侧面板中,单击Applications下拉列表,然后选择Context Root与新应用程序冲突的应用程序。 “编辑应用程序”窗格将在右侧打开,然后您可以更改“上下文根”。在此之后,单击右上角的保存按钮。