简体   繁体   English

Glassfish-应用名称已在使用中

[英]Glassfish - Application name is already in use


I've come to an hold with my programing because I'm getting an error from glassfish. 我暂停了编程,因为我从glassfish中得到了一个错误。 I'm using NetBeans IDE 7.3 for this project. 我正在为此项目使用NetBeans IDE 7.3。 And I've built a simple program which runs over the web(jsp file etc). 而且我建立了一个简单的程序,可以在网络上运行(jsp文件等)。 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 第一次运行它时,我会从输出中得到它

Starting GlassFish Server 3.1.2 启动GlassFish Server 3.1.2
GlassFish Server 3.1.2 is running. GlassFish Server 3.1.2正在运行。
In-place deployment at 在以下位置进行就地部署
C:\\Users\\Vedo\\Documents\\NetBeansProjects\\ÄrendeWebApplication\\build\\web C:\\ Users \\ Vedo \\ Documents \\ NetBeansProjects \\ÄrendeWebApplication\\ build \\ web
Initializing... 初始化...
deploy? 部署?
DEFAULT=C:\\Users\\Vedo\\Documents\\NetBeansProjects\\ÄrendeWebApplication\\build\\web&name=ÄrendeWebApplication&contextroot=/_rendeWebApplication&force=true failed on GlassFish Server 3.1.2 在GlassFish Server 3.1.2上,DEFAULT = C:\\ Users \\ Vedo \\ Documents \\ NetBeansProjects \\ÄrendeWebApplication\\ build \\ web&name =ÄrendeWebApplication&contextroot = / _ rendeWebApplication&force = true失败
Error occurred during deployment: null. 部署期间发生错误:null。 Please see server.log for more details. 请参阅server.log以获取更多详细信息。
C:\\Users\\Vedo\\Documents\\NetBeansProjects\\ÄrendeWebApplication\\nbproject\\build- C:\\ Users \\ Vedo \\ Documents \\ NetBeansProjects \\ÄrendeWebApplication\\ nbproject \\ build-
impl.xml:1038: The module has not been deployed. impl.xml:1038:该模块尚未部署。
See the server log for details. 有关详细信息,请参见服务器日志。


The actually name of the project is ÄrendeWebApplication and sure it's a weird name for some people. 该项目的实际名称是ÄrendeWebApplication,并确保对某些人来说这是一个怪异的名称。 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. 好吧,无论如何,我尝试再次运行该应用程序只是为了确保它不会出现令人毛骨悚然的情况,并且得到了完全不同的错误消息。

In-place deployment at 在以下位置进行就地部署
C:\\Users\\Vedo\\Documents\\NetBeansProjects\\ÄrendeWebApplication\\build\\web C:\\ Users \\ Vedo \\ Documents \\ NetBeansProjects \\ÄrendeWebApplication\\ build \\ web
Initializing... 初始化...
deploy? 部署?
DEFAULT=C:\\Users\\Vedo\\Documents\\NetBeansProjects\\ÄrendeWebApplication\\build\\web&name=Ärende WebApplication&contextroot=/_rendeWebApplication&force=true failed on GlassFish Server 3.1.2 DEFAULT = C:\\ Users \\ Vedo \\ Documents \\ NetBeansProjects \\ÄrendeWebApplication\\ build \\ web&name =ÄrendeWebApplication&contextroot = / _ rendeWebApplication&force = true在GlassFish Server 3.1.2上失败
Error occurred during deployment: Application name ÄrendeWebApplication is already in use. 部署期间发生错误:应用程序名称ÄrendeWebApplication已在使用中。
Please pick a different name.. Please see server.log for more details. 请选择其他名称。.有关更多详细信息,请参阅server.log。
C:\\Users\\Vedo\\Documents\\NetBeansProjects\\ÄrendeWebApplication\\nbproject\\build- C:\\ Users \\ Vedo \\ Documents \\ NetBeansProjects \\ÄrendeWebApplication\\ nbproject \\ build-
impl.xml:1038: The module has not been deployed. impl.xml:1038:该模块尚未部署。
See the server log for details. 有关详细信息,请参见服务器日志。


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 因此,我认为首先可能与数据库有关,但是去看了“ Java DB Database Process”,它看起来还不错,也将其发布以防万一。


Fri Jun 07 11:01:10 CEST 2013 : Security manager installed using the Basic server security policy. 2013年6月7日星期五星期五11:01:10:使用基本服务器安全策略安装了安全管理器。
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 2013年6月7日星期五星期五11:01:11:Apache Derby网络服务器-10.8.2.2-(1181258)已启动并准备接受端口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 因此,数据库不是“我相信”的问题,因此我后来去检查Glassfish服务器3.1.2,发现一些警告消息,其中显示


WARNING: Multiple [2] JMX MBeanServer instances exist, we will use the server at index [0] 警告:存在多个[2] JMX MBeanServer实例,我们将使用索引为[0]的服务器
: [com.sun.enterprise.v3.admin.DynamicInterceptor@297b0d9d]. :[com.sun.enterprise.v3.admin.DynamicInterceptor@297b0d9d]。
WARNING: JMX MBeanServer in use: [com.sun.enterprise.v3.admin.DynamicInterceptor@297b0d9d] from index [0] 警告:正在使用JMX MBeanServer:来自索引[0]的[com.sun.enterprise.v3.admin.DynamicInterceptor@297b0d9d]
WARNING: JMX MBeanServer in use: [com.sun.jmx.mbeanserver.JmxMBeanServer@572b43d] from index [1] 警告:使用中的JMX MBeanServer:索引[1]中的[com.sun.jmx.mbeanserver.JmxMBeanServer@572b43d]
INFO: EJB5181:Portable JNDI names for EJB ÄrendeDao: [java:global/ÄrendeWebApplication/ÄrendeDao!com.Ärende.dao.ÄrendeDaoLocal, java:global/ÄrendeWebApplication/ÄrendeDao] INFO:EJB5181:EJBÄrendeDao的便携式JNDI名称:[java:global /ÄrendeWebApplication/ÄrendeDao!com.Ärende.dao.ÄrendeDaoLocal,java:global /ÄrendeWebApplication/ÄrendeDao]
INFO: WEB0671: Loading application [ÄrendeWebApplication] at [/_rendeWebApplication] INFO:WEB0671:在[/ _rendeWebApplication]加载应用程序[ÄrendeWebApplication]
SEVERE: The log message is empty or null. 严重:日志消息为空或为空。 Please log an issue against the component in the logger field. 请在记录器字段中记录有关组件的问题。


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. 然后,我开始考虑数据库可能有问题,我去了glassfish的控制台管理员那里检查了连接和Ping,并向我展示了它应该可以正常工作。 Also perhaps important information is that I've connected glassfish through MySQL, but I hardly believe that this is the problem. 另外也许重要的信息是我已经通过MySQL连接了glassfish,但是我几乎不相信这是问题所在。 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. 然后,我偶然发现有人说您可以强制“通过Eclipse重新部署”,第一个问题是我没有使用Esclipse,第二个问题是我搜索了很多,以确定是否存在“ NetBeans中的强制重新部署”,那不是生活中最简单的任务。 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 修改您的项目名称: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 ). 您可以在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. 如果您的应用程序仍然无法运行,请使用正确格式的实际问题日志消息更新您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Glassfish中的自定义日志处理程序需要应用程序名称 - Custom logging handler in Glassfish needs application name Glassfish 4:如何为JNDI设置应用程序或模块名称 - Glassfish 4: how to set application or module name for JNDI glassfish3 部署错误:应用程序……已部署在此域中 - glassfish3 deploy error: Application … is already deployed in this domain 使用eclipse在已安装的Glassfish上调试Maven Web应用程序 - Debugging Maven Web Application on already installed Glassfish using eclipse 运行 Glassfish 3.1.2.2 时出错:地址 localhost:4848 已在使用中 - Error running Glassfish 3.1.2.2: Address localhost:4848 is already in use GlassFish无法启动,因为Java已使用端口443 - GlassFish will not start because port 443 already in use by java 无法启动GlassFish 4.0(Windows) - 端口1527 - 已在使用的地址 - Could not start GlassFish 4.0 (Windows) - port 1527 - Address already in use Glassfish服务器:如何从glassfish应用程序中获取应用程序部署的名称? - Glassfish server: How to get name of application deployment from inside glassfish application? 在Google GWT应用程序中显示Glassfish用户登录名 - Display Glassfish user Login Name in a Google GWT Application glassfish如何对所有应用程序使用一个jar文件-CDI - glassfish how to use one jar file for all application - CDI
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM