简体   繁体   English

在本地主机[domain1]上发布到Glassfish 4

[英]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: 解决方法:

  1. Try to log in to Glassfish Admin UI ( http://localhost:4848 ), go to Applications und undeploy the first application. 尝试登录Glassfish Admin UI( http:// localhost:4848 ),转到“应用程序”,然后取消部署第一个应用程序。 You may also use asadmin instead. 您也可以改用asadmin Try to redeploy your application then. 然后尝试重新部署您的应用程序。
  2. If nothing is listed under "Applications", check the folder 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安装目录中的glassfish/domains/domain1/applications/文件夹,如果有一个名为“ TestDb”的文件夹(或类似的名称),请将其删除,您也可以选中“ __internal”文件夹。 Restart Glassfish afterwards. 之后重新启动Glassfish。
  3. If you deleted something in step 2 and it still doesn't work, open /glassfish/domains/domain1/config/domain.xml of your Glassfish installation and search for the section beginning with <application> which represents your application. 如果您在步骤2中删除了某些内容,但仍然无法使用,请打开Glassfish安装的/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.

相关问题 c:\\ Program Files \\ Java \\ glassfish 4 \\ glassfish \\ domains \\ domain1不可写 - c:\Program Files\Java\glassfish 4\glassfish\domains\domain1 Not writable Glassfish服务器启动域domain1将无法启动 - Glassfish Server start-domain domain1 won't start “正在本地主机上发布到tomcat v7.0服务器…”遇到错误 - 'Publishing to tomcat v7.0 Server at localhost…' has encountered an error 使用GlassFish是否可以在domain1 / lib中具有EJB? - Is it possible to have EJBs in domain1/lib using GlassFish? Glassfish,在 glassfish/domain/domain1 中找不到文件夹 portlet-container - Glassfish, cannot find folder portlet-container in glassfish/domain/domain1 面对“在本地主机上发布到Tomcat v6.0服务器的错误遇到失败” - Facing “error publishing to Tomcat v6.0 server at localhost has encountered a failure” Glassfish:此域中没有名为localhost的群集 - Glassfish: There is no cluster named localhost in this domain 无法启动glassfish服务器,因为无法锁定/opt/glassfishv3/glassfish/domains/domain1/logs/server.log - Failed to start glassfish server because Couldn't get lock for /opt/glassfishv3/glassfish/domains/domain1/logs/server.log GlassFish 4 错误启动域 domain1 侦听传输 dt_socket 地址:9009 错误:无法找到或加载主类文件 - GlassFish 4 error starting domain domain1 listening for transport dt_socket at address: 9009 Error: could not find or load main class files 无法打开文件:E:\glassfish-5.1.0\glassfish5\glassfish\domains\domain1/config/keystore.jks [密钥库被篡改,或密码错误] - Cannot open file:E:\glassfish-5.1.0\glassfish5\glassfish\domains\domain1/config/keystore.jks [Keystore was tampered with, or password was incorrect]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM