本文主要是介绍部署EJB时出现如下的错误,郁闷!,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
不知道为什么会出现如下的错误(org.jboss.deployment.DeploymentException: expected one display-name tag),那位能指点一下吗?谢谢!
16 : 25 : 54 , 560 ERROR [ MainDeployer ] Could not initialise deployment: file : / D: / jboss - 4.0 .3RC1 / server / default / deploy / Hai.ear
org.jboss.deployment.DeploymentException: expected one display - name tag
at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java: 98 )
at org.jboss.deployment.J2eeApplicationMetaData.importApplicationXml(J2eeApplicationMetaData.java: 135 )
at org.jboss.deployment.J2eeApplicationMetaData.importXml(J2eeApplicationMetaData.java: 121 )
at org.jboss.deployment.EARDeployer.init(EARDeployer.java: 128 )
at org.jboss.deployment.MainDeployer.init(MainDeployer.java: 827 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java: 764 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java: 737 )
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 585 )
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java: 141 )
at org.jboss.mx.server.Invocation.dispatch(Invocation.java: 80 )
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java: 118 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 74 )
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java: 127 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 74 )
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java: 245 )
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java: 644 )
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java: 176 )
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java: 325 )
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java: 501 )
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java: 204 )
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java: 277 )
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java: 267 )
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java: 217 )
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 585 )
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java: 141 )
at org.jboss.mx.server.Invocation.dispatch(Invocation.java: 80 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 72 )
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java: 245 )
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java: 644 )
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java: 950 )
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java: 436 )
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 585 )
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java: 141 )
at org.jboss.mx.server.Invocation.dispatch(Invocation.java: 80 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 72 )
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java: 245 )
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java: 644 )
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java: 176 )
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java: 273 )
at org.jboss.deployment.MainDeployer.start(MainDeployer.java: 973 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java: 774 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java: 737 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java: 721 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39 )
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 585 )
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java: 141 )
at org.jboss.mx.server.Invocation.dispatch(Invocation.java: 80 )
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java: 118 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 74 )
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java: 127 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 74 )
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java: 245 )
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java: 644 )
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java: 176 )
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java: 434 )
at org.jboss.system.server.ServerImpl.start(ServerImpl.java: 315 )
at org.jboss.Main.boot(Main.java: 195 )
at org.jboss.Main$ 1 .run(Main.java: 463 )
at java.lang.Thread.run(Thread.java: 595 )
org.jboss.deployment.DeploymentException: expected one display - name tag
at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java: 98 )
at org.jboss.deployment.J2eeApplicationMetaData.importApplicationXml(J2eeApplicationMetaData.java: 135 )
at org.jboss.deployment.J2eeApplicationMetaData.importXml(J2eeApplicationMetaData.java: 121 )
at org.jboss.deployment.EARDeployer.init(EARDeployer.java: 128 )
at org.jboss.deployment.MainDeployer.init(MainDeployer.java: 827 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java: 764 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java: 737 )
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 585 )
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java: 141 )
at org.jboss.mx.server.Invocation.dispatch(Invocation.java: 80 )
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java: 118 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 74 )
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java: 127 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 74 )
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java: 245 )
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java: 644 )
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java: 176 )
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java: 325 )
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java: 501 )
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java: 204 )
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java: 277 )
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java: 267 )
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java: 217 )
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 585 )
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java: 141 )
at org.jboss.mx.server.Invocation.dispatch(Invocation.java: 80 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 72 )
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java: 245 )
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java: 644 )
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java: 950 )
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java: 436 )
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 585 )
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java: 141 )
at org.jboss.mx.server.Invocation.dispatch(Invocation.java: 80 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 72 )
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java: 245 )
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java: 644 )
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java: 176 )
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java: 273 )
at org.jboss.deployment.MainDeployer.start(MainDeployer.java: 973 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java: 774 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java: 737 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java: 721 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39 )
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 585 )
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java: 141 )
at org.jboss.mx.server.Invocation.dispatch(Invocation.java: 80 )
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java: 118 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 74 )
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java: 127 )
at org.jboss.mx.server.Invocation.invoke(Invocation.java: 74 )
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java: 245 )
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java: 644 )
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java: 176 )
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java: 434 )
at org.jboss.system.server.ServerImpl.start(ServerImpl.java: 315 )
at org.jboss.Main.boot(Main.java: 195 )
at org.jboss.Main$ 1 .run(Main.java: 463 )
at java.lang.Thread.run(Thread.java: 595 )
这篇关于部署EJB时出现如下的错误,郁闷!的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!