本文介绍了Glassfish - 应用程序名称已被使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

b
$ b

我在编程时遇到了麻烦,因为我从glassfish收到错误消息。我正在为这个项目使用NetBeans IDE 7.3。我已经构建了一个运行在Web上的简单程序(jsp文件等)。但是我一直在从glassfish那里得到最奇怪的错误显示。我在互联网上搜索了我的解决方案,发现有人发布类似的东西,但我似乎从未设法修复它,因为我不太了解我读过的文章。

那么我在启动时遇到的错误是什么?第一次运行它时,我从输出中得到这个结果








项目的实际名称是ÄrendeWebApplication,对于某些人来说确实是一个奇怪的名字。
好​​吧,无论如何,我试图再次运行应用程序只是为了确保它不是什么鬼事,我得到了完全不同的错误信息。







好吧,这是最古怪的部分,因为它是投诉ning我的应用程序的名称已被使用?所以我首先想到它可能是数据库的东西,但是去看看Java DB Database Process并且它看起来很好,也会发布它,以防万一






星期五07六月11:01:10 CEST 2013:使用基本服务器安全策略安装安全管理器。

Fri Jun 07 11:01:11 CEST 2013 :Apache Derby Network Server - 10.8.2.2 - (1181258)已启动并准备好接受端口1527上的连接




数据库不是问题我相信,所以我后来检查Glassfish服务器3.1.2,并且发现了一些警告消息,其中读取了



$警告:存在多个[2] JMX MBeanServer实例,我们将在索引[0]
中使用服务器:[com.sun.enterprise.v3.admin.DynamicInterceptor @ 297b0d9d]。

警告:正在使用的JMX MBeanServer:来自索引[0]的$ [com.sun.enterprise.v3.admin.DynamicInterceptor@297b0d9d]

警告:JMX MBeanServer in ü SE:com.sun.jmx.mbeanserver.JmxMBeanServer@572b43d]从指数[1]点击
产品介绍:EJB5181:对于EJBÄrendeDao移植的JNDI名称:【JAVA:全球/ÄrendeWebApplication/ÄrendeDaocom.Ärende .dao.ÄrendeDaoLocal,JAVA:全球/ÄrendeWebApplication/ÄrendeDao]点击
产品介绍:WEB0671:加载中的应用[ÄrendeWebApplication]在[/ _rendeWebApplication]点击
重度:日志信息为空或空。请在记录器字段中记录组件的问题。







我尝试过不同的事情,好吧,我认为它第一次抱怨这个名字,它正在使用权... ...。所以我删除了应用程序并把它移到了我硬盘上的另一个地方,好吧,如果它能正常工作,我不会发布它。然后我开始考虑可能数据库有问题,我去glassfish的控制台管理员检查连接和Ping,并告诉我它的工作原理应该如此。也许重要的信息是我已经通过MySQL连接了glassfish,但我几乎不相信这是问题所在。然后,我偶然发现有人说你可以强制通过Eclipse重新部署,首先问题是我没有使用Esclipse,第二个问题是我搜索了一个LOT以查找是否存在NetBeans中的强制重新部署和这不是生活中最简单的任务。所以我相信这也许是我希望的最后一站,也许有人在这里可以帮助我。

解决方案

尝试:


  1. 修复您的项目名称:3

  2. 如果问题是问题标题建议先取消部署应用程序,然后重新部署。您可以轻松地在Glassfish Admin Gui( http:// localhost:4848 )中轻松取消部署并强制重新部署。

  3. 如果您的应用程序仍然不起作用,用实际问题的适当格式的日志消息更新你的问题。



I’ve come to an hold with my programing because I’m getting an error from glassfish. I’m using NetBeans IDE 7.3 for this project. And I’ve built a simple program which runs over the web(jsp file etc). But I keep on getting the weirdest error display from glassfish. I’ve searched the internet for my solution and found people posting similar things, but I never seem actually manage to fix it because I don’t really understand the post which I’ve read.

So what is the error that I get at startup? First time I run it I get this from the Output


The actually name of the project is ÄrendeWebApplication and sure it’s a weird name for some people.Well anyhow I tried to run the application again just to make sure it’s not something spooky going on, and I got a totally different error message.


Alright so this is the weirdest part since it’s complaining that the name of my application is already in use? So I thought first it could perhaps be something with the database, but went to see the "Java DB Database Process" and it seemed fine, will post it too just in case


Fri Jun 07 11:01:10 CEST 2013 : Security manager installed using the Basic server security policy.
Fri Jun 07 11:01:11 CEST 2013 : Apache Derby Network Server - 10.8.2.2 - (1181258) started and ready to accept connections on port 1527


So the database is not the problem "I Believe" so I went later to check on the Glassfish server 3.1.2 and I found some warning messages which read



And here is where I’ve tried different things, well I thought it first complained about the name, it’s alredy in use right…. So I deleted the application and moved it to another place on my hard drive and well, I wouldn’t be posting this if it worked. Then I started considering that perhaps the database was something wrong with, I went to the console admin in glassfish to check the connection and the Ping and showed me that it worked as it should. Also perhaps important information is that I’ve connected glassfish through MySQL, but I hardly believe that this is the problem. I then stumbled across someone saying that you could force "redeploy via Eclipse" well first problem here is that I’m not using Esclipse and second problem is I’ve searched A LOT to find if there is a "Force redeploy in NetBeans" and that is not the easiest task in life. So I believe this is perhaps my last stop hopefully and maybe someone here could help me out.

解决方案

here are some steps you can try:

  1. Fix your projects name :3
  2. If your problem is the one the question title suggests, undeploy your application first, then redeploy. You can easily undeploy and force redeploy in the Glassfish Admin Gui (http://localhost:4848).
  3. If your application still does not work, update your question with proper formatted log messages of the actual problem.

这篇关于Glassfish - 应用程序名称已被使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 00:09