[英]Publishing to Glassfish 4 at localhost [domain1] has encountered
I am getting the following errors when I try to run a web app in eclipse using glassfish server. 当我尝试使用glassfish服务器在Eclipse中运行Web应用程序时出现以下错误。
I have 3 folder namely; 我有3个文件夹; Testdb, TestdbEJB and TestdbWeb.
Testdb,TestdbEJB和TestdbWeb。 Can someone help me to resolve this issue please?
有人可以帮我解决这个问题吗?
cannot Deploy Testdb deploy is failing=Error occurred during deployment: Application Testdb is trying to use the same repository directory as application TestDb, please choose a different application name to deploy.
无法部署Testdb部署失败=部署期间发生错误:应用程序Testdb尝试使用与应用程序TestDb相同的存储库目录,请选择其他应用程序名称进行部署。
It looks like you deployed an application named TestDb before and now you are trying to deploy an application named Testdb , but you didn't properly undeploy the first one. 看起来您以前曾经部署过一个名为TestDb的应用程序,而现在您正在尝试部署一个名为Testdb的应用程序,但是没有适当地取消部署第一个应用程序。
It isn't possible to deploy two applications with the same name (it doesn't matter that the case is not matching) at the same time...the reason is obvious. 不可能同时部署两个具有相同名称的应用程序(大小写不匹配无关紧要)……原因很明显。
How to fix it: 解决方法:
glassfish/domains/domain1/applications/
of your Glassfish installation, if there is a folder named "TestDb" (or anything like this), delete it, you may also check the "__internal" folder. glassfish/domains/domain1/applications/
文件夹,如果有一个名为“ TestDb”的文件夹(或类似的名称),请将其删除,您也可以选中“ __internal”文件夹。 Restart Glassfish afterwards. /glassfish/domains/domain1/config/domain.xml
of your Glassfish installation and search for the section beginning with <application>
which represents your application. /glassfish/domains/domain1/config/domain.xml
并搜索以<application>
开头的部分,该部分代表您的应用程序。 Delete the part from (inclusive) <application>
to </application>
, save the file and restart Glassfish. <application>
到</application>
删除零件,保存文件并重新启动Glassfish。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.